Sign in to follow this  
Followers 0
Guest Pattty

how do i get my script to repeat

10 posts in this topic

i have my whole script typed out but how do i get it to repeat over and over again non stop

Share this post


Link to post
Share on other sites



Put the whole script into a while \ Wend loop.

Best answer I can give with the info that you have given.

Share this post


Link to post
Share on other sites

While 1

SCRIPT HERE

Wend


FootbaG

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Which forum do tou want an answer from? Maybe here?

Please be more descriptive.

Edited by MHz

Share this post


Link to post
Share on other sites

Might I ask what MSFN has to do with AutoIt support?? I dont understand how these two relate.

JS


AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Share this post


Link to post
Share on other sites

I do not know where to answer. AU2 Support, AU3 Support or any other furom thar asks for Autoit Support?

Share this post


Link to post
Share on other sites

well i have autoit3 now, here this might help, it is my script

WinActivate, SwgClient

Sleep, 3000

mousemove, 441,19

Sleep, 500

LeftClick, 441,19

Sleep, 500

mousemove, 677,873

Sleep, 500

LeftClick, 677,863

Sleep, 500

mousemove, 316,249

Sleep, 500

LeftClick, 316,249

LeftClick, 316,249

LeftClick, 316,249

Sleep, 500

mousemove, 385,268

Sleep, 500

LeftClick, 385,268

LeftClick, 385,268

LeftClick, 385,268

Sleep, 500

mousemove, 1025,931

Sleep, 500

LeftClick, 1025,931

Sleep, 500

mousemove, 723,533

Sleep, 500

LeftClick, 723,533

Sleep, 500

mousemove, 695,615

Sleep, 500

LeftClick, 695,615

Sleep, 500

mousemove, 717,604

Sleep, 500

LeftClick, 717,604

Sleep, 500

mousemove, 704,521

Sleep, 500

LeftClick, 704,521

Sleep, 2000

mousemove, 478,21

Sleep, 500

LeftClick, 478,21

Sleep, 500

mousemove, 677,873

Sleep, 500

LeftClick, 677,863

Sleep, 500

mousemove, 316,249

Sleep, 500

LeftClick, 316,249

LeftClick, 316,249

LeftClick, 316,249

Sleep, 500

mousemove, 385,268

Sleep, 500

LeftClick, 385,268

LeftClick, 385,268

LeftClick, 385,268

Sleep, 500

mousemove, 1025,931

Sleep, 500

LeftClick, 1025,931

Sleep, 500

mousemove, 723,533

Sleep, 500

LeftClick, 723,533

Sleep, 500

mousemove, 695,615

Sleep, 500

LeftClick, 695,615

Sleep, 500

mousemove, 717,604

Sleep, 500

LeftClick, 717,604

Sleep, 500

mousemove, 704,521

Sleep, 500

LeftClick, 704,521

Sleep, 2000

mousemove, 508,22

Sleep, 500

LeftClick, 508,22

Sleep, 500

mousemove, 677,873

Sleep, 500

LeftClick, 677,863

Sleep, 500

mousemove, 316,249

Sleep, 500

LeftClick, 316,249

LeftClick, 316,249

LeftClick, 316,249

Sleep, 500

mousemove, 385,268

Sleep, 500

LeftClick, 385,268

LeftClick, 385,268

LeftClick, 385,268

Sleep, 500

mousemove, 1025,931

Sleep, 500

LeftClick, 1025,931

Sleep, 500

mousemove, 723,533

Sleep, 500

LeftClick, 723,533

Sleep, 500

mousemove, 695,615

Sleep, 500

LeftClick, 695,615

Sleep, 500

mousemove, 717,604

Sleep, 500

LeftClick, 717,604

Sleep, 500

mousemove, 704,521

Sleep, 500

LeftClick, 704,521

Sleep, 2000

mousemove, 547,22

Sleep, 500

LeftClick, 547,22

Sleep, 500

mousemove, 677,873

Sleep, 500

LeftClick, 677,863

Sleep, 500

mousemove, 316,249

Sleep, 500

LeftClick, 316,249

LeftClick, 316,249

LeftClick, 316,249

Sleep, 500

mousemove, 385,268

Sleep, 500

LeftClick, 385,268

LeftClick, 385,268

LeftClick, 385,268

Sleep, 500

mousemove, 1025,931

Sleep, 500

LeftClick, 1025,931

Sleep, 500

mousemove, 723,533

Sleep, 500

LeftClick, 723,533

Sleep, 500

mousemove, 695,615

Sleep, 500

LeftClick, 695,615

Sleep, 500

mousemove, 717,604

Sleep, 500

LeftClick, 717,604

Sleep, 500

mousemove, 704,521

Sleep, 500

LeftClick, 704,521

Sleep, 3000

and i just want it to repeat over and over again

Share this post


Link to post
Share on other sites

That's not version 3 syntax... So if you are using version 3 you will need to completely re-write that. If you wanna keep it like that and just make it loop, add this:

While 1

ALL THAT LONG STUFF HERE

Wend

Share this post


Link to post
Share on other sites

Arh, for Autoit 2. Look at GOTO command for the bottom of the script. To goto the top again. Or go to downloads and get Autoit 1.0.103, and then you can use While, Wend commands.

:)

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

quick conversion, might have missed something:

WinActivate("SwgClient")
while 1                     ; this repeats when it gets to Wend
sleep( 3000)


mousemove( 441,19)
sleep( 500)
mouseclick( "left" 441,19 ,1,1)
sleep( 500)
mousemove( 677,873)
sleep( 500)
mouseclick( "left" 677,863 ,1,1)
sleep( 500)
mousemove( 316,249)
sleep( 500)
mouseclick( "left" 316,249 ,1,1)
mouseclick( "left" 316,249 ,1,1)
mouseclick( "left" 316,249 ,1,1)
sleep( 500)
mousemove( 385,268)
sleep( 500)
mouseclick( "left" 385,268 ,1,1)
mouseclick( "left" 385,268 ,1,1)
mouseclick( "left" 385,268 ,1,1)
sleep( 500)
mousemove( 1025,931)
sleep( 500)
mouseclick( "left" 1025,931 ,1,1)
sleep( 500)
mousemove( 723,533)
sleep( 500)
mouseclick( "left" 723,533 ,1,1)
sleep( 500)
mousemove( 695,615)
sleep( 500)
mouseclick( "left" 695,615 ,1,1)
sleep( 500)
mousemove( 717,604)
sleep( 500)
mouseclick( "left" 717,604 ,1,1)
sleep( 500)
mousemove( 704,521)
sleep( 500)
mouseclick( "left" 704,521 ,1,1)


sleep( 2000)

mousemove( 478,21)
sleep( 500)
mouseclick( "left" 478,21 ,1,1)
sleep( 500)
mousemove( 677,873)
sleep( 500)
mouseclick( "left" 677,863 ,1,1)
sleep( 500)
mousemove( 316,249)
sleep( 500)
mouseclick( "left" 316,249 ,1,1)
mouseclick( "left" 316,249 ,1,1)
mouseclick( "left" 316,249 ,1,1)
sleep( 500)
mousemove( 385,268)
sleep( 500)
mouseclick( "left" 385,268 ,1,1)
mouseclick( "left" 385,268 ,1,1)
mouseclick( "left" 385,268 ,1,1)
sleep( 500)
mousemove( 1025,931)
sleep( 500)
mouseclick( "left" 1025,931 ,1,1)
sleep( 500)
mousemove( 723,533)
sleep( 500)
mouseclick( "left" 723,533 ,1,1)
sleep( 500)
mousemove( 695,615)
sleep( 500)
mouseclick( "left" 695,615 ,1,1)
sleep( 500)
mousemove( 717,604)
sleep( 500)
mouseclick( "left" 717,604 ,1,1)
sleep( 500)
mousemove( 704,521)
sleep( 500)
mouseclick( "left" 704,521 ,1,1)

sleep( 2000)

mousemove( 508,22)
sleep( 500)
mouseclick( "left" 508,22 ,1,1)
sleep( 500)
mousemove( 677,873)
sleep( 500)
mouseclick( "left" 677,863 ,1,1)
sleep( 500)
mousemove( 316,249)
sleep( 500)
mouseclick( "left" 316,249 ,1,1)
mouseclick( "left" 316,249 ,1,1)
mouseclick( "left" 316,249 ,1,1)
sleep( 500)
mousemove( 385,268)
sleep( 500)
mouseclick( "left" 385,268 ,1,1)
mouseclick( "left" 385,268 ,1,1)
mouseclick( "left" 385,268 ,1,1)
sleep( 500)
mousemove( 1025,931)
sleep( 500)
mouseclick( "left" 1025,931 ,1,1)
sleep( 500)
mousemove( 723,533)
sleep( 500)
mouseclick( "left" 723,533 ,1,1)
sleep( 500)
mousemove( 695,615)
sleep( 500)
mouseclick( "left" 695,615 ,1,1)
sleep( 500)
mousemove( 717,604)
sleep( 500)
mouseclick( "left" 717,604 ,1,1)
sleep( 500)
mousemove( 704,521)
sleep( 500)
mouseclick( "left" 704,521 ,1,1)

sleep( 2000)

mousemove( 547,22)
sleep( 500)
mouseclick( "left" 547,22 ,1,1)
sleep( 500)
mousemove( 677,873)
sleep( 500)
mouseclick( "left" 677,863 ,1,1)
sleep( 500)
mousemove( 316,249)
sleep( 500)
mouseclick( "left" 316,249 ,1,1)
mouseclick( "left" 316,249 ,1,1)
mouseclick( "left" 316,249 ,1,1)
sleep( 500)
mousemove( 385,268)
sleep( 500)
mouseclick( "left" 385,268 ,1,1)
mouseclick( "left" 385,268 ,1,1)
mouseclick( "left" 385,268 ,1,1)
sleep( 500)
mousemove( 1025,931)
sleep( 500)
mouseclick( "left" 1025,931 ,1,1)
sleep( 500)
mousemove( 723,533)
sleep( 500)
mouseclick( "left" 723,533 ,1,1)
sleep( 500)
mousemove( 695,615)
sleep( 500)
mouseclick( "left" 695,615 ,1,1)
sleep( 500)
mousemove( 717,604)
sleep( 500)
mouseclick( "left" 717,604 ,1,1)
sleep( 500)
mousemove( 704,521)
sleep( 500)
mouseclick( "left" 704,521 ,1,1)

Sleep( 3000)
wend; this basically starts again at while
Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

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