Go Back   Computer Forums > Welcome To Computer Forums .org > Social Lounge | Off Topic
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 11-06-2009, 01:34 PM   #1
Fully Optimized
 
jmacavali's Avatar
 
Join Date: Jun 2009
Posts: 4,867
Default Simulate button push on regular interval

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?
__________________

__________________
****************************************
Don't take life too seriously -- no one gets out alive. Plus, who wants to arrive to the hereafter in pristine condition wearing a suit and tie?
I want to slide in sideways, worn out, used up, hair a mess, clothes tattered, & screaming, "Whooo! What a ride!"
****************************************
jmacavali is offline   Reply With Quote
Old 11-06-2009, 01:53 PM   #2
Fully Optimized
 
cboucher's Avatar
 
Join Date: Jun 2009
Location: USA
Posts: 1,652
Default Re: Simulate button push on regular interval

Does it have to be a specific button or are you talking about a "keepalive"?
__________________

__________________
But I'm trying, Ringo. I'm trying real hard... to be the Shepherd.
cboucher is offline   Reply With Quote
Old 11-06-2009, 01:54 PM   #3
Fully Optimized
 
jmacavali's Avatar
 
Join Date: Jun 2009
Posts: 4,867
Default Re: Simulate button push on regular interval

I want it to be a specific button.
__________________
****************************************
Don't take life too seriously -- no one gets out alive. Plus, who wants to arrive to the hereafter in pristine condition wearing a suit and tie?
I want to slide in sideways, worn out, used up, hair a mess, clothes tattered, & screaming, "Whooo! What a ride!"
****************************************
jmacavali is offline   Reply With Quote
Old 11-06-2009, 01:55 PM   #4
Fully Optimized
 
tom-knox's Avatar
 
Join Date: Jun 2007
Posts: 2,451
Send a message via MSN to tom-knox
Default Re: Simulate button push on regular interval

Macro programs should be able to help you here.
__________________
New laptop:
2.1 Ghz Core 2 Duo processor :: nVidia GT150m :: 15.6" HD LCD :: 4gb RAM :: 320gb HDD

New player: iPhone 4 32gb
tom-knox is offline   Reply With Quote
Old 11-06-2009, 01:57 PM   #5
Fully Optimized
 
jmacavali's Avatar
 
Join Date: Jun 2009
Posts: 4,867
Default Re: Simulate button push on regular interval

Quote:
Originally Posted by tom-knox View Post
Macro programs should be able to help you here.
You got one in mind or links to make one?
__________________
****************************************
Don't take life too seriously -- no one gets out alive. Plus, who wants to arrive to the hereafter in pristine condition wearing a suit and tie?
I want to slide in sideways, worn out, used up, hair a mess, clothes tattered, & screaming, "Whooo! What a ride!"
****************************************
jmacavali is offline   Reply With Quote
Old 11-06-2009, 02:04 PM   #6
Golden Master
 
Rubber314Chicken's Avatar
 
Join Date: Mar 2006
Posts: 5,574
Send a message via AIM to Rubber314Chicken
Default Re: Simulate button push on regular interval

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.
__________________
AMD Athlon 64X2 4200+, 2 GB ram, 2 TB HDD, Ubuntu+SAMBA ♫ Lenovo T410, i5@ 2.4 GHz, 4 GB ram, 7
Rubber314Chicken is offline   Reply With Quote
Old 11-06-2009, 02:07 PM   #7
Fully Optimized
 
jmacavali's Avatar
 
Join Date: Jun 2009
Posts: 4,867
Default Re: Simulate button push on regular interval

Quote:
Originally Posted by Rubber314Chicken View Post
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?
__________________
****************************************
Don't take life too seriously -- no one gets out alive. Plus, who wants to arrive to the hereafter in pristine condition wearing a suit and tie?
I want to slide in sideways, worn out, used up, hair a mess, clothes tattered, & screaming, "Whooo! What a ride!"
****************************************
jmacavali is offline   Reply With Quote
Old 11-06-2009, 02:20 PM   #8
Fully Optimized
 
vampist's Avatar
 
Join Date: Oct 2008
Location: USA
Posts: 2,404
Default Re: Simulate button push on regular interval

Quote:
Originally Posted by jmacavali View Post
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}
__________________
Everyone's Favorite Turd xD
ET: "Phone home!"
Geek: "ping 127.0.0.1"

"If that guy knew half the $h*t that I know, his fuzzy little head would explode. " - Matthew Farrell
vampist is offline   Reply With Quote
Old 11-06-2009, 02:20 PM   #9
Golden Master
 
Rubber314Chicken's Avatar
 
Join Date: Mar 2006
Posts: 5,574
Send a message via AIM to Rubber314Chicken
Default Re: Simulate button push on regular interval

Quote:
Originally Posted by jmacavali View Post
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.
__________________
AMD Athlon 64X2 4200+, 2 GB ram, 2 TB HDD, Ubuntu+SAMBA ♫ Lenovo T410, i5@ 2.4 GHz, 4 GB ram, 7
Rubber314Chicken is offline   Reply With Quote
Old 11-06-2009, 02:23 PM   #10
Fully Optimized
 
jmacavali's Avatar
 
Join Date: Jun 2009
Posts: 4,867
Default Re: Simulate button push on regular interval

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
__________________

__________________
****************************************
Don't take life too seriously -- no one gets out alive. Plus, who wants to arrive to the hereafter in pristine condition wearing a suit and tie?
I want to slide in sideways, worn out, used up, hair a mess, clothes tattered, & screaming, "Whooo! What a ride!"
****************************************
jmacavali is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 09:26 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0