I'm using AHK for a few years for basics things like rebind, automation and such but this time i'm looking for something more specifique and couldn't find an answer myself nor by searching.
I'm looking for a script that would count the number of time i press the "space" key.
It would have to work in background.
(The objective is to know how often i press the "Space" key in a video game)
I've found this :
Code: Select all
Gui, Add, Text, vCount w100, Space pressed 0 times.
Gui, Show
Count := 0
~Space:: ;Default behavior is to block keystroke, ~ allows it to pass through
Count := Count + 1
GuiControl,,Count, H pressed %Count% times.
KeyWait, Space ;Wait for h to be released
return
GuiClose:
ExitApp
return
Any help ?
Best regards,
Yukie