hi, just need a simple code.
f12 toggles the script, which then holds the shift key
and when shift key is pressed, the shift will be released.
thanks in advance.
need help for reverse shift
Re: need help for reverse shift
Code: Select all
F12::
on := !on
SoundBeep, 1800 + 500 * on
Return
#If on
$Shift::
Send % "{Shift " ((shift := !shift) ? "down" : "up") "}"
SoundBeep, 1000 + 500 * shift
Return
#If
Re: need help for reverse shift
thanks for the help, i think there's a misunderstanding.
f12 activates=shift down
when i hold shilft=shift release/up
when i remove my hold on shift=it holds shift again
its like a reverse shift sir. thank you!
f12 activates=shift down
when i hold shilft=shift release/up
when i remove my hold on shift=it holds shift again
its like a reverse shift sir. thank you!
Re: need help for reverse shift
Code: Select all
OnExit("done")
F12::
+F12::
on := !on
If GetKeyState("LShift")
Gosub, LShift
Else Gosub, LShift Up
Return
#If on
LShift::
RShift::
+RShift::
Send {Blind}{LShift up}
KeyWait, LShift
KeyWait, RShift
Return
LShift Up::
RShift Up::
Send {Blind}{LShift down}
SoundBeep, 1000
Return
#If
done(ExitReason, ExitCode) {
SoundBeep, 1000
Send {LShift up}
}
Re: need help for reverse shift
it works on desktop but when i try it on game, it doest.
Re: need help for reverse shift
You could look at the tips for games. https://autohotkey.com/board/topic/111737-how-to-make-ahk-work-in-most-games-the-basics/
You can also try a one-line script to see whether AHK works in your game.
You can also try a one-line script to see whether AHK works in your game.
Code: Select all
F3::Shift
Re: need help for reverse shift
Thank you sir! stay safe <3
Who is online
Users browsing this forum: Shoobis and 69 guests