View Single Post
Old 05-07-2014, 12:57 PM   #93
Banned
Human being with feelings
 
Banned's Avatar
 
Join Date: Mar 2008
Location: Unwired (probably in the proximity of Amsterdam)
Posts: 4,868
Default

Quote:
Originally Posted by Justin View Post
Try this:
Code:
(char = gfx_getchar()) > 0 ? printf("%c", char);
(your code was parsed as: char = (gfx_getchar() ? printf("%c", char)); which is not what you want)
Oh, I see.. I was expecting it to be something simple like that. I'm such a noob. Thanks, that code works as expected.

The next question, then, would be if it is somehow possible to capture keyboard input even when a script window does not have focus? For example, when using OSCII-bot in conjunction with REAPER, I'm assuming the user would typically have focus on a window belonging to REAPER, but may want to use some keys to control an OSCII-bot script. Since I am guessing this is not currently possible, please consider this as another FR.
Quote:
This is standard for most Windows and Linux systems, but I guess OS X is the exception...
Yeah - Apple either doesn't really know what they want, or came around, apparently: iOS does it one way, OS X another. I guess I must have been doing OS X the last time I was using x/y coordinates.
__________________
˙lɐd 'ʎɐʍ ƃuoɹʍ ǝɥʇ ǝɔıʌǝp ʇɐɥʇ ƃuıploɥ ǝɹ,noʎ

Last edited by Banned; 05-07-2014 at 01:06 PM.
Banned is offline   Reply With Quote