Jump to content

Recommended Posts

  • Developers

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

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

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...