Midget182 0 Posted May 7, 2004 How does the @MIN command work, i would like to have it active something at say 5:00 pm and not have to Sleep until then...i want it to be at exactly 5:00. I would also like to have script that gets the MousePos (x,y) and can utilize it in mousemoves and mouse clicks...am I a just too noob at this to understand it? :iamstupid: Share this post Link to post Share on other sites
ghettochild 0 Posted May 7, 2004 I am new here too and as for the mouse clicks you could check out my program in the scripts and scraps section. Share this post Link to post Share on other sites
Jon 1,009 Posted May 7, 2004 This script will wait for 5pm (@hour = 17). It will check the time every 5 seconds so that there is no CPU load. While @HOUR <> 17 Sleep(5000) WEnd MsgBox(0, "", "It is 5pm!") Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Share this post Link to post Share on other sites
Midget182 0 Posted May 7, 2004 Thank you, but can other things be ran in the script While the While is running.... ;this will all be ran right? (1) While @HOUR <> 17 Sleep(5000) WEnd ;what about here (2) MsgBox(0, "", "It is 5pm!") ;or here (3) *which of those will be able to run, while its waiting to be 5pm?* Share this post Link to post Share on other sites
Jos 2,165 Posted May 7, 2004 Thank you, but can other things be ran in the script While the While is running.... You can call a function like: While @HOUR <> 17 Sleep(50) test() WEnd MsgBox(0, "", "It is 5pm!") func test() ; do some repeatative stuff while waiting endfunc SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites
scriptkitty 1 Posted May 7, 2004 (edited) you can do anything you wish, as well as set up the adlib ( check this function every X miliseconds.) ex: AdlibEnable ("_time1") ; bunch of code ; some loops ; other code while 1 sleep(10) wend func _time1() if @HOUR = 17 and @MIN=00 then MsgBox(0, "", "It is 5pm!") endif endfunc Edited May 7, 2004 by scriptkitty AutoIt3, the MACGYVER Pocket Knife for computers. Share this post Link to post Share on other sites