Sign in to follow this  
Followers 0
spiderous

loop problems

4 posts in this topic

#1 ·  Posted (edited)

OK, I don't understand what the looping process is. I see it posted with all the "while.. end stuff. but I dont understand what all the $symbols mean and everything. I just want it to loop indefinatly.this is my script.

////////////////////////////////////////////////////////////

Sleep ( 5000 )

MouseClick("left", 296, 56, 1)

Sleep ( 1500 )

MouseClick("left", 212, 259, 3)

Sleep ( 1000 )

MouseClick("left", 264, 251, 3)

Sleep ( 1500 )

MouseClick("left", 738, 662, 1)

Sleep ( 1500 )

MouseClick("left", 571, 407, 1)

Sleep ( 4000 )

MouseClick("left", 694, 603, 1)

Sleep ( 1500 )

MouseClick("left", 753, 593, 1)

Sleep ( 1500 )

MouseClick("left", 581, 392, 1)

Sleep ( 1500 )

MouseClick("left", 326, 53, 1)

Sleep ( 1500 )

MouseClick("left", 212, 259, 3)

Sleep ( 1000 )

MouseClick("left", 264, 251, 3)

Sleep ( 1500 )

MouseClick("left", 738, 662, 1)

Sleep ( 1500 )

MouseClick("left", 571, 407, 1)

Sleep ( 4000 )

MouseClick("left", 694, 603, 1)

Sleep ( 1500 )

MouseClick("left", 753, 593, 1)

Sleep ( 1500 )

MouseClick("left", 581, 392, 1)

Sleep ( 1500 )

MouseClick("left", 359, 48, 1)

Sleep ( 1500 )

MouseClick("left", 212, 259, 3)

Sleep ( 1000 )

MouseClick("left", 264, 251, 3)

Sleep ( 1500 )

MouseClick("left", 738, 662, 1)

Sleep ( 1500 )

MouseClick("left", 571, 407, 1)

Sleep ( 4000 )

MouseClick("left", 694, 603, 1)

Sleep ( 1500 )

MouseClick("left", 753, 593, 1)

Sleep ( 1500 )

MouseClick("left", 581, 392, 1)

Sleep ( 1500 )

MouseClick("left", 395, 51, 1)

Sleep ( 1500 )

MouseClick("left", 212, 259, 2)

Sleep ( 1500 )

MouseClick("left", 264, 251, 2)

Sleep ( 1500 )

MouseClick("left", 738, 662, 1)

Sleep ( 1500 )

MouseClick("left", 571, 407, 1)

Sleep ( 4000 )

MouseClick("left", 694, 603, 1)

Sleep ( 1500 )

MouseClick("left", 753, 593, 1)

Sleep ( 1500 )

MouseClick("left", 581, 392, 1)

Sleep ( 1500 )

MouseClick("left", 456, 53, 1)

Sleep ( 1500 )

MouseClick("left", 212, 259, 2)

Sleep ( 1000 )

MouseClick("left", 264, 251, 2)

Sleep ( 1500 )

MouseClick("left", 738, 662, 1)

Sleep ( 1500 )

MouseClick("left", 571, 407, 1)

Sleep ( 4000 )

MouseClick("left", 694, 603, 1)

Sleep ( 1500 )

MouseClick("left", 753, 593, 1)

Sleep ( 1500 )

MouseClick("left", 581, 392, 1)

Sleep ( 1500 )

MouseClick("left", 486, 52, 1)

Sleep ( 1500 )

MouseClick("left", 212, 259, 2)

Sleep ( 1000 )

MouseClick("left", 264, 251, 2)

Sleep ( 1500 )

MouseClick("left", 738, 662, 1)

Sleep ( 1500 )

MouseClick("left", 571, 407, 1)

Sleep ( 4000 )

MouseClick("left", 694, 603, 1)

Sleep ( 1500 )

MouseClick("left", 753, 593, 1)

Sleep ( 1500 )

MouseClick("left", 581, 392, 1)

Sleep ( 1500 )

MouseClick("left", 515, 49, 1)

Sleep ( 1500 )

MouseClick("left", 212, 259, 2)

Sleep ( 1000 )

MouseClick("left", 264, 251, 2)

Sleep ( 1500 )

MouseClick("left", 738, 662, 1)

Sleep ( 1500 )

MouseClick("left", 571, 407, 1)

Sleep ( 4000 )

MouseClick("left", 694, 603, 1)

Sleep ( 1500 )

MouseClick("left", 753, 593, 1)

Sleep ( 1500 )

MouseClick("left", 581, 392, 1)

Sleep ( 1500 )

/////////////////////////////////////////////

Will someone write a loop for me and also a pause button too please. I have tried to figure this out for days.

Edited by spiderous

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

for looping for ever just start with "While 1" put whatever you want and finish with "Wend".

The $ is needed to identify a variable.

I don't know your training in computing design but reading the help file and trying to understand the example could help.

:ph34r:

Edited by jpm

Share this post


Link to post
Share on other sites

I have no training. I tried to understand the example but I can tell the vairable from the script, I have never done this before I read the help file and made the script you see above. I have tried to loop but just get errors.

SO what your saying is if I start my script with while 1, and end my script with wend. it will loop?

Share this post


Link to post
Share on other sites

SO what your saying is if I start my script with while 1, and end my script with wend. it will loop?

Yes.

Here is an example of an infinate loop. To end this script, you'll have to right click on the taskbar icon and exit the script.

Run("notepad.exe")
WinWaitActive("Untitled - Notepad")
While 1
  Send("This test will send over and over and over until you kill the script{ENTER}")
  Sleep(100)
WEnd

[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

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