Sign in to follow this  
Followers 0
chernivolk

run script every 5 min

9 posts in this topic

Hi, i created the mouse move script via the script creator, need to run it every 5 min automatically, please help.

thanks.

Share this post


Link to post
Share on other sites



Hi, i created the mouse move script via the script creator, need to run it every 5 min automatically, please help.

thanks.

Hi,

running the script every 5 min or executing a func every 5 min? Second build a loop like while wend with a sleep or a Timer.

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Welcome to the AutoIt forums, chernivolk - Note that Jon is considered God over the AutoIt forum and Valik is his prophet.

Look in the AutoIt help file under AutoIt > Function Reference > Timer and Delay Functions > TimerInit

Use the help file's Search feature and search for AdlibEnable - you click on the Search tab, there on the left pane, newbe.

Edited by Squirrely1

Das Häschen benutzt Radar

Share this post


Link to post
Share on other sites

very new to this i know what loops are but dont know the syntax or where to put the statements in before or after the functions.

thanks for all your help.

Share this post


Link to post
Share on other sites

AutoIt isn't like some old version of php any more - functions can be defined anywhere, so folks usually just define them at the bottom of the script, after the main loop if there is one. Browse the forums for some scripts, and study the scripts at the bottom of the lowest nodes in the AutoIt help file.


Das Häschen benutzt Radar

Share this post


Link to post
Share on other sites

while 1

MouseMove(10, 100)

Sleep(5000)

wend

sleep 5000 will give you 5 seconds not 5 minutes. Try sleep(300000)

5minutes *60seconds *1000ms = 300000

Share this post


Link to post
Share on other sites

The real story here though is that if we were all to pool our paychecks to buy SpongeBob a bottle of bathroom cleaner, he'd be a realkiller of bathroom germs, if not of threads.


Das Häschen benutzt Radar

Share this post


Link to post
Share on other sites

Thank you very much for your posts. It works like a charm. :)

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