Jump to content

autoitash

Members
  • Posts

    7
  • Joined

  • Last visited

autoitash's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hello, I am trying to minimize an application's window and it doesn't seem to work. Here is my code... $application = 'C:\Program Files (x86)\Test\test.exe' Run ($application) WinSetState("title", "", @SW_MINIMIZE) ;to get the title of the window I ran AU3Info.exe My application does not seem to minimize at all, what am I not doing, please advice. Thanks in advance
  2. Thanks PsaltyDS, it worked just like I want it. I have another question, how do I read ListBox items into an array, for eg: here I want to read the values of listbox $AppsAdded read into an array. Thanks!
  3. Thanks BrewManNH, it worked just like I wanted to. Thanks so much.
  4. Hello, I am trying to delete items from a listbox after the item has been moved to another listbox. For eg: from Listbox1 when I move an item into Listbox2, I need to delete it in Listbox1. Can someone please help? Thanks! Here is my partial code. Func Selectapps() $Count = 0 GUICreate("List of apps to be selected") $ListofApps = GUICtrlCreateList("", 10, 10, 120, 320) While $Count < $appIdCount GUICtrlSetData($ListofApps, $AppIdProc[$Count][0], "") $Count = $Count + 1 WEnd $AppsAdded = GuiCtrlCreateList("", 200, 10, 120, 320) $moverightbtn1 = GuiCtrlCreateButton(">>",150,100,40,20) $moveleftbtn1 = GuiCtrlCreateButton("<<",150,130,40,0) GUISetState() $Count1 = 0 While 1 $button = GUIGetMsg() If $button = $GUI_EVENT_ClOSE Then ExitLoop EndIf If $button = $moverightbtn1 Then $rightmoveitem = GuiCtrlRead($ListofApps) ConsoleWrite($rightmoveitem & @CRLF) GuiCtrlSetdata($AppsAdded, $rightmoveitem) $Count1 = $Count + 1 EndIf If $button = $moveleftbtn1 Then $leftmoveitem = GuiCtrlRead($AppsAdded) ConsoleWrite($leftmoveitem & @CRLF) GuiCtrlSetdata($ListofApps, $leftmoveitem) $Count1 = $Count + 1 EndIf WEnd EndFunc
  5. I am trying to check if mutliple checkboxes are checked. Can someone please help me? Here is my code. Thanks! #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <array.au3> #include <GUIScrollBars_Ex.au3> Func Selectapps() $Count = 0 $Distance = 10 GUICreate("Testing checkbox", 500, 550) While $Count < $appIdCount $temp = $AppIdProc[$Count][0] $AppCheckbox = GUICtrlCreateCheckbox($temp, 20, $Distance) $Count = $Count + 1 $distance = $Distance + 20 WEnd $NextButton = GUICtrlCreateButton("Next", 350, 475, 100, 50) ;_GUIScrollbars_Generate($AppsListGUI, 600, 600) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd EndFunc
×
×
  • Create New...