Тема: AHK:Помогите соеденить несколько скриптов в один, с биндами активации
Макрос на "фастзум" в игре "Warface"
Мне нужно соединить все эти скрипты в один с биндами активации, то есть при нажатии (например Num1) активировался один скрипт, но не начинал работать без горячей клавиши MButton (колесико мыши).
1 скрипт:
$*MButton::
Suspend
SoundPlay, % A_IsSuspended ? "*64" : "*16"
Return
$*Insert::
Reload
SoundPlay, % A_IsReload ? "*16" : "*16"
Return
End:: ExitApp
RButton::
Send {RButton Down}
Sleep 85
Send {LButton Down}
KeyWait MButton
Send {LButton up}{RButton up}
~W & RButton::
Send {RButton Down}
Sleep 85
Send {LButton Down}
KeyWait MButton
Send {LButton up}{RButton up}
~A & RButton::
Send {RButton Down}
Sleep 85
Send {LButton Down}
KeyWait MButton
Send {LButton up}{RButton up}
~D & RButton::
Send {RButton Down}
Sleep 85
Send {LButton Down}
KeyWait MButton
Send {LButton up}{RButton up}
~S & RButton::
Send {RButton Down}
Sleep 85
Send {LButton Down}
KeyWait MButton
Send {LButton up}{RButton up}
~Shift & RButton::
Send {RButton Down}
Sleep 85
Send {LButton Down}
KeyWait MButton
Send {LButton up}{RButton up}
Return
2 скрипт:
$*MButton::
Suspend
SoundPlay, % A_IsSuspended ? "*64" : "*16"
Return
$*Insert::
Reload
SoundPlay, % A_IsReload ? "*16" : "*16"
Return
End:: ExitApp
RButton::
Send {RButton Down}
Sleep 60
Send {LButton Down}
KeyWait MButton
Send {LButton up}{RButton up}
~W & RButton::
Send {RButton Down}
Sleep 60
Send {LButton Down}
KeyWait MButton
Send {LButton up}{RButton up}
~A & RButton::
Send {RButton Down}
Sleep 60
Send {LButton Down}
KeyWait MButton
Send {LButton up}{RButton up}
~D & RButton::
Send {RButton Down}
Sleep 60
Send {LButton Down}
KeyWait MButton
Send {LButton up}{RButton up}
~S & RButton::
Send {RButton Down}
Sleep 60
Send {LButton Down}
KeyWait MButton
Send {LButton up}{RButton up}
Return
3 скрипт:
$*MButton::
Suspend
SoundPlay, % A_IsSuspended ? "*64" : "*16"
Return
$*Insert::
Reload
SoundPlay, % A_IsReload ? "*16" : "*16"
Return
End:: ExitApp
RButton::
Send {RButton Down}
Sleep 125
Send {LButton Down}
KeyWait MButton
Send {LButton up}{RButton up}
~W & RButton::
Send {RButton Down}
Sleep 125
Send {LButton Down}
KeyWait MButton
Send {LButton up}{RButton up}
~A & RButton::
Send {RButton Down}
Sleep 125
Send {LButton Down}
KeyWait MButton
Send {LButton up}{RButton up}
~D & RButton::
Send {RButton Down}
Sleep 125
Send {LButton Down}
KeyWait MButton
Send {LButton up}{RButton up}
~S & RButton::
Send {RButton Down}
Sleep 125
Send {LButton Down}
KeyWait MButton
Send {LButton up}{RButton up}
Return
Если сделаете менюшку с биндами, буду очень благодарен!!
Хочу сделать похожую менюшку как прикрепил в док-те.