Jump to content

gaap_nl

Members
  • Posts

    4
  • Joined

  • Last visited

gaap_nl's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. @Nine You're the man many thanks i was so lost unit i saw: $nMsg = GUIGetMsg()     Switch $nMsg         Case $Button1             ConsoleWrite('ok pressed' & @CRLF)         Case $GUI_EVENT_CLOSE             GUIDelete ()             TrayItemDelete ($showgui)             TrayItemDelete ($hidegui)     EndSwitch This explained eveything i was running in too. You're a life saver !
  2. @Nine thnx i tried that but when i did GuiDelete or as in a other topic was stated GuiSetState(@SW_HIDE) the menu functions of the traymenu stop working, any one any idea other then making it 2 diferent scripts?
  3. Hi, Sorry to bump this tread but i was wondering if there is a way so that the traymenu does not exit when closing the gui? #include <GUIConstants.au3> Opt('TrayMenuMode',3) Opt('TrayAutoPause',0) $gui = GUICreate("My GUI") $Button1 = GUICtrlCreateButton("Button1", 8, 8, 75, 25) $showgui = TrayCreateItem("Show") $hidegui = TrayCreateItem("Hide") $exitItem = TrayCreateItem("Exit") TraySetState() GUISetState (@SW_HIDE, $gui) While 1     $tMsg = TrayGetMsg()     Switch $tMsg         Case $showgui             GUISetState(@SW_SHOW, $gui)         Case $hidegui             GUISetState(@SW_HIDE, $gui)         Case $exitItem             Exit     EndSwitch     $nMsg = GUIGetMsg()     Switch $nMsg         Case $Button1             ConsoleWrite('ok pressed'&@LF)         Case $GUI_EVENT_CLOSE             Exitloop     EndSwitch Wend Thanks.
  4. Next is the case As I run the code as stated below from my windows run box it works perfectly but from my AutoIT script it gives me an error. I know why but I have no clue what to do about it ! The problem sits in the exclamation marks (") at the start of the run command in autoIT it is used to point @ the beginning of the command. but inside my command there is use of these marks look @ the part i marked red ! hope one of you guy's can help me ! [begin Code] run ("%SystemRoot%\system32\rundll32.exe %SystemRoot%\system32\shell32.dll,Control_RunDLL %SystemRoot%\system32\desk.cpl desk,@Themes /Action:OpenTheme /file:"C:\WINDOWS\Resources\Themes\Windows Classic.theme"") Send("{enter}") sleep(100) [End Code]
×
×
  • Create New...