Jump to content

TheDcoder

Active Members
  • Posts

    7,103
  • Joined

  • Days Won

    88

Everything posted by TheDcoder

  1. Thanks BrewManHN & Melba, For a moment i forgot that @ScriptFullPath returns the file's path Sorry for the unnecessary trouble, TD
  2. @Melba23 Why is it working know?? Please explain
  3. Thanks for the alternative, still I wanna know the problem TD
  4. Then its hard to identify the problem, please provide much details as possible. In the meanwhile try running MemTest86 TD
  5. Hi, Please look at the code below: #include <File.au3> #include <Array.au3> ; -- Created with ISN Form Studio 2 for ISN AutoIt Studio -- ; #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Include <GuiButton.au3> #include <GuiListView.au3> Global $hGUI = GUICreate("GUIx",283,120,-1,-1,-1,-1) GUISetBkColor(0xFFFFFF,$hGUI) $hListX = GUICtrlCreatelistview("ColumnX|ColumnY|ColumnZ",4,4,269,65,4,544) ; GUICtrlCreatelistview("ListX",7,4,269,65,-1,512) GUICtrlSetData(-1, "ColumnX|ColumnY|ColumnZ") $hButtonY = GUICtrlCreateButton("ButtonY",20,80,100,30,-1,-1) $hButtonZ = GUICtrlCreateButton("ButtonZ",160,80,100,30,-1,-1) GUISetState() While True $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $hButtonY AddRows() EndSwitch WEnd Func AddRows() Local $aFiles = _FileListToArray(@ScriptFullPath & '\FolderX', Default, Default, True) _ArrayDisplay($aFiles) Local $aContent[9] For $i = 0 To UBound($aFiles) - 1 MsgBox(0, "", $aFiles) $aContent = FileReadToArray($aFiles[$i]) Next For $i = 0 To UBound($aContent) - 1 Step 3 GUICtrlCreateListViewItem($aContent[$i] & '|' & $aContent[$i + 1] & '|' & $aContent[$i + 2], $hListX) Next EndFunc _ArrayDisplay at line no. 33 is not working, I don't know what is happening... Thanks in Advance, TD P.S Actually the code was for another question but while debugging the code, I encountered this problem
  6. If it was possible then AutoIt would have taken over python (I meant that AutoIt would be used as C++'s or Java's new Syntax)
  7. I think you had <700 MB Ram free when this happen, I don't know much about it... Try changing "FileInstall Compression: " to "Lowest" when compiling, TD
  8. Thanks DarkwarlorD
  9. @UEZ Ok, Sorry
  10. Updated UEZ's Ocelot's Pic - Changes: Reduced File Size Massively Reduced Image Size To 50%, Now fits your screen perfectly Enjoy, TD
  11. @kylomas You saved my GUI, Thanks Solution: I enhanced kylomas's code and made this function: Func ListCheck() Switch GUICtrlRead($hListYourList) ; Your List Case 0 Switch GUICtrlGetState($hYourButton) ; Your button to check Case 80 GUICtrlSetState($hButtonEnabled, 128) ; Add any buttons here if you have multiple buttons Case Else Return EndSwitch Case Else Switch GUICtrlGetState($hYourButton) ; Your button to check Case 144 GUICtrlSetState($hYourButton, 64) ; Add any buttons here if you have multiple buttons Case Else Return EndSwitch EndSwitch EndFunc Use the above function in your GUI's while loop May it help you, TD
  12. @MuffetsMan I don't understand your function, maybe a crappy documentation will help, TD
  13. Use this: UEZsPet.7z to replace UEZ's picture with his pet's picture, TD P.S Remember to remove line no. 224 To 242 in the main file
  14. Where can I find "'File to Base64 String' Code Generator v1.20 Build 2015-03-02" Alternative TD
  15. After reducing the size by half, I can see the scrolling effect but I can't center the image TD
  16. @MikahS 1920 x 1080? O_O
  17. @MikhahS What is your resolution? Mine is 1366 x 768
  18. I don't get scroller effect & The window is too big for me!!! TD
  19. This is totally in my ally, I am startled of how broad AutoIt's user have been thinking TD
  20. Hello again, I found out the solution myself I suck!!!, This solution adds flicker effect to your buttons (Only visible when your mouse is above your button) Add the following to your script: AdlibRegister("ButtonCheck") ; Use this to check ListView Func ButtonCheck() If GUICtrlRead($hListMyList) = 0 Then GUICtrlSetState($hYourButton, 128) ; 128 = $GUI_DISABLE ; Any extra buttons to check here Else GUICtrlSetState($hYourButton, 64) ; 64 = $GUI_ENABLE ; Any extra buttons to check here EndIf EndFunc This is the working version of my script: #include-once AdlibRegister("ButtonCheck") ; -- Created with ISN Form Studio 2 for ISN AutoIt Studio -- ; #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Include <GuiButton.au3> #include <GuiListView.au3> Global $test = GUICreate("test",283,120,-1,-1,-1,-1) GUISetBkColor(0xFFFFFF,$test) $hListMyList = GUICtrlCreatelistview("My List",7,4,269,65,-1,512) $hButtonAlwaysEnabled = GUICtrlCreateButton("Always Enabled",20,80,100,30,-1,-1) $hButtonEnabled = GUICtrlCreateButton("Enabled",160,80,100,30,-1,-1) $hListViewItemMyItem = GUICtrlCreateListViewItem("My List Item", $hListMyList) GUISetState() While True $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func ButtonCheck() If GUICtrlRead($hListMyList) = 0 Then GUICtrlSetState($hButtonEnabled, 128) ; 128 = $GUI_DISABLE Else GUICtrlSetState($hButtonEnabled, 64) ; 64 = $GUI_ENABLE EndIf EndFunc May it help you, TD
  21. Hello, Please look at this GUI: #include-once ; -- Created with ISN Form Studio 2 for ISN AutoIt Studio -- ; #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Include <GuiButton.au3> #include <GuiListView.au3> Global $test = GUICreate("test",283,120,-1,-1,-1,-1) GUISetBkColor(0xFFFFFF,$test) $hListMyList = GUICtrlCreatelistview("My List",7,4,269,65,-1,512) $hButtonAlwaysEnabled = GUICtrlCreateButton("Always Enabled",20,80,100,30,-1,-1) $hButtonEnabled = GUICtrlCreateButton("Enabled",160,80,100,30,-1,-1) $hListViewItemMyItem = GUICtrlCreateListViewItem("My List Item", $hListMyList) GUISetState() While True $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd I want $hButtonEnabled disabled when a ListViewItem is not selected. I tried inserting a custom function in the while loop but it didn't work that well (button was flickering & high memory usage) I think its not possible to do in AutoIt AutoIt is awsome! If you know to do such thing, please post it here , TD P.S Will be greatly appreciated cause its impossible for me to do
  22. @BrewManNH They code way generated by AutoIt Form Studio 2, Thanks alot! TD
  23. Error: Thanks @mLipok TD
×
×
  • Create New...