Autofire any key with Autohotkey?

Autofire any key with Autohotkey? - Free stock photo of 4k, action, adult

This script "autofires" E while holding it down.

    $e::
While GetKeyState("e","P")
{
    Random, r, 50, 250
    sleep r
    Send e
}
return

Is there a way to globally use this script for any key?

For example: Holding A, will autofire A and Z will autofire Z, etc.

Without manually assigning every possible key on the script.






Pictures about "Autofire any key with Autohotkey?"

Autofire any key with Autohotkey? - Person Holding Silver Key
Autofire any key with Autohotkey? - Key on a Person's Palm
Autofire any key with Autohotkey? - Selective Focus Photography of Upright Piano





AutoHotKey Tutorial 1- Scripting Hotkeys/Macros




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: KoolShooters, RODNAE Productions, Kindel Media, Pixabay