chernivolk Posted March 27, 2008 Share Posted March 27, 2008 Hi, i created the mouse move script via the script creator, need to run it every 5 min automatically, please help. thanks. Link to comment Share on other sites More sharing options...
Xenobiologist Posted March 27, 2008 Share Posted March 27, 2008 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 Link to comment Share on other sites More sharing options...
Squirrely1 Posted March 27, 2008 Share Posted March 27, 2008 (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 March 27, 2008 by Squirrely1 Das Häschen benutzt Radar Link to comment Share on other sites More sharing options...
chernivolk Posted March 27, 2008 Author Share Posted March 27, 2008 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. Link to comment Share on other sites More sharing options...
Squirrely1 Posted March 27, 2008 Share Posted March 27, 2008 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 Link to comment Share on other sites More sharing options...
realkiller Posted March 28, 2008 Share Posted March 28, 2008 while 1 MouseMove(10, 100) Sleep(5000) wend Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2 Link to comment Share on other sites More sharing options...
Distrophy Posted March 28, 2008 Share Posted March 28, 2008 while 1MouseMove(10, 100)Sleep(5000)wendsleep 5000 will give you 5 seconds not 5 minutes. Try sleep(300000) 5minutes *60seconds *1000ms = 300000 Link to comment Share on other sites More sharing options...
Squirrely1 Posted March 28, 2008 Share Posted March 28, 2008 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 Link to comment Share on other sites More sharing options...
chernivolk Posted March 31, 2008 Author Share Posted March 31, 2008 Thank you very much for your posts. It works like a charm. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now