Sign in to follow this  
Followers 0
thenewkid

syntax error can some one help

5 posts in this topic

Hi does any one know whats wrong with this ?

it says theres a erorr with the while loop

CODE

While

if $name = "" Then

ExitLoop

Else

MsgBox(0,"",$name)

EndIf

WEnd


some of my scripts check them out and give feedback so i can learn from them :)autoclicker a autoclickernote taker a script to take notes with

Share this post


Link to post
Share on other sites



You missed the While condition. Put a 1 there if you want it to always be true (Infinite loop)

While 1
    If $name = "" Then
        ExitLoop
    Else
        MsgBox(0,"",$name)
    EndIf
WEnd

[quote name='Valik' post='301213' date='Jan 31 2007, 10:36 PM']You seem to have a habit of putting things in the wrong place. I feel sorry for any female you attempt to have sex with.[/quote][font="Lucida Sans Unicode"][/font]

Share this post


Link to post
Share on other sites

i see so what else can go behind a while?

thanks


some of my scripts check them out and give feedback so i can learn from them :)autoclicker a autoclickernote taker a script to take notes with

Share this post


Link to post
Share on other sites

I'm not sure I understood what you meant with "behind a while".

You can use any condition, just like in a regular If statement. For example:

$Variable = 1
While ($Variable < 10)
    $Variable = $Variable + 1
WEndoÝ÷ ØêÚºÚ"µÍÌÍÕ[YH[Y[]

BÚ[H
[YY
    ÌÍÕ[YH   È
L
BÛY
L
BÑ[

You can use the tags [­autoit][/­autoit] to put autoit code instead of the regular [­code][/­code].

The code gets colored :P


[quote name='Valik' post='301213' date='Jan 31 2007, 10:36 PM']You seem to have a habit of putting things in the wrong place. I feel sorry for any female you attempt to have sex with.[/quote][font="Lucida Sans Unicode"][/font]

Share this post


Link to post
Share on other sites

thx


some of my scripts check them out and give feedback so i can learn from them :)autoclicker a autoclickernote taker a script to take notes with

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  
Followers 0