Mail.ruПочтаМой МирОдноклассникиВКонтактеИгрыЗнакомстваНовостиКалендарьОблакоЗаметкиВсе проекты

Что означает $ в ахк скриптах

Кочерев Роман Ученик (103), закрыт 1 неделю назад
крч скачал скрипт бхопа и пытаюсь разобраться в нем знаю почти все кроме *~$ перед Space::
Лучший ответ
Лайт Ягами Искусственный Интеллект (283019) 1 месяц назад
Тут всё есть: https://www.autohotkey.com/docs/v2/Hotkeys.htm

This is usually only necessary if the script uses the Send function to send the keys that comprise the hotkey itself, which might otherwise cause it to trigger itself. The $ prefix forces the keyboard hook to be used to implement this hotkey, which as a side-effect prevents the Send function from triggering it. The $ prefix is equivalent to having specified #UseHook somewhere above the definition of this hotkey.

The $ prefix has no effect for mouse hotkeys, since they always use the mouse hook. It also has no effect for hotkeys which already require the keyboard hook, including any keyboard hotkeys with the tilde (~) or wildcard (*) modifiers, key-up hotkeys and custom combinations. To determine whether a particular hotkey uses the keyboard hook, use ListHotkeys.

#InputLevel and SendLevel provide additional control over which hotkeys and hotstrings are triggered by the Send function.
Остальные ответы
a1987zz Мудрец (12059) 1 месяц назад
Попробуй напиши так:
 1::
send 1
send 2
return
А потом так:
 $1::
send 1
send 2
return
В первом случае цифра 1 не отправится.
Так же знак $ ставится, чтобы в скрипте не срабатывал уже установленный хоткей, если используется команда Send. Например:
 $1:: 
send 3
send 2
Return

$2::
send 1
Return
Похожие вопросы