innggo Posted December 30, 2009 Share Posted December 30, 2009 Hello, I'm new to AutoIt and I am excited by the possibilities of this great tool ! I've searched the help and the forum (up to the 8th result page) and I have not found an answer. I would like to know how to code this rule : if clock time is 1500 then ______ I have not found a way to access my windows clock time to automate some processes. I could use windows planner to run the exe file but if there is a way to code it I would be more pleased. Thanks for your help ! Link to comment Share on other sites More sharing options...
Developers Jos Posted December 30, 2009 Developers Share Posted December 30, 2009 Look at @Hour and @Min in the helpfile. 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. Link to comment Share on other sites More sharing options...
somdcomputerguy Posted December 30, 2009 Share Posted December 30, 2009 The macros @HOUR and @MIN could be used. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
EndFunc Posted December 30, 2009 Share Posted December 30, 2009 (edited) use the time and date macros @Hour & ":" & @Min Edit: Dang I got beat buy two. LOL Edited December 30, 2009 by EndFunc EndFuncAutoIt is the shiznit. I love it. Link to comment Share on other sites More sharing options...
somdcomputerguy Posted December 30, 2009 Share Posted December 30, 2009 And the _NowTime() function for 'clock time' - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
innggo Posted December 30, 2009 Author Share Posted December 30, 2009 Wow ! Quick answer ! Thanks a lot guys ! Link to comment Share on other sites More sharing options...
James Posted December 30, 2009 Share Posted December 30, 2009 Throw my suggestion into the bag here, _NowCalc Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
innggo Posted December 30, 2009 Author Share Posted December 30, 2009 Maybe it would be helpful to say a bit more about what I am trying to do as I am stuck. I would like to automate certain tasks on a webpage at a certain time (let's say from 1 to 2 pm). Here I would like to open the brower and the page first. But how can I leave the program running till it has performed its tasks ? While _NowTime() = 13/35/00 RunWait( "C:\Program Files\Opera\opera.exe") Send(" ^n http://www.autoitscript.com/forum/index.php {ENTER}" ) WEnd Thanks Link to comment Share on other sites More sharing options...
innggo Posted December 30, 2009 Author Share Posted December 30, 2009 Well maybe I should use the Windows Task Scheduler after all... May be simpler. Maybe it would be helpful to say a bit more about what I am trying to do as I am stuck. I would like to automate certain tasks on a webpage at a certain time (let's say from 1 to 2 pm). Here I would like to open the brower and the page first. But how can I leave the program running till it has performed its tasks ? While _NowTime() = 13/35/00 RunWait( "C:\Program Files\Opera\opera.exe") Send(" ^n http://www.autoitscript.com/forum/index.php {ENTER}" ) WEnd Thanks Link to comment Share on other sites More sharing options...
somdcomputerguy Posted December 30, 2009 Share Posted December 30, 2009 #Include <Date.au3> Do Sleep(100) Until _NowTime(4) = "14:10" ShellExecute("C:\Program Files\Opera\opera.exe", "www.autoitscript.com/forum/index.php") - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
James Posted December 30, 2009 Share Posted December 30, 2009 #Include <Date.au3> Do Sleep(100) Until _NowTime(4) = "14:10" ShellExecute("C:\Program Files\Opera\opera.exe", "www.autoitscript.com/forum/index.php") That's great and all, but then it will only execute once Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
innggo Posted December 30, 2009 Author Share Posted December 30, 2009 Fantastic ! Thanks a lot Snowmaker. I've got a lot to learn. Link to comment Share on other sites More sharing options...
innggo Posted December 30, 2009 Author Share Posted December 30, 2009 That's great and all, but then it will only execute once Actually my dream would be to have a random time within a certain time of the day, eg. anytime from 1 pm to 5 pm, when my tasks are performed everyday... Link to comment Share on other sites More sharing options...
James Posted December 30, 2009 Share Posted December 30, 2009 Actually my dream would be to have a random time within a certain time of the day, eg. anytime from 1 pm to 5 pm, when my tasks are performed everyday...Does that mean I'm like a witch doctor? Check out the Random() function. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
innggo Posted December 30, 2009 Author Share Posted December 30, 2009 Thanks everybody ! I hope to come back here with a pseudo random time code in a few weeks. 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