Preferably, I'd have the script start holding down the end key when I press the key and release the hold when I press it again. If this is not easy to do, having a modifier like ctrl+shift+end would work too.
I googled around for this but for some reason was not able to wrap my head around the instructions I found. How do I do it?
How to write an ahk scipt for holding down 'end' key
Re: How to write an ahk scipt for holding down 'end' key
Try this:
Code: Select all
$End Up::Send, % (HoldEnd := !HoldEnd) ? ("{End Down}") : ("{End Up}") ;the ()?():() stuff means: "Assign the variable HoldEnd to not HoldEnd. (So if HoldEnd = 0 or "", HoldEnd now = 1, and vice versa.) If HoldEnd now = 1, then Send {End Down}, else {End Up}"
Who is online
Users browsing this forum: Anput, Marium0505, Nerafius and 193 guests