Shouldn't be too hard basically looking for this:
While Space is hield/press -> Temporarily disable mouse right click + spam "N" every 100ms -> once space is realeased; right click work normally again.
(I have a macro spamming right click while hield no delay)
Without the need to repress right click would be perfect.
Thank if anyone can help with this
Disable a key while another is hield.
Re: Disable a key while another is hield.
I'm not sure I get it; but try this:Guest wrote: ↑14 Oct 2018, 21:07Shouldn't be too hard basically looking for this:
While Space is hield/press -> Temporarily disable mouse right click + spam "N" every 100ms -> once space is realeased; right click work normally again.
(I have a macro spamming right click while hield no delay)
Without the need to repress right click would be perfect.
Thank if anyone can help with this
Code: Select all
$Space::
KeyWait, Space, T0.2 ;; wait 200ms for held
If (ErrorLevel) {
While (getKeyState("Space","P")) {
Send, N ;; Spam "N"
Sleep, 100 ;; wait 100ms
}} else
SendInput, {space}
Return
#If (getKeyState("Space","P")) ;; << Blocks "RButton" (right click) while pressing
RButton::Return
RButton & Space::Return
#If
• IMPORTANT: For Autohotkey, "RButton & Space" is different than "Space & RButton"; that gave me a hard time .
Hope it helps,