Sign in to follow this  
Followers 0
Guest Shakra

Little problem

2 posts in this topic

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

$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

Share this post


Link to post
Share on other sites



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

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