Jump to content

Recommended Posts

Posted

Hi,

I'm very new to AutoIT but have been playing around with it for a few hours. It looks very promissing but I have been searching for 1 feature without succes. Can I somehow get the returnvalue of an exe? I need this to decide what the next step in my script should be. I have been looking trough the helpfile, the examples and the first 8 pages of this support forum but without succes. Is this possible?

Best regards,

Merijn

Posted

$rslt = run.....

if $rslt = 0 Then

;successful

EndIf

-or-

Select

Case $rslt = 0

;successful

Case $rslt = 1

;not successful

Case $rslt = 2

; not successful

EndSelect

also check out @error

Posted

Thanks guys for pointing me in the right direction! It had to be in there but I didn't find it.

Best regards,

Merijn

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
×
×
  • Create New...