我正试着在自动热键中做一个自动按键,但没能让它工作。
我有一些关于自动热键的知识,但它不是很多:
<^LButton::
Loop
{
SetMouseDelay 0.001
Click
If(GetKeyState("LButton","P")=0)
Break
}它使用<^LButton作为热键,但不使用<^nLButton。
因此我需要热键组合的帮助。
我得到了错误代码:
行文本:<^nLButtonSuspend错误:该行不包含可识别的操作。
发布于 2019-03-24 07:27:14
如果你想把三个键组合成一个热键。
单击键: Ctrl +n+ Lbutton = Do a Action。
你可以试试这个:
example1.ahk
;#notrayicon
#SingleInstance force
^n::
GetKeyState, state, Lbutton
if state = D
{
Loop
{
send a
;SetMouseDelay 0.001
;Click
If(GetKeyState("LButton","P")=0)
Break
}
} else {
send b ;this codeline is only so that you can test it out in notepad. - you can remove this
}
Return
esc::exitapp 注:这并不完美,但答案接近你的问题。
https://stackoverflow.com/questions/55317581
复制相似问题