Raizeno Posted July 5, 2015 Share Posted July 5, 2015 I have a script that I want to run every hour at minute 15 but I don't know how to get the minute value from the system .Any help is appreciated thanks in advance. Link to comment Share on other sites More sharing options...
mikell Posted July 5, 2015 Share Posted July 5, 2015 @MIN Link to comment Share on other sites More sharing options...
trancexx Posted July 5, 2015 Share Posted July 5, 2015 (edited) If that doesn't work, try @MAX....But only if it wouldn't work. Edited July 5, 2015 by trancexx mikell 1 ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Raizeno Posted July 5, 2015 Author Share Posted July 5, 2015 if @MIN = 15 Then MouseClickDrag("left",700,275,700,600,0) sleep(500) MouseClickDrag("left",700,275,700,600,0) sleep(500) MouseClickDrag("left",700,275,700,600,0) sleep(500) PixelSearch(930,230,1100,650,0x135e13,2) if @error then MouseClick("left",1000,500,1,0) EndIfEndif is there something wrong with the way I use it cause @MIN doesn't seem to work for me Link to comment Share on other sites More sharing options...
Developers Jos Posted July 5, 2015 Developers Share Posted July 5, 2015 What are you trying to do and which part is not working? Put in a Consolewrite() or MsgBox() inside of the IF to see whether your test is working.Jos 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...
Raizeno Posted July 5, 2015 Author Share Posted July 5, 2015 (edited) AdlibRegister("Drag",10000)Func Drag() if @MIN = 15 Then MouseClickDrag("left",700,275,700,600,0) sleep(500) MouseClickDrag("left",700,275,700,600,0) sleep(500) MouseClickDrag("left",700,275,700,600,0) sleep(500) PixelSearch(930,230,1100,650,0x135e13,2) if @error then MouseClick("left",1000,500,1,0) EndIfEndIfEndFunc what I want it to do is drag a list to the top then search for a color if it doesn't find it I want to execute a click at those coordinatesI've put it in an AdlibRegister so it should check for time every 10 sec and at min 15 of every hour I want the script to start running . Edited July 5, 2015 by Raizeno Link to comment Share on other sites More sharing options...
trancexx Posted July 5, 2015 Share Posted July 5, 2015 Did you try the other thing? ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Raizeno Posted July 5, 2015 Author Share Posted July 5, 2015 I'm not in the mood for trolls right now trancexx Link to comment Share on other sites More sharing options...
trancexx Posted July 5, 2015 Share Posted July 5, 2015 Don't be a jackass. I meant to put Consolewrite() or MsgBox() inside the If...Then. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Developers Jos Posted July 5, 2015 Developers Share Posted July 5, 2015 (edited) I'm not in the mood for trolls right now trancexxBelieve it was a very valid question...no?Also hope that the posted script isn't the whole script as it will end right away. Edited July 5, 2015 by Jos 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...
Raizeno Posted July 5, 2015 Author Share Posted July 5, 2015 If that doesn't work, try @MAX....But only if it wouldn't work.I thought she was talking about this my bad. Link to comment Share on other sites More sharing options...
Raizeno Posted July 5, 2015 Author Share Posted July 5, 2015 i think i found the error in my code thank you for your input . Link to comment Share on other sites More sharing options...
Developers Jos Posted July 5, 2015 Developers Share Posted July 5, 2015 I thought she was talking about this my bad.well you thought wrong and need to lighten up as well. Just ignore stuff you think you don't like.See my other comment I added while you posted this last post.Jos 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...
Raizeno Posted July 5, 2015 Author Share Posted July 5, 2015 well you thought wrong and need to lighten up as well. Just ignore stuff you think you don't like.See my other comment I added while you posted this last post.Josno i have an infinite loop that keeps the adlibRegister going all the time so that the script won't end . Link to comment Share on other sites More sharing options...
TheDcoder Posted July 5, 2015 Share Posted July 5, 2015 Try this code & paste the contents of your clipboard here:AdlibRegister("Drag",10000) Func Drag() if @MIN = 15 Then $sClipboard = "1." & MouseClickDrag("left",700,275,700,600,0) sleep(500) $sClipboard = "2. " & MouseClickDrag("left",700,275,700,600,0) sleep(500) $sClipboard = "3. " & MouseClickDrag("left",700,275,700,600,0) sleep(500) $sClipboard = "4. " & PixelSearch(930,230,1100,650,0x135e13,2) if @error then $sClipboard = "5. " & MouseClick("left",1000,500,1,0) EndIf EndIf ClipPut($sClipboard) EndFunc EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
Developers Jos Posted July 5, 2015 Developers Share Posted July 5, 2015 sigh ... @TheDcoder, I am slowly growing tired of your over enthusiastic posting lately without first properly reading.The OP clearly indicated that he found the issue and on top of that: The last provided script is simply wrong as the clipboard is overwritten each loop.Please start to control yourself and simply refrain from posting when not needed. This should sound familiar as this is requested a couple of time lately and my patience is really running thin now!Jos Exit 1 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...
TheDcoder Posted July 5, 2015 Share Posted July 5, 2015 @Jos Sorry Jos! I promise this won't happen an other time EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion 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