NohBoard

Free NohBoard v1.3.0

dann0mite

New Member
Re: [TOOL] NohBoard - a keyboard visualizer - v0.5b

A nice feature would be color selection per key. For instance, I would like to use the same keycap colors that I have on my real keyboard.

Perhaps a good way to implement this would be to have keyboard styles where specific key colors, shapes and sizes can be selected and then applied to a keyboard layout. Perhaps the styles could be stored separately so they could applied to more than one layout.

Initially, just key colors would be great though. :)
 

ThoNohT

Developer
Re: [TOOL] NohBoard - a keyboard visualizer - v0.5b

dann0mite, do you use any special mouse drivers, like BeauWest?


Edit: per key... Alright, that would be defined in the keyboard file then. I personally don't feel much for this function, but I guess I could make that optional. It'll be a long term thing though.
 

dann0mite

New Member
Re: [TOOL] NohBoard - a keyboard visualizer - v0.5b

ThoNohT said:
dann0mite, do you use any special mouse drivers, like BeauWest?

Just shows as an HID-compliant mouse and uses the Microsoft drivers: mouclass.sys and mouhid.sys

I am sometimes getting this message in Windows:
NohBoard.exe has stopped working
Windows is checking for a solution to the problem...

The Windows application log shows this error detail:
NohBoard.exe
0.0.0.0
519a5bbd
NohBoard.exe
0.0.0.0
519a5bbd
c0000005
0000a24e
cb8
01ce57d0646430a0
C:\Users\dan\Downloads\NohBoard-v0.5b\NohBoard.exe
C:\Users\dan\Downloads\NohBoard-v0.5b\NohBoard.exe
ab6b15c5-c3c3-11e2-be8e-c86000bf8960

Visual Studio debugger shows this:
Unhandled exception at 0x00ECA24E in NohBoard.exe: 0xC000041D: An unhandled exception was encountered during a user callback.
Unhandled exception at 0x00ECA24E in NohBoard.exe: 0xC0000005: Access violation reading location 0x00000000.

I can usually make this happen in Windows 8 when I go to Mouse Properties in Control Panel, then Hardware tab, then click Properties button, then click Events tab, then click View All Events, then leave that window open and click back on my desktop.
 

dann0mite

New Member
Re: [TOOL] NohBoard - a keyboard visualizer - v0.5b

Looking at your code on github. In the MouseHook callback function is this correct?

// Race conditions occur when hook is processed too early, apparently
if (!bRtReady) return CallNextHookEx(keyboardHook, nCode, wParam, lParam);

Should that be mouseHook instead of keyboardHook?
 

ThoNohT

Developer
Re: [TOOL] NohBoard - a keyboard visualizer - v0.5b

You are quite correct, that's an error. This might even be the source of the problem for you guys.

Either way, I have been working on it today. I made the mouse hook optional, I made it not hook the mouse if no mouse buttons are defined in the kb file, I improved the rendering stuff so it doesn't block the message loop as long, and I should have improved the response time of the message loop....In short, I guess after fixing that I'll release a new version for you guys to test.
 

Krazy

Town drunk
Re: [TOOL] NohBoard - a keyboard visualizer - v0.5b

A layout I whipped up just for SC2 (after Xeiz helped my dumb ass figure out how the layout files worked)

http://i.imgur.com/6eOOGGd.png

Code:
KBVersion 3
width 685
height 325
nKeysDefined 74
category NoNum
key 8 581 64 90 43 Backspc Backspc 0 1
key 9 9 108 67 43 Tab Tab 0 1
key 13 573 152 98 43 %return% %return% 0 0
key 27 9 9 43 43 Esc Esc 0 1
key 20 9 152 79 43 CapsLck CapsLck 0 1
key 32 187 240 262 43 %0% %0% 0 0
key 49 53 64 43 43 1 ! 0 0
key 50 97 64 43 43 2 @ 0 0
key 51 141 64 43 43 3 # 0 0
key 52 185 64 43 43 4 $ 0 0
key 53 229 64 43 43 5 % 0 0
key 54 273 64 43 43 6 ^ 0 0
key 55 317 64 43 43 7 & 0 0
key 56 361 64 43 43 8 * 0 0
key 57 405 64 43 43 9 ( 0 0
key 48 449 64 43 43 0 ) 0 0
key 65 89 152 43 43 a A 1 0
key 66 286 196 43 43 b B 1 0
key 67 198 196 43 43 c C 1 0
key 68 177 152 43 43 d D 1 0
key 69 165 108 43 43 e E 1 0
key 70 221 152 43 43 f F 1 0
key 71 265 152 43 43 g G 1 0
key 72 309 152 43 43 h H 1 0
key 73 385 108 43 43 i I 1 0
key 74 353 152 43 43 j J 1 0
key 75 397 152 43 43 k K 1 0
key 76 441 152 43 43 l L 1 0
key 77 374 196 43 43 m M 1 0
key 78 330 196 43 43 n N 1 0
key 79 429 108 43 43 o O 1 0
key 80 473 108 43 43 p P 1 0
key 81 77 108 43 43 q Q 1 0
key 82 209 108 43 43 r R 1 0
key 83 133 152 43 43 s S 1 0
key 84 253 108 43 43 t T 1 0
key 85 341 108 43 43 u U 1 0
key 86 242 196 43 43 v V 1 0
key 87 121 108 43 43 w W 1 0
key 88 154 196 43 43 x X 1 0
key 89 297 108 43 43 y Y 1 0
key 90 110 196 43 43 z Z 1 0
key 91 75 240 54 43 Win Win 0 1
key 92 507 240 54 43 Win Win 0 1
key 93 562 240 54 43 Menu Menu 0 1
key 112 98 9 43 43 F1 F1 0 1
key 113 142 9 43 43 F2 F2 0 1
key 114 186 9 43 43 F3 F3 0 1
key 115 230 9 43 43 F4 F4 0 1
key 116 298 9 43 43 F5 F5 0 1
key 117 342 9 43 43 F6 F6 0 1
key 118 386 9 43 43 F7 F7 0 1
key 119 430 9 43 43 F8 F8 0 1
key 120 498 9 43 43 F9 F9 0 1
key 121 542 9 43 43 F10 F10 0 1
key 122 586 9 43 43 F11 F11 0 1
key 123 630 9 43 43 F12 F12 0 1
key 160 9 196 100 43 %shift% %shift% 0 0
key 161 550 196 121 43 %shift% %shift% 0 0
key 162 9 240 65 43 Ctrl Ctrl 0 1
key 163 617 240 54 43 Ctrl Ctrl 0 1
key 164 130 240 56 43 Alt Alt 0 1
key 165 450 240 56 43 Alt Alt 0 1
key 189 493 64 43 43 - _ 0 0
key 186 485 152 43 43 ; : 0 0
key 187 537 64 43 43 = + 0 0
key 152 418 196 43 43 , < 0 0
key 190 462 196 43 43 . > 0 0
key 191 506 196 43 43 / ? 0 0
key 192 9 64 43 43 ` ~ 0 0
key 219 517 108 43 43 [ { 0 0
key 220 605 108 66 43 \ | 0 0
key 221 561 108 43 43 ] } 0 0
key 222 529 152 43 43 ' " 0 0
 

ThoNohT

Developer
Re: [TOOL] NohBoard - a keyboard visualizer - v0.5b

The keyboard layout is included with v0.6b. Which is now live on the first post.

BeauWest and dann0mite, please do some tests again with this version. If the mouse hook still screws things up, at least you can disable it for now, we might then need to meet in chat to properly debug this.

Also that error you are getting, I'm not getting it, so if that still exists, we might also need to look at that.
 

BeauWest

Member
Re: [TOOL] NohBoard - a keyboard visualizer - v0.5b

For note, I am also using Windows 8. I will test it as soon as I get home (1 hour)! Thanks for your quick work on this. <3
 

BeauWest

Member
Re: [TOOL] NohBoard - a keyboard visualizer - v0.5b

It works perfectly now, that must have been it! Thank you sir! <3
 

BeauWest

Member
Re: [TOOL] NohBoard - a keyboard visualizer - v0.5b

When playing BF3 full-screen, it stops working, not a huge issue, but thought I'd mention it. :) It is still loaded, just doesn't update when you press keys.
 

dann0mite

New Member
Re: [TOOL] NohBoard - a keyboard visualizer - v0.5b

BeauWest said:
When playing BF3 full-screen, it stops working, not a huge issue, but thought I'd mention it. :) It is still loaded, just doesn't update when you press keys.

Works for me in full-screen BF3. Did you start NohBoard before launching BF3? I always do.
I noticed OBS won't see NohBoard if it is minimized, so make sure it is not getting minimized in the background.
 

dann0mite

New Member
Re: [TOOL] NohBoard - a keyboard visualizer - v0.5b

BeauWest said:
It works perfectly now, that must have been it! Thank you sir! <3

Confirmed, working for me in Windows 8 as well. No more mouse slow down!

One minor problem I see is that sometimes a key stays pressed, and won't release for a while, even if I press and release it again. Takes a few seconds I think.
 

BeauWest

Member
Re: [TOOL] NohBoard - a keyboard visualizer - v0.5b

dann0mite, yes, launched before BF3. Might have something to do with switching to 720p in BF3? Not sure.

Interesting thing though, I added both Game Capture of the keyboard, and Window Capture of the keyboard, and only the Game Capture one works for me with full screen.

Guess I can wait until we get Color Key on Game Capture.
 

ThoNohT

Developer
Re: [TOOL] NohBoard - a keyboard visualizer - v0.5b

Hmm, I thought I had the full screen thing fixed. I'll see if I can debug it with a game switching resolutions. You might also try to play BF3 in your native resolution for a minute to see if that's indeed the cause. Is this a new issue since 0.6b, or was this issue already present in 0.5b?

How long do the keys stay lit? It should auto-update at least 3 times a second even if nothing is pressed. If it takes longer for them to go back, I might have to change some things again.
 

BeauWest

Member
Re: [TOOL] NohBoard - a keyboard visualizer - v0.5b

To be honest, I don't know if it was happening before or not, I was playing in windowed mode.

Tested in native resolution full-screen as well as 720 full-screen, neither one would show the keypresses. I honestly doubt it has anything to do with NohBoard, it's probably something either with BF3 or Windows. Though it is strange that game capture works, but Window capture doesn't.
 

ThoNohT

Developer
Re: [TOOL] NohBoard - a keyboard visualizer - v0.6b

Well you could download 0.5b, place it in a temporary folder and see what happens with it :)

Edit: By the way, I think I have fixed the keys staying active. I managed to reproduce it, I'm not going to release a new version yet, but once I do, you can try that out again.
 

Absarn

Member
Re: [TOOL] NohBoard - a keyboard visualizer - v0.6b

There's a new problem with the new version that you it wont show if your holding down two keys at the same time.

Thought you might want to know.
 

BeauWest

Member
Re: [TOOL] NohBoard - a keyboard visualizer - v0.6b

Tried running both .6 and .4. Neither one shows any keypresses in BF3 full-screen.
 
Top