Sign in to follow this  
Followers 0

Hotkeys in GUI

2 posts in this topic

#1 ·  Posted

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...

Share this post


Link to post
Share on other sites



#2 ·  Posted

Works fine when programmed correctly... So not sure what YOUR problem is ?

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.
  :)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0