Guest Shakra Posted June 22, 2004 Share Posted June 22, 2004 Ok, i made a gui The purpose of the gui is simple : When i click start, it maximize a window and dont stop clicking enter. But i tryed to make a button to pause it and it doesnt work, so if someone could help me... Ill post the gui here so you can see if theres a problem expandcollapse popup$timer = 0; Opt("GUICoordMode", 1) Opt("GUINotifyMode", 1) GuiCreate("LoL", 115,206,(@DesktopHeight-115)/2, (@DesktopHeight-206)/2 , 0x04CF0000) $start = GUISetControl("button", "Start", 30, 40, 60, 20) $pause = GUISetControl("button", "Pause", 30, 80, 60, 20) $restart = GUISetControl("button", "Restart", 30, 120, 60, 20) $made = GUISetControl("pic", "made.gif", 20, 10, 80, 20) $more = GUISetControl("pic", "more.gif", 10, 160, 100, 20) GuiShow() While 1 sleep(100) $msg = GuiMsg(0) Select Case $msg = -3 Exit Case $msg = 5 ;;; Case $msg = $start WinActivate("Lords of Lords Default - Netscape","") $timer = 1; Do Send("{ENTER down}") Until $timer = 0; Case $msg = $pause $timer = 0; Do Sleep(100) Until $timer = 1; Case $msg = $restart WinActivate("Lords of Lords Default - Netscape","") $timer = 1; Do Send("{ENTER down}") Until $timer = 0; Case $msg = $made ;;; Case $msg = $more ;;; EndSelect WEnd Exit Link to comment Share on other sites More sharing options...
Guest Shakra Posted June 22, 2004 Share Posted June 22, 2004 Ho sorry i think i posted in the wrong forum.. if a mod could move this to V3 Gui... i think it would be better there. Thanks 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