• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

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

tommyoliver

Junior Member
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:
Autokey-software

Programmable hardware, such as:
Keyboard (e.g. Logitech G15)
Mouse (e.g. Microsoft X8)
Gamepad (e.g. Belkin N52)
 
Last edited:
Drinking-Bird-Simpsons-01.jpg
 
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.
 
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 😱

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 😛
 
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.
 
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.
 
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 😀
 
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.
 
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 !
 
@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:
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
 
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!
 
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
 
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.
 
Back
Top