Jump to content

Need a very basic script


Orpheus66
 Share

Recommended Posts

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 by Orpheus66
Link to comment
Share on other sites

Have a look at these two functions, found oddly enough in the Help file, go figure.. ;)

Send

Sleep

With 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

$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

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 by jscript

http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)

Somewhere Out ThereJames Ingram

somewh10.png

dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!

Link to comment
Share on other sites

  • 5 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...