Orpheus66 Posted September 26, 2010 Share Posted September 26, 2010 (edited) What i need is pretty simple (i think), all i need is the script to push dpad Up every 2min. The reason is i am on a work laptop and every 10min i have to enter my username and password if the computer is not in use. However, i am able to connect my laptop to my plasma TV and watch movies on it but it is very annoying to get up and push the Up key every 10min. Can anyone help me out? edit: ummm, ya i guess i was a little hasty. Will this work $begin = TimerInit() While 1 sleep(120000) $dif= TimerDiff($begin) send ("{UP}") WEnd Edited September 26, 2010 by Orpheus66 Link to comment Share on other sites More sharing options...
JohnOne Posted September 26, 2010 Share Posted September 26, 2010 You could try 2 things try this script Global $dollarsign = 1 If $dollarsign Then Push("Up_Key") Wait(1000*60*2) Endif or look at the helpfile at loops Send() AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
somdcomputerguy Posted September 26, 2010 Share Posted September 26, 2010 Have a look at these two functions, found oddly enough in the Help file, go figure.. SendSleepWith the example codes, you should be able to come up with pretty much what you want. Post what you come up with if you need more help..Welcome to the Forum! - 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...
JohnOne Posted September 26, 2010 Share Posted September 26, 2010 $begin = TimerInit() While 1 sleep(120000) $dif= TimerDiff($begin) send ("{UP}") WEnd Probably, but leave out the timer stuff, use one or the other, if thats all the script is doing. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
JScript Posted September 26, 2010 Share Posted September 26, 2010 (edited) Which Laptop is this?! What is the OS installed? Which player do you use? I have a laptop that also turn on an LCD TV and use Windows Media Player and jetAudio, both have the option to disable the screen saver in Windows as I'm watching a movie! I did not understand what you want ... Edit: Why "Up Key"? Edited September 26, 2010 by jscript http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere! Link to comment Share on other sites More sharing options...
engjcowi Posted October 26, 2010 Share Posted October 26, 2010 (edited) Dis you figure this out in the end? Edited October 26, 2010 by engjcowi Drunken Frat-Boy Monkey Garbage 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