NohBoard scroll and middle mouse button workaround
Hiya, for those of you who have been wanting scroll or middle mouse button functionality, I've made a little workaround using autohotkey. It remaps scroll up, scroll down, and middle mouse button to themselves, along with a standard keyboard key. For my purposes, I'm using number pad 7 for scroll up, number pad 8 for scroll down, and number pad 9 for middle mouse button. These can be mapped in NohBoard with a different name, I use ScU, ScD, and MMB. The keycodes I use for these are 103, 104, and 105 respectively.
Note that in order to make this work, I had to add a delay in the emulated keystroke for the scrollwheel, as without a delay NohBoard does not display the keystroke. The initial scroll itself isn't delayed, but there will be 25 milliseconds between allowed scroll inputs. This makes browser scrolling unusable but the delay is not very noticeable for TF2 weapon switching. 25 milliseconds seems to be reasonable stable for multiple rolls, any less and NohBoard does not display the scrolls well. This delay might hinder someone like Gocnak who likely wants no delay between scroll commands for his jump bind.
Middle Mouse Button seems to work fine.
Here's the autohotkey script. I'm new to the program so there's probably a way to remove the delay between scrolls, retaining full wheel functionality, but I am not sure how to do that yet.
To use this you'll have to install the AutoHotKey and create the script. Run it before you tab into your game and you're good to go.
I modified the FPS Layout to include the MMB and scroll buttons. Again, Numpad 7 8 and 9 are used to represent the mouse functions.
I've made a different kind of fps style layout for my own purposes. Maybe someone else might find this useful.
Hiya, for those of you who have been wanting scroll or middle mouse button functionality, I've made a little workaround using autohotkey. It remaps scroll up, scroll down, and middle mouse button to themselves, along with a standard keyboard key. For my purposes, I'm using number pad 7 for scroll up, number pad 8 for scroll down, and number pad 9 for middle mouse button. These can be mapped in NohBoard with a different name, I use ScU, ScD, and MMB. The keycodes I use for these are 103, 104, and 105 respectively.
Note that in order to make this work, I had to add a delay in the emulated keystroke for the scrollwheel, as without a delay NohBoard does not display the keystroke. The initial scroll itself isn't delayed, but there will be 25 milliseconds between allowed scroll inputs. This makes browser scrolling unusable but the delay is not very noticeable for TF2 weapon switching. 25 milliseconds seems to be reasonable stable for multiple rolls, any less and NohBoard does not display the scrolls well. This delay might hinder someone like Gocnak who likely wants no delay between scroll commands for his jump bind.
Middle Mouse Button seems to work fine.
Here's the autohotkey script. I'm new to the program so there's probably a way to remove the delay between scrolls, retaining full wheel functionality, but I am not sure how to do that yet.
To use this you'll have to install the AutoHotKey and create the script. Run it before you tab into your game and you're good to go.
Code:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
WheelUp::
Send {WheelUp}
Send {Numpad7 down}
Sleep, 25
Send {Numpad7 up}
return
WheelDown::
Send {WheelDown}
Send {Numpad8 down}
Sleep, 25
Send {Numpad8 up}
return
MButton::
Send {MButton}
Send {Numpad9 down}
KeyWait MButton
Send {Numpad9 up}
return
I modified the FPS Layout to include the MMB and scroll buttons. Again, Numpad 7 8 and 9 are used to represent the mouse functions.
Code:
KBVersion 3
width 431
height 267
nKeysDefined 27
category Games
key 9 9 53 67 43 Tab Tab 0 1
key 32 187 185 131 43 %0% %0% 0 0
key 49 53 9 43 43 1 ! 0 0
key 50 97 9 43 43 2 @ 0 0
key 51 141 9 43 43 3 # 0 0
key 52 185 9 43 43 4 $ 0 0
key 53 229 9 43 43 5 % 0 0
key 65 89 97 43 43 a A 1 0
key 67 198 141 43 43 c C 1 0
key 68 177 97 43 43 d D 1 0
key 69 165 53 43 43 e E 1 0
key 70 221 97 43 43 f F 1 0
key 81 77 53 43 43 q Q 1 0
key 82 209 53 43 43 r R 1 0
key 83 133 97 43 43 s S 1 0
key 86 242 141 43 43 v V 1 0
key 87 121 53 43 43 w W 1 0
key 88 154 141 43 43 x X 1 0
key 90 110 141 43 43 z Z 1 0
key 103 335 53 43 43 ScU ScU 0 1
key 104 335 141 43 43 ScD ScD 0 1
key 105 335 97 43 43 MMB MMB 0 1
key 160 9 141 100 43 %shift% %shift% 0 0
key 162 9 185 65 43 Ctrl Ctrl 0 1
key 164 130 185 56 43 Alt Alt 0 1
key 1026 291 97 43 43 LMB LMB 1 1
key 1027 379 97 43 43 RMB RMB 1 1
I've made a different kind of fps style layout for my own purposes. Maybe someone else might find this useful.
Code:
KBVersion 3
width 475
height 179
nKeysDefined 21
category Games
key 9 9 31 23 43 Tab Tab 0 1
key 32 265 78 69 30 Jump Jump 0 1
key 65 45 75 43 43 a A 1 0
key 67 265 9 22 22 c C 1 0
key 68 133 75 43 43 d D 1 0
key 69 121 31 43 43 e E 1 0
key 70 177 75 43 43 f F 1 0
key 71 221 75 43 43 g G 1 0
key 81 33 31 43 43 q Q 1 0
key 82 165 31 43 43 r R 1 0
key 83 89 75 43 43 s S 1 0
key 87 77 31 43 43 w W 1 0
key 88 265 32 22 22 x X 1 0
key 90 265 55 22 22 z Z 1 0
key 103 379 9 43 43 ScU ScU 0 1
key 104 379 97 43 43 ScD ScD 0 1
key 105 379 53 43 43 MMB MMB 0 1
key 162 265 109 69 31 Crouch Crouch 0 1
key 1026 335 53 43 43 LMB LMB 1 1
key 1027 423 53 43 43 RMB RMB 1 1
key 1028 288 20 45 0 0 0 0 1