Jump to content
Sign in to follow this  
kewlrobert

repeat a script

Recommended Posts

kewlrobert

how do i make this script repeat indefinitley? i'm new to this and trying to learn so go easy on me :P

MouseMove(737, 475)

Sleep(5000) ;five seconds

MouseClick("left")

Sleep(1800000) ;thirty minutes

Share this post


Link to post
Share on other sites
ken82m

1 will of course never equal zero so it will kep looping forever.

Do
MouseMove(737, 475)
Sleep(5000);five seconds
MouseClick("left")
Sleep(1800000);thirty minutes
Until 1 = 0

My Contributions _StringMultiReplace PC Builders Console - Secure PDF Creator - Cisco VPN Installer MS DNS Server Backup Script - MS DHCP Backup Script IT Admin Console - Toggle Admin Mode - MyMovies-Add Discs Script - IT Help Desk and System Information Tool - Set On Lid Close Power Option - Streaming Media Server & Website "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Share this post


Link to post
Share on other sites
herewasplato

Do you really need a sleep between the mouse move and the click?

While 1
    MouseClick("left", 737, 475, 1)
    Sleep(1800000);thirty minutes
WEnd


[size="1"][font="Arial"].[u].[/u][/font][/size]

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.