rambo3889 Posted November 22, 2005 Share Posted November 22, 2005 Hi the thin i need help to is: Is it possible to make a gui window with hotkeysets there only works when the gui is active ?? Please help My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! youre the best in town Fight! Link to comment Share on other sites More sharing options...
SlimShady Posted November 22, 2005 Share Posted November 22, 2005 I hope this helps you. #include <GUIConstants.au3> $GUI_Hwnd = GUICreate('My GUI') GUISetState() While 1 Sleep(500) SwitchHotKeys('Off') While WinActive($GUI_Hwnd) Sleep(25) $msg = GUIGetMsg() SwitchHotKeys('On') Select Case $msg = $GUI_EVENT_CLOSE CloseWin() EndSelect WEnd WEnd Func SwitchHotKeys($State) If $State = 'On' Then HotKeySet('^w', 'CloseWin') ElseIf $State = 'Off' Then HotKeySet('^w') EndIf EndFunc Func CloseWin() If MsgBox(32 + 4, @ScriptName, 'Would you like to close the GUI?') = 7 Then Return GUIDelete() Exit EndFunc Link to comment Share on other sites More sharing options...
Greenseed Posted November 26, 2005 Share Posted November 26, 2005 look at my post herehttp://www.autoitscript.com/forum/index.php?showtopic=18320is another way for keypress action better then hotkey pressnot write by me!bye bye GreenseedMCSE+I, CCNA, A+Canada, QuebecMake Love Around You. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now