Jump to content
Sign in to follow this  

Hotkeys in GUI

Recommended Posts

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

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

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)


While 1
   $MSG = GUIMsg(0)
      Case $MSG = -3 or GUIRead() = $ncancel
      Case GUIRead() = $NOK
        ; whatever

FUNC stop()
   if Msgbox(4,"End pressed","Do you want to stop this scrip?")= 6  then Exit

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...