Jump to content
sasruko

Window is closing when i trying to stop the loop.

Recommended Posts

sasruko

The window is closing when i want to stop the loop. but I just want to ending to loop. not the window. i tried everything but never worked. how can i do ?

HotKeySet("{ESC}","quit")
While True
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button1
            example()
        Case $Button2
            quit()
    EndSwitch
WEnd

Func example()
    While
        running my script
    WEnd
EndFunc

Func quit
        this function should provide ending to loop.
EndFunc

 

Share this post


Link to post
Share on other sites
JLogan3o13

@sasruko you cannot honestly think anyone can help you, do you? You have code that won't run, you have two functions that contain no code at all - sorry but my crystal ball is in the shop. Please post your entire code (or at least a runnable example that demonstrates the problem) and help us help you.


√-1 2^3 ∑ π, and it was delicious!

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

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.