Jump to content
Sign in to follow this  
VicTT

Help needed quick..pls

Recommended Posts

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[/quote]

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...