dakota 0 Report post Posted June 7, 2006 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
SlimShady 0 Report post Posted June 7, 2006 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
dakota 0 Report post Posted June 7, 2006 ok think you i will try that Share this post Link to post Share on other sites
BigDod 505 Report post Posted June 7, 2006 ok think you i will try that 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. ElliotSuspense is worse than disappointment................Robert BurnsGod 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
dakota 0 Report post Posted June 7, 2006 OK think you, Oh and I thank I will try that LOL Share this post Link to post Share on other sites