Jump to content

Recommended Posts

Posted

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

Posted

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]

Posted

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]

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