Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AutoHotKey LWin + Shift + Left/Right to Shift + Home/End

I'm trying to make a script for AutoHotKey to map the LWin + Shift + Left/Right key combination to Shift + Home/End.

I also want to make LWin + Left/Right do Home/End, but I got this working.

Here's what I am trying right now:

LWin & Right::
GetKeyState, state, Shift
if state = D
    Send {Shift}{End}
Else Send {End}
Return
like image 377
bogdan.css Avatar asked Nov 16 '25 16:11

bogdan.css


1 Answers

Sorry, just played around with the script for a bit and got it working:

LWin & Left::
GetKeyState, state, Shift
If state = D
    Send +{Home}
Else Send {Home}
Return

LWin & Right::
GetKeyState, state, Shift
If state = D
    Send +{End}
Else Send {End}
Return
like image 200
bogdan.css Avatar answered Nov 18 '25 12:11

bogdan.css



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!