Помогите пожалуйста, нужно что бы клавиши 1-5 нажимались автоматически каждые 5 секунд бесконечно, пока я не выключу скрипт. Прошу
помогите. Как их сделать что бы 5 клавиш нажимались автоматически бесконечное количество раз каждые 4.8 секунды
;Lines starting with a ; are comments and are not part of the actual script.
;If you want to deactivate a flask press(e.g. because it is your hp flask) simply add a ; to the start of the line
;this line makes the script only work when Path of Exile is the active window
#IfWinActive, ahk_class POEWindowClass
;The key (or mouse button) you press to activate the script. For a list of supported "keys" and combinations, see https://autohotkey.com/docs/Hotkeys.htm
;XButton1 = "Back"-Button on my mouse. For a complete list of special keys, see https://autohotkey.com/docs/KeyList.htm
MButton::
{
;Initialize random delays between 57 and 114 ms (arbitrary values, may be changed)
random, delay2, 57, 114
random, delay3, 57, 114
random, delay4, 57, 114
random, delay5, 57, 114
;send, 1 ;simulates the keypress of the 1 button. If you use another button, change it!
;sleep, %4800%
send, 2 ;simulates the keypress of the 2 button. If you use another button, change it!
sleep, %4800%
send, 3 ;simulates the keypress of the 3 button. If you use another button, change it!
sleep, %4800%
send, 4 ;simulates the keypress of the 4 button. If you use another button, change it!
sleep, %4800%
send, 5 ;simulates the keypress of the 5 button. If you use another button, change it!
}
return