Jump to content

Recommended Posts

Posted (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 by VicTT
Quote

Together we might liveDivided we must fall

 

Posted (edited)

Try this :

$x=ControlSend("Away","",5001,"Hello World")
If $x=1 Then
MsgBox(0,"Y","Y")
Else
MsgBox(0,"N","N")
EndIf
Edited by Helge
Posted (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 by Ejoc
Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs
Posted

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

 

Posted

Yea..same error..

;BEGIN

: ERROR : syntax error

Else MsgBox

~~~~^

;END

This 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
Posted

Yea..same error..

;BEGIN

: ERROR : syntax error

Else MsgBox

~~~~^

;END

This 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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...