Quote:
Originally Posted by Justin
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.