stolie Posted January 31, 2008 Share Posted January 31, 2008 Hi AllAlso referring to post:similar postI have followed the example in the above and cannot seem to get it to work to my needs, here is what i have so far[/code] $StartTime= "00:05" $Currenttime= _NowTime(4) If $Currenttime=$StartTime Then Winactive("mywindow") ControlClick("mybutton") EndIf [code]Basically i need to just start a program and hit a button at a particular time (after i leave the office)I think i need to add a pause in there of some type, for it to keep looping and checking until it reaches the time i want it to start., as when i start the macro, it just starts and then stops, as currentime doesnt equal starttimeAny hints on how to do this?Thanks Link to comment Share on other sites More sharing options...
rasim Posted January 31, 2008 Share Posted January 31, 2008 Try this: #include <Date.au3> $StartTime = "12:01" Do Sleep(1000) Until _NowTime(4) >= $StartTime MsgBox(0, "Timer", $StartTime)oÝ÷ Øêí+ºÚ"µÍÌÍÔÝ[YHH ][ÝÌL I][ÝÂÂTÛY L B[[ÕT [É][ÝÎ][ÝÉ[ÈRS ÝÏH ÌÍÔÝ[YBÙÐÞ ][ÝÕ[Y][ÝË ÌÍÔÝ[YJ Link to comment Share on other sites More sharing options...
BrettF Posted January 31, 2008 Share Posted January 31, 2008 Work some magic with windows tasks... Someone has done something somewhere... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
stolie Posted January 31, 2008 Author Share Posted January 31, 2008 ahhhhh the simplicity of it all, thanks , will test it all tomorrow, ) 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