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
Remapping Up key does not work in Microsoft Onenote
Re: Remapping Up key does not work in Microsoft Onenote
You can try to specify the up and down events of the key {Up} seperately:
Let me know how this works
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
-
- Posts: 1
- Joined: 20 May 2020, 06:58
Re: Remapping Up key does not work in Microsoft Onenote
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.
I know this is an old thread but it still appears in top 6 of my Google search.
Who is online
Users browsing this forum: Rohwedder and 307 guests