VicTT Posted April 20, 2005 Posted April 20, 2005 (edited) I think I'm going to burst right now..I'm trying to get used to the AutoIt syntax..I'm kinda into PASCAL style syntax..ok..so..pls excuse the language..but..WHAT THE F*CK IS WRONG WITH THIS BIT OF CODE????? $x=ControlSend("Away","",5001,"Hello World") If $x=1 Then MsgBox(0,"Y","Y") Else MsgBox(0,"N","N") EndIf WHY IN GOD'S NAME DOESN'T IT COMPILE???? (And I know this must be such a newbie question..But it simply says "Syntax error" and that is MORE THAN ANNOYING!).. Edited April 20, 2005 by VicTT Quote Together we might liveDivided we must fall
Helge Posted April 20, 2005 Posted April 20, 2005 (edited) Try this : $x=ControlSend("Away","",5001,"Hello World") If $x=1 Then MsgBox(0,"Y","Y") Else MsgBox(0,"N","N") EndIf Edited April 20, 2005 by Helge
Ejoc Posted April 20, 2005 Posted April 20, 2005 (edited) Need new line $x=ControlSend("Away","",5001,"Hello World") If $x=1 Then MsgBox(0,"Y","Y") Else MsgBox(0,"N","N") EndIf Gah! you beat me Edited April 20, 2005 by Ejoc Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs
VicTT Posted April 20, 2005 Author Posted April 20, 2005 Yea..same error.. ;BEGIN : ERROR : syntax error Else MsgBox ~~~~^ ;END This is exactly what I'm getting.. Quote Together we might liveDivided we must fall
VicTT Posted April 20, 2005 Author Posted April 20, 2005 Yep..that seems to work..10q Quote Together we might liveDivided we must fall
Ejoc Posted April 20, 2005 Posted April 20, 2005 Yea..same error..;BEGIN: ERROR : syntax errorElse MsgBox~~~~^;ENDThis is exactly what I'm getting..<{POST_SNAPBACK}> You didnt add the new lines Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs
Helge Posted April 20, 2005 Posted April 20, 2005 Yea..same error..;BEGIN: ERROR : syntax errorElse MsgBox~~~~^;ENDThis is exactly what I'm getting..<{POST_SNAPBACK}>Hehe, sorry about that one. :"> I quicly scanned your code and noticed the first MsgBox, but not the second.
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