Simulate button push on regular interval

jmacavali

Fully Optimized
Messages
4,867
I am looking for a way (like a script or small program) that will simulate a button push on a regular interval.

For example, it will "push" F7 every 15 minutes.

Is this possible?
 
Autohotkey.

Do an infinite loop, then tell it to push the button, then sleep for the time in milliseconds. Close the loop and you can run it.
 
Autohotkey.

Do an infinite loop, then tell it to push the button, then sleep for the time in milliseconds. Close the loop and you can run it.

That's perfect. I just downloaded AutoHotKey. Could you maybe be a little more specific on the script though. I know nothing about scripting.

I need it for 16 minutes = 960000 Milliseconds. Like this?

Loop
{
F7
Sleep 960000
}

But how do i end it if I want to turn it off?
 
That's perfect. I just downloaded AutoHotKey. Could you maybe be a little more specific on the script though. I know nothing about scripting.

I need it for 16 minutes = 960000 Milliseconds. Like this?

Loop
{
F7
Sleep 960000
}

But how do i end it if I want to turn it off?

You could use
break

put an if statement in then give the command break if true.


EDIT: by the way it's

send {F7}
 
That's perfect. I just downloaded AutoHotKey. Could you maybe be a little more specific on the script though. I know nothing about scripting.

I need it for 16 minutes = 960000 Milliseconds. Like this?

Loop
{
F7
Sleep 960000
}

But how do i end it if I want to turn it off?

Right click and then close from the system tray.
 
Ok.

So

Loop
{
Send {F7}
Sleep 960000
}

Then I can close it fromt the system tray.

And I put that info into a txt file and save it with a .ahk extension right.




[SOLVED]
WORKS GREAT!! Thanks everyone
 
Back
Top Bottom