Sign in to follow this  
Followers 0
dakota

call a function

5 posts in this topic

how do i call a function

like this:

code code

code code

call done

code code

this is the real code

While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case $msg = $done
    call function "done" here
    Case Else
        ;;;
    EndSelect
WEnd

Share this post


Link to post
Share on other sites



While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case $msg = $done
       Done()
    Case Else
       ;;;
    EndSelect
WEnd

Func Done()
   MsgBox(64, @ScriptName, "Done!")
EndFunc

Share this post


Link to post
Share on other sites

ok think you i will try that :D

Share this post


Link to post
Share on other sites

ok think you i will try that :D

I am not being cheeky but the word is thank not think. If no-one tells you the correct spelling you will never know.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

OK think you, Oh and I thank I will try that LOL

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