2017-12-28 33 views
0

여기 Shift 키를 누른 상태에서 q를 클릭하고 마우스 왼쪽 버튼을 클릭합니다. 그리고 나서 왼쪽 마우스 버튼을 클릭 한 후 Shift 키를 놓고 싶습니다. 마우스 오른쪽 버튼을 클릭 할 때마다 Shift 키를 놓고 싶습니다. 코드는 여기에 있지만 작동하지 않습니다 - Shift 키가 Q : 작동하지 않습니다 당신이 다음자동 핫키에서 keywait을 깨는 방법

그리고 Rbutton를 들어를 + Q를 :: 사용해야합니다, 다음 아래입니다

q:: 
Send {Shift Down} 
Hotkey, q, toggle 
Send q 
Hotkey, q, toggle 
    KeyWait LButton, D 
     RButton:: 
     Hotkey, RButton, toggle 
     Send {RButton} 
     Hotkey, RButton, toggle 
     Send {Shift Up} 
     return 
    KeyWait LButton 
Send {Shift Up} 
return 

답변

0

경우 Shift 키를 눌렀는지 :: 다음 Rbutton은 : 당신이 + Rbutton을 :: 사용해야합니다 작동하지 않습니다

[+ = 시프트]

이 코드보십시오 :

; [+ = Shift] [! = Alt] [^ = Ctrl] [# = Win] 
#SingleInstance Force 

q:: 
Send {Shift Down} 
Hotkey, q, toggle 
Send q 
Hotkey, q, toggle 
    KeyWait LButton, D 
     RButton:: 
     Hotkey, RButton, toggle 
     Send {RButton} 
     Hotkey, RButton, toggle 
     Send {Shift Up} 
     return 
    KeyWait LButton 
Send {Shift Up} 
return 

+q:: 
Send {Shift Down} 
Hotkey, q, toggle 
Send q 
Hotkey, q, toggle 
    KeyWait LButton, D 
     +RButton:: 
     Hotkey, RButton, toggle 
     Send {RButton} 
     Hotkey, RButton, toggle 
     Send {Shift Up} 
     return 
    KeyWait LButton 
Send {Shift Up} 
return