Mulnore Posted February 15, 2010 Posted February 15, 2010 (edited) If winexists ( "blah blah", "blah blah" ) then call ( "blah" ) else call ( "blah" ) endif C:\Program Files\AutoIt3\Projects\blah.au3(53,6) : ERROR: syntax error else call ~~~~^ C:\Program Files\AutoIt3\Projects\blah.au3(51,18) : ERROR: blah(): undefined function. call ( "blah" ) ~~~~~~~~~^ Why am I getting this? Obviously I am new.. Edited February 15, 2010 by Mulnore
hot202 Posted February 15, 2010 Posted February 15, 2010 If winexists ( "blah blah", "blah blah" ) then call ( "blah" ) else call ( "blah" ) endif
Mulnore Posted February 15, 2010 Author Posted February 15, 2010 (edited) Thank you that worked but.. Could you explain exactly what was wrong? The way I had it positioned I know but I want to understand it. Edited February 15, 2010 by Mulnore
whim Posted February 15, 2010 Posted February 15, 2010 A fair number of AutoIt keywords must be the only statement on a line among them Else, everything starting with End or Exit, Next, .... In general, the excellent help file will show you in an example how to use a certain command, just press F1 with your cursor sitting right before a command. Another remark: you will not usually need Call to start a built-in or self-defined function HTH, whim
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now