VicTT 0 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[/quote] Share this post Link to post Share on other sites
Helge 3 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 Share this post Link to post Share on other sites
Ejoc 1 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 Share this post Link to post Share on other sites
VicTT 0 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[/quote] Share this post Link to post Share on other sites
VicTT 0 Posted April 20, 2005 Yep..that seems to work..10q [quote]Together we might liveDivided we must fall[/quote] Share this post Link to post Share on other sites
Ejoc 1 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 Share this post Link to post Share on other sites
Helge 3 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. Share this post Link to post Share on other sites