hmmm when i use hotkeys in a gui it wont work, only if the gui aint target, as soon i target the gui it ignore the the hotkey, and that really screws alot...
Hotkeys in GUI
Started by
ronin
, Jul 10 2004 05:20 PM
1 reply to this topic
#1
Posted 10 July 2004 - 05:20 PM
#2
Posted 10 July 2004 - 07:54 PM
Works fine when programmed correctly... So not sure what YOUR problem is ?
Plain Text
HotKeySet("{END}","stop") Opt ("GUINotifyMode", 1) GUICreate("A Test", 290, 230, (@DesktopHeight - 290) / 2, (@DesktopHeight - 230) / 2, 0x04CF0000) GUISetControl("label", "Username:", 20, 10) $NOK = GUISetControl("button", "OK", 50, 190, 80, 20) $NCANCEL = GUISetControl("button", "Cancel", 150, 190, 80, 20) GUIShow() While 1 $MSG = GUIMsg(0) Select Case $MSG = -3 or GUIRead() = $ncancel Exit Case GUIRead() = $NOK ; whatever EndSelect Wend FUNC stop() if Msgbox(4,"End pressed","Do you want to stop this scrip?")= 6 then Exit EndFunc
Visit the SciTE4AutoIt3 Download page for the latest versions Forum Rules
Live for the present,
Dream of the future,
Learn from the past.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users




