the goal of this script is to press multiple keys with just one, but in a sequence
so when you press F1:
— F10 will be pressed but not hold
— wait briefly
— type #s m1
— press enter
— wait briefly again
— F12 will be pressed but not hold
that's it, i'll use it from F1 to F12
I want to make it faster if possible, and improve it's performance, because I feel that it can be short and better
I want too that every 5 minutes it will, automatically, type and send something, but how I make so it will only send if a specific program is being used?
also, how can I make so every 3 minutes it will press (but not hold) something and click somewhere in the screen?
Code: Select all
#NoEnv
#MaxHotkeysPerInterval 99000000
#HotkeyInterval 99000000
#KeyHistory 0
ListLines Off
Process, Priority, , A
SetBatchLines, -1
SetKeyDelay, -1, -1
SetMouseDelay, -1
SetDefaultMouseSpeed, 0
SetWinDelay, -1
SetControlDelay, -1
SendMode Input
;WAZAAAAA autohotkey.com/boards/viewtopic.php?f=7&t=6413
~F1::
Send, {F10 down}{F10 up}
Sleep, 10
Send, {#}s m1
Send, {Enter}
Sleep, 10
Send, {F12 down}{F12 up}
return
~F2::
Send, {F10 down}{F10 up}
Sleep, 10
Send, {#}s m2
Send, {Enter}
Sleep, 10
Send, {F12 down}{F12 up}
return
~F3::
Send, {F10 down}{F10 up}
Sleep, 10
Send, {#}s m3
Send, {Enter}
Sleep, 10
Send, {F12 down}{F12 up}
return
~F4::
Send, {F10 down}{F10 up}
Sleep, 10
Send, {#}s m4
Send, {Enter}
Sleep, 10
Send, {F12 down}{F12 up}
return