Is there any way to send key presses continously to a program (Game)

tommyoliver

Junior Member
Jun 23, 2011
6
0
0
Like say, I've a game running, and all I want is to set it to press F1 repeatedly, for say an hour..? Once every 1 second!


Any script/code/program or something like that?

Edit: I've got a little bit of work, be back in 4 hours~
 
Last edited:

Binky

Diamond Member
Oct 9, 1999
4,046
4
81
Autokey-software

Programmable hardware, such as:
Keyboard (e.g. Logitech G15)
Mouse (e.g. Microsoft X8)
Gamepad (e.g. Belkin N52)
 
Last edited:

pyonir

Lifer
Dec 18, 2001
40,856
321
126
Drinking-Bird-Simpsons-01.jpg
 

Ben90

Platinum Member
Jun 14, 2009
2,866
3
0
AutoHotKey is one of the more powerful programs that can achieve this although it has a learning curve.

I use that when absolutely necessary or X-Mouse for most day to day stuff. Just bind a button to a simulated keystroke.
 

tommyoliver

Junior Member
Jun 23, 2011
6
0
0
AutoHotKey is one of the more powerful programs that can achieve this although it has a learning curve.

I use that when absolutely necessary or X-Mouse for most day to day stuff. Just bind a button to a simulated keystroke.


Thanks for those two :) I tried both, the x-mouse in particular is useful, the script one too confusing :eek:

Though I've a problem, the game doesnt let me send clicks or key strokes D: they just dont work if its maxized ...

@pyonir, now i really wish i had that :p
 

Binky

Diamond Member
Oct 9, 1999
4,046
4
81
Some games have anti-cheat software (like WoW). I've found that WoW only works for me with the above mentioned X8 mouse. They've somehow disabled my other hardware options. I set a macro that pushes 1 or left clicks the mouse over and over to DE or craft loads of crap. Sitting there for 20 mintues pushing a button is painful.
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
Some games have anti-cheat software (like WoW). I've found that WoW only works for me with the above mentioned X8 mouse. They've somehow disabled my other hardware options. I set a macro that pushes 1 or left clicks the mouse over and over to DE or craft loads of crap. Sitting there for 20 mintues pushing a button is painful.

Eh.. I run dual monitors and I used to just run the game in windowed mode, easy to multi-task while idling in a city.
 

tommyoliver

Junior Member
Jun 23, 2011
6
0
0
Some games have anti-cheat software (like WoW). I've found that WoW only works for me with the above mentioned X8 mouse. They've somehow disabled my other hardware options. I set a macro that pushes 1 or left clicks the mouse over and over to DE or craft loads of crap. Sitting there for 20 mintues pushing a button is painful.

The game's got the nProtect GameMon and it doesn't even let me open firefox if Greasemonkey plugin is enabled..
I'll try to get my hands on a X8 mouse then soon :)

Thanks guys :)

and @eagle - Lol :D
 
Sep 16, 2009
41
0
0
Auto-It, really good program and really easy to learn. Here is a script for auto it. It sends the f1 key every second for an hour:

$i = 1
Do
Send("{F1}")
$i = $i + 1
sleep(1000) ;sleeps for 1 second
Until $i = 3600 ;stops after 3600 seconds

You can also add it to detect the windows title to make sure it's sending the key to the right window.
 

Modelworks

Lifer
Feb 22, 2007
16,240
7
76
Auto it can do it.
http://www.autoitscript.com/site/autoit/
I used it once in team fortress to fire the engineers pistol. Auto it made it so the pistol fired like a machine gun. I could press the key once and it would auto fire repeatedly as fast the game allowed. I didn't consider it cheating because anyone else could do the same thing by rapidly clicking the mouse button. Sore fingers no more !
 

tommyoliver

Junior Member
Jun 23, 2011
6
0
0
@imported and model ill give it a try, thanks :)

@uberman - 50$ seems like a lot D:..


Edit:

Nope guys, the GameGuard won't let anything send keystrokes to it, i checked - its working in notepad, explorer etc, but when the game's in the front nothing happens!

Was worth a try :) Thanks again guys
 
Last edited:

KB

Diamond Member
Nov 8, 1999
5,406
389
126
vbscript can send keys and its built into windows (create a text file with a vbs extension) and double-click the file. Having the app windowed would be best

Code:
Set WshShell = WScript.CreateObject("WScript.Shell")
'not sure if the app being maximized is a problem
'activate the apps window
WshShell.AppActivate "Your App Window Name"

'loop for an hour and send F1 key
For i = 0 to 3600
        WshShell.SendKeys "{F1}"
         Wscript.Sleep 1000 'pause one second
Next
 

Bryanatkinson

Junior Member
Jun 27, 2011
12
0
0
cornershelfshop.com
I've always used AutoHotKey, it's very powerful indeed.
But if your game has nProtect or something similar, programmable keyboard is the only way.

vbscript can send keys and its built into windows (create a text file with a vbs extension) and double-click the file. Having the app windowed would be best

Code:
Set WshShell = WScript.CreateObject("WScript.Shell")
'not sure if the app being maximized is a problem
'activate the apps window
WshShell.AppActivate "Your App Window Name"

'loop for an hour and send F1 key
For i = 0 to 3600
        WshShell.SendKeys "{F1}"
         Wscript.Sleep 1000 'pause one second
Next
^
^
That's a neat trick! It doesn't require additional application. Thanks!
 

tommyoliver

Junior Member
Jun 23, 2011
6
0
0
vbscript can send keys and its built into windows (create a text file with a vbs extension) and double-click the file. Having the app windowed would be best

Code:
Set WshShell = WScript.CreateObject("WScript.Shell")
'not sure if the app being maximized is a problem
'activate the apps window
WshShell.AppActivate "Your App Window Name"

'loop for an hour and send F1 key
For i = 0 to 3600
        WshShell.SendKeys "{F1}"
         Wscript.Sleep 1000 'pause one second
Next


tried it man, no luck :( Though thats a very nice thing not having to d/l a software to run it :)

I'll just have to buy a programmable keyboard next month :)


Thanks for all the help
 

Tattare

Senior member
Mar 4, 2008
231
0
76
Iv been using the program ACTool since Asherons Call to perform automated actions in games over the years.
It has a little bit of a learning curve.