Need help!
Posted: 15 Nov 2017, 01:18
by Newbie360
Guys i need something that allows me to press more than 3 keys in a determinated time... like pressing 1 every 5 seconds, pressing 2 every 9 seconds, pressing 3 every 15 seconds at the same time... if that works in only one window it would be better Pleaaaaaaaaseeeeeeeeeeeee♥
Re: Need help! Topic is solved
Posted: 15 Nov 2017, 08:59
by Rohwedder
Hallo,
try:
Code: Select all
F1:: ;Hotkey F1 starts
SetTimer, Key1, 5000
SetTimer, Key2, 9000
SetTimer, Key3, 15000
Return
F2:: ;Hotkey F2 stops
SetTimer, Key1, Off
SetTimer, Key2, Off
SetTimer, Key3, Off
Return
Key1:
SendInput, a
Return
Key2:
SendInput, b
Return
Key3:
SendInput, c
Return
if that should work only in one window
use #IfWinActive see:
https://autohotkey.com/docs/commands/_IfWinActive.htm