Remapping Up key does not work in Microsoft Onenote

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Ben555
Posts: 1
Joined: 24 Aug 2017, 03:09

Remapping Up key does not work in Microsoft Onenote

24 Aug 2017, 04:08

I am extremely new to AHK, so sorry if any of this is ignorant. I did search the forum and could not find an answer to this problem.

I recently bought a computer that has the shift key where the up arrow should be and vice versa, so I found a script on some forum to remap the keys while retaining the ability to hold the up key and have it repeatedly trigger. The script works perfectly in all applications except for Microsoft Onenote (which I use for a ton of different things). In Onenote, the new shift key works fine; however, the new up key does not work at all.

Is there any way to workaround this Onenote issue using an AHK script? If not, does anyone know how to fix this issue?

Thank you for any help!
-------------------------------------------------------------------------------------------------------------------
The script I'm using is:
Up::RShift
*RShift::
Send {Blind}{Up}
SetTimer, AutoRepeatUpArrows, 400
return

AutoRepeatUpArrows:
While GetKeyState("RShift", "P") {
Send {Blind}{Up}
delay=30
Sleep, %delay% ; Set delay to taste
}
*RShift up::
Return


----------------------------------------------------------------------------------------------------------------------
Windows 10 Home
Onenote 2016
AHK 1.1.26.1
User avatar
DyaTactic
Posts: 221
Joined: 04 Apr 2017, 05:52

Re: Remapping Up key does not work in Microsoft Onenote

24 Aug 2017, 06:26

You can try to specify the up and down events of the key {Up} seperately:

Code: Select all

Up::RShift

*RShift::
	Send {Blind}{Up down}	; Send the button Up down-event. The button is now pressed untill a up event is send.
	SetTimer, AutoRepeatUpArrows, 400
	return

AutoRepeatUpArrows:
	While GetKeyState("RShift", "P") {
		Send {Blind}{Up down}	; By specifing down, the Up key is not released, only pressed down again, this may fix the problem onenote is having.
		delay=30
		Sleep, %delay% ; Set delay to taste
	}
*RShift up::
	Send {Blind}{Up up}	; Release the Up key.
	Return
Let me know how this works
Steve Gleds
Posts: 1
Joined: 20 May 2020, 06:58

Re: Remapping Up key does not work in Microsoft Onenote

20 May 2020, 11:52

I tried various fixes included here and elsewhere before realising that it only fails if there is no text beneath the cursor. I simply make sure there is text (or spaces) below the cursor.

I know this is an old thread but it still appears in top 6 of my Google search.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Rohwedder and 307 guests