Показать сообщение отдельно
Старый 16.03.2014, 17:29  
capperpro
Гость
Аватар для capperpro
Сообщений: n/a
Благодарностей:
0 всего

Как привязать к окну архейдж? В игре нажимаю F1 ничего не происходит,хотя в обычном тектовом файле скрипт работает.Помогите привязать.
$F1:: ; Make the F1 key into a hotkey (the $ symbol facilitates the "P" mode of GetKeyState below).
WinActivate ahk_exe archeage.exe
Loop ; Since no number is specified with it, this is an infinite loop unless "break" or "return" is encountered inside.
{
if GetKeyState("F2", "P") ; If this statement is true, the user has physically released the F1 key.
break ; Break out of the loop.
Send {w 1}
Sleep 100
Send {d 1}
Sleep 100
}
return
 
Ответить с цитированием