Help for Autoit

04/28/2007 09:53 Hiyoal#1
Hey,

Im writing a program atm which uses inputbox but i dont know how to right code, which when "Cancel" is pressed it calls a user defined function to prompt if you really want to quit.

I also want to know what @error is and how it is used. Same with @seterror.

Is it used such as :

Func Start()
$path = InputBox("Path","Type your path.","","")
$run = Run($path)
If $run = @error Then
Call("Prompt")
EndIf
EndFunc

Func Prompt()
MsgBox(0,"Path","Cannot Find specific file!")
Call("start")
EndFunc


Hiyoal