Click here to Skip to main content
14,697,729 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: Wooo! I did it Pin
David O'Neil1-Jul-20 16:58
professionalDavid O'Neil1-Jul-20 16:58 
GeneralRe: Wooo! I did it Pin
honey the codewitch1-Jul-20 18:05
mvahoney the codewitch1-Jul-20 18:05 
GeneralRe: Wooo! I did it Pin
David O'Neil1-Jul-20 21:40
professionalDavid O'Neil1-Jul-20 21:40 
GeneralRe: Wooo! I did it Pin
honey the codewitch2-Jul-20 1:21
mvahoney the codewitch2-Jul-20 1:21 
GeneralRe: Wooo! I did it Pin
David O'Neil2-Jul-20 9:21
professionalDavid O'Neil2-Jul-20 9:21 
GeneralRe: Wooo! I did it Pin
honey the codewitch2-Jul-20 9:48
mvahoney the codewitch2-Jul-20 9:48 
GeneralRe: Wooo! I did it Pin
David O'Neil2-Jul-20 9:54
professionalDavid O'Neil2-Jul-20 9:54 
GeneralRe: Wooo! I did it Pin
honey the codewitch2-Jul-20 10:07
mvahoney the codewitch2-Jul-20 10:07 
I can't declare it as a boolean because booleans are 16 bit in .NET. C gets away with it in Win32 by declaring BOOL as a 32 bit value (IIRC)

The keystrokes aren't being sent to the receiver. Only the midi messages are.

In fact the keystrokes are simply used by the transmitter app so it can get the timing. The messages it then sends are at a frequency of 24 times that of the frequency of the keypresses.

That code i posted is called each time the receiver app receives a MIDI message. That if statement conditional you were questioning gets evaluated to true when one of these messages is received.
Real programmers use butterflies

GeneralRe: Wooo! I did it Pin
David O'Neil2-Jul-20 10:10
professionalDavid O'Neil2-Jul-20 10:10 
GeneralRe: Wooo! I did it Pin
honey the codewitch2-Jul-20 10:38
mvahoney the codewitch2-Jul-20 10:38 
GeneralRe: Wooo! I did it Pin
David O'Neil2-Jul-20 10:12
professionalDavid O'Neil2-Jul-20 10:12 
GeneralRe: Wooo! I did it Pin
honey the codewitch2-Jul-20 10:36
mvahoney the codewitch2-Jul-20 10:36 
GeneralRe: Wooo! I did it Pin
David O'Neil2-Jul-20 11:10
professionalDavid O'Neil2-Jul-20 11:10 
GeneralRe: Wooo! I did it Pin
honey the codewitch2-Jul-20 13:25
mvahoney the codewitch2-Jul-20 13:25 
GeneralRe: Wooo! I did it Pin
David O'Neil2-Jul-20 14:03
professionalDavid O'Neil2-Jul-20 14:03 
GeneralRe: Wooo! I did it Pin
honey the codewitch2-Jul-20 14:18
mvahoney the codewitch2-Jul-20 14:18 
GeneralRe: Wooo! I did it Pin
honey the codewitch2-Jul-20 10:10
mvahoney the codewitch2-Jul-20 10:10 
GeneralRe: Wooo! I did it Pin
David O'Neil2-Jul-20 10:15
professionalDavid O'Neil2-Jul-20 10:15 
GeneralRe: Wooo! I did it Pin
honey the codewitch2-Jul-20 10:33
mvahoney the codewitch2-Jul-20 10:33 
GeneralRe: Wooo! I did it Pin
David O'Neil2-Jul-20 11:12
professionalDavid O'Neil2-Jul-20 11:12 
GeneralRe: Wooo! I did it Pin
Greg Utas2-Jul-20 1:25
professionalGreg Utas2-Jul-20 1:25 
GeneralRe: Wooo! I did it Pin
honey the codewitch2-Jul-20 10:11
mvahoney the codewitch2-Jul-20 10:11 
GeneralI was sent this, and... Pin
OriginalGriff1-Jul-20 9:21
mveOriginalGriff1-Jul-20 9:21 
GeneralRe: I was sent this, and... Pin
Mike Hankey1-Jul-20 9:23
professionalMike Hankey1-Jul-20 9:23 
GeneralRe: I was sent this, and... Pin
Kris Lantz1-Jul-20 9:29
professionalKris Lantz1-Jul-20 9:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.