Jump to content
Sign in to follow this  
MKNV

Simple program

Recommended Posts

MKNV

I want to get an output of z22222z22222z2222......etc. With this program but it's not working, why?

while 1<=2

Send("{z}")

Send("{2}")

Send("{2}")

Send("{2}")

Send("{2}")

Send("{2}")

Send("{2}")

Send("{2}")

WEnd

Share this post


Link to post
Share on other sites
erezlevi

I want to get an output of z22222z22222z2222......etc. With this program but it's not working, why?

while 1<=2

Send("{z}")

Send("{2}")

Send("{2}")

Send("{2}")

Send("{2}")

Send("{2}")

Send("{2}")

Send("{2}")

WEnd

works for me.... this is the output:

z2222222z2222222z2222222z2222222z2222222z2222222z2222222z2222222z2222222z2222222z2222222z2222222z222

2222z2222222z2222222z2222222z2

Share this post


Link to post
Share on other sites
erezlevi

Ah....

It was blocked by an other program.

Thanks :D

Nice while statement!

Share this post


Link to post
Share on other sites
Squirrely1

You both have this all wrong -

$Queen_Elizabeth = 666
$a_megalomaniac = 667
While $Queen_Elizabeth < $a_megalomaniac
    Send("z22222")
    Sleep(28)
WEnd
Edited by Squirrely1

Das Häschen benutzt Radar

Share this post


Link to post
Share on other sites
weaponx

This makes no sense to me...this loop will run forever.

while 1<=2
Send("{z}")
Send("{2}")
Send("{2}")
Send("{2}")
Send("{2}")
Send("{2}")
Send("{2}")
Send("{2}")
WEnd

Same thing as:

while 1
Send("{z}")
Send("{2}")
Send("{2}")
Send("{2}")
Send("{2}")
Send("{2}")
Send("{2}")
Send("{2}")
WEnd

You have no increment.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.