NohBoard

Free NohBoard v1.3.0

WayZHC

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

Ooooh okay so now i understand where they come from :p thanks for the info :)


I was looking at your source and found the LMB and RMB as CKEY_LMBUTTON and CKEY_RMBUTTON. So i was wondering what's the difference between those and for example VK_LBUTTON? And VK_MBUTTON is for the MMB.

For example i found out that A key hexadecimal is 0x41 which is 65 in decimals.

0x41 = 65

VK_LBUTTON = 0x01 = 1
VK_RBUTTON = 0x02 = 2
VK_MBUTTON = 0x04 = 4

So are your mouse buttons having some custom definitions? 1025 and up from nbtools.h so 1026 for LMB and 1027 for RMB. Why not using 1 and 2 instead? Is there somekind of reason for those?

(I'm new to the programming stuff. I just got in a school where i will learn programming but I am eagerly trying to learn some stuff in advance since it will not begin until August. Just bought a book for learning C# and looks a lot like Java :D )
 

ThoNohT

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

Well, the numbers are decimal, the normal standard format we humans use. So if you want the hexadecimal values, you can simply convert them.
For example, the 65 for the a key would be 41 in hexadecimal, 1000001 in binary, 101 in octal. Whatever you want :)

But there is no real relation to the letters and the keycodes. If you want to calculate keys for the alphabet, it's possible though. A = 65, every next letter is one number higher. So the nth letter in the alphabet would have key n + 65
(n + 64 if you start counting at 1).

Why are mouse buttons not 1 and 2? 1 and 2 are reserved for keys. The mouse buttons are in a different domain. Keyboard keycodes range from 0 to 255. I cannot use those numbers for mouse keys. Even though the lowest numbers don't seem to be defining any keys, I never know what kind of keyboard pops up somewhere. And in windows there's this clear limit that basically means keycodes will be between 0 and 255. Anything outside of that (and I only want positive numbers), so I just took another threshold, quite a bit away, and used the numbers from there (1025) for custom keycodes.
 

WayZHC

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

Oh you kinda said everything i found out while i was editing my post :p I'm too slow lol :D

So are you using C# or C++ or what? Many people recommended me learning C# first (which i found out pretty much Java-like) and bought a book for learning it

E: And I'll stop this offtopic on your thread. sorry :p

E2:
ThoNohT said:
Why are mouse buttons not 1 and 2? 1 and 2 are reserved for keys. The mouse buttons are in a different domain. Keyboard keycodes range from 0 to 255. I cannot use those numbers for mouse keys. Even though the lowest numbers don't seem to be defining any keys, I never know what kind of keyboard pops up somewhere. And in windows there's this clear limit that basically means keycodes will be between 0 and 255. Anything outside of that (and I only want positive numbers), so I just took another threshold, quite a bit away, and used the numbers from there (1025) for custom keycodes.
Ooooh that makes sense. lol learned a lot stuff today about the keycodes :P
 

ThoNohT

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

And my edit contains some answers to your edit again :P

I'm using C++ for this program, but C# for the plugin installer I'm writing. I cannot really recommend learning any language in particular, it all depends on what you will be using. If you want to work on OBS, you will need to learn c++, it's quite different from most other languages you might learn.

If you want to learn java/C#, they are reasonably similar, syntax-wise, even though there still are differences. Learn those if you think you will need to use them in the future.
 

WayZHC

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

Lol you are typing so much faster while i'm constantly fixing my typos :D

Yeah i guess C# and Java are for me since those are the languages they use mostly in the school i got in.

And found out this from Jim's "to-do" list so i guess i will stick with C# :p
Medium priority (Not necessarily in this order. May be sooner, maybe later, depends)
-----------------------------
Some sort of .NET API interface for C#/VB developers
 

ThoNohT

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

yeah, that will allow you to write plugins for OBS using any .NET language. But working on OBS itself will still require C++ :)

Bet let's get back on topic.
 

WayZHC

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

ThoNohT said:
yeah, that will allow you to write plugins for OBS using any .NET language. But working on OBS itself will still require C++ :)

Bet let's get back on topic.
aawwww fuuuuu lol :D but anyway i'll skip the C++ for now and focus on one at a time :P C#

Yeah sorry for the interruption :p Learned a lot so thanks :)
 

Absarn

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

ThoNohT said:
Ok, I just released v0.9b, with the following changes:



Absarn:

Sadly I still am unable to reproduce. But in stead, I now changed to code for storing the pressed keys, and it runs some cleanup 3 times per second, but only when you are not pressing keys a lot (holding them works fine). So let's see if that at least does clear it up for you whenever it happens.


That sounds great! I'm going to give it a try today and I'll hand you some feedback later today or tomorrow! : )

Cheers!
 

Absarn

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

Just had a 2 hour livestreaming session, it worked perfectly!!

Cheers! : )
 
D

Deleted member 3892

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

Here is mine! :D
Its very simple layout, i'm an speedrunner, so these are keys i use mainly. Also, hooking mouse is required to LMB and RMB to work!

zJlStwN.png


Code:
KBVersion 3
width 278
height 140
nKeysDefined 6
category Games
key 65 9 53 43 43 A A 1 0
key 68 97 53 43 43 D D 1 0
key 83 53 53 43 43 S S 1 0
key 87 41 9 43 43 W W 1 0
key 1026 160 53 43 43 LMB LMB 0 1
key 1027 215 53 43 43 RMB RMB 0 1
 

ThoNohT

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

You sir, should update. :) I'll include that layout version in a next version.
 

ThoNohT

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

Forgot to update, but a new version (0.10b) is out which fixes a small bug that mouse buttons got automatically reset due to the new cleanup method in 0.9b.
 

Falka

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

I have the same problem with fullscreen games and NohBoard going white in OBS or when the games are in windowed and the plugin not registering the keystrokes.

I tried running NohBoard before and after the game. With and without aero. With and without administration priviliges. No luck.

The plugin works when game is in Alt+Enter mode so the game is windowed and not in focus.
Which makes an assumption for me that fullscreen games don't let other programs to listen for keystrokes.
Yet no idea why NohBoard appaer white in OBS

I'm using Windows 7 x64 and i have a GTX560 (so no iGPU) and there is no secondary monitor plugged in. Also in OBS i capture NohBoard with Window Capture. Game Capture not working with the plugin.

I'm just making a notice-post, just as others who have the same problem. I also know that you don't have time and the problem is mostlikely not in the NohBoard plugin...
 

ThoNohT

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

Hmm I haven't heard of that problem for a while. Are you sure you're running the latest version? Also I see you've tried most of the things suggested here, run as administrator could help with it not capturing keys.

I'm at a loss for what might cause it. Which games are you playing with it?
 

Absarn

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

ThoNohT said:
Hmm I haven't heard of that problem for a while. Are you sure you're running the latest version? Also I see you've tried most of the things suggested here, run as administrator could help with it not capturing keys.

I'm at a loss for what might cause it. Which games are you playing with it?

I can approve aswell that NohBoard is not working on some games but it's not a big issue for me.
Since I mostly play Battlefield 3 of my time.
 

BeauWest

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

Just an FYI on the window capture/full screen issue. At least on Windows 8, it works as expected with dual monitors, doesn't matter which monitor it's on either. Single monitor, no joy.
 

ThoNohT

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

Ehr, I'd like to know from Falka and from Absarn, which games doesn't it work with. And BeauWest, I'd really love to do some tests with you sometime, preferrably during a weekend.
 

Falka

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

ThoNohT said:
Ehr, I'd like to know from Falka and from Absarn, which games doesn't it work with. And BeauWest, I'd really love to do some tests with you sometime, preferrably during a weekend.

Hello! Thanks for the great and dedicated support you doing here!

I tried Battlefield 3, Remember Me, Bioshock Infinite. And i could keep going with fullscreen games. The results are the same.
->Fullscreen game = nohboard is all white in OBS.
->The game is windowed and it is the focus window then no key registered in NohBoard.
->Windowed game and not focused = NohBoard works like a charm.


And im using the newest 0.10b NohBoard.

In a few days, im going to be able to plug in a secondary monitor. As suggested above me, it works if there is more then one monitor. I will post results.

If you need anything, just pm me and i will try to help. Also don't stress yourself over this! I can live without it, but you might have better things to do :)
 

ThoNohT

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

Well, it's a hobby project, so it's also a hobby to try and fix those things ;)

One more question for you then, are you on a two gpu setup, and if so laptop (Optimus?) or pc with sli?
 
Top