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
Old 11-06-2009, 02:32 PM   #11
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
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
Welcome.
__________________
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-07-2009, 06:12 AM   #12
Golden Master
 
ArrizX's Avatar
 
Join Date: Apr 2005
Posts: 16,073
Send a message via MSN to ArrizX
Default Re: Simulate button push on regular interval

An entire thread and no one asked 'what the hell for' lol?
__________________
. ()()()()
./l ,[_\_\ ],
l---L ()lllllll()-
()_) ()_)--o-)_)
ArrizX is offline   Reply With Quote
Old 11-07-2009, 08:36 AM   #13
j03
~~~~~~~~
 
Join Date: Jan 2005
Location: Wales
Posts: 5,556
Send a message via MSN to j03
Default Re: Simulate button push on regular interval

What the hell for?
__________________
j03 is offline   Reply With Quote
Old 11-07-2009, 03:16 PM   #14
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 ArrizX View Post
An entire thread and no one asked 'what the hell for' lol?
Lol he has a point..

Quote:
Originally Posted by j03 View Post
What the hell for?
x2


Why 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-07-2009, 06:39 PM   #15
Fully Optimized
 
63083's Avatar
 
Join Date: Dec 2008
Posts: 2,129
Default Re: Simulate button push on regular interval

Quote:
Originally Posted by j03 View Post
What the hell for?
x3
__________________
XPEX Vortex 3620 Mid Tower, Rosewill 450 Watt PSU, MSI P6N SLI Platinum 650i, Intel Celeron D 356, 2GB G.SKILL DDR2 800, Western Digital 40GB, (2) EVGA 7950GT 256MB Video Cards in SLI, HP DVD Multi-Burner, Windows XP.
63083 is offline   Reply With Quote
Old 11-09-2009, 07:25 AM   #16
Fully Optimized
 
jmacavali's Avatar
 
Join Date: Jun 2009
Posts: 4,867
Default Re: Simulate button push on regular interval

LOL I wondered if any one was going to.

It's for a game. I have a 'pet' and it needs fed every 15 minutes to level up.

Nothing important, it just allows me to be AFK and have it lvl up =P
__________________

__________________
****************************************
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 01:42 AM.


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