Code: Select all
"IfWinActivate Program Name"
Can you make code like this
"If Paint.exe is closed" msgbox, the program was closed
Code: Select all
"IfWinActivate Program Name"
Code: Select all
!1:: ;Активация скрипта на ALT(!) + 1
Loop ;Цикл
{ ;Начало цикла
Send {k down} ;Зажать клавишу K
} ;Конец цикла
Return ;Конец кода
Code: Select all
!1::
Loop
{
Send G
sleep 1000
Send F
sleep 1000
}
Return
Code: Select all
!1::
sleep, 100
Loop
{
Send G
sleep 1000
Send F
sleep 1000
}
Return
Code: Select all
!7::
addChatMessage("123")
Loop
{
SendChat("/rr " text1 "")
sleep, %kd1%
SendChat("/rr " text2 "")
sleep, %kd1%
SendChat("/rr " text3 "")
sleep, %kd1%
}
if !GetKeyState(!7)
return
mikeyww wrote: ↑24 Nov 2022, 13:50Explained: ExpressionsCode: Select all
!8::SendChat("/rr " text1)
Variable names in an expression are not enclosed in percent signs (except for pseudo-arrays and other double references).
Code: Select all
!8::
SendChat("/rr %text1%")
return