Hello everyone.
I have a task - to transmit key commands to another computer via OSC. Is there such a possibility in Juce?
Absolutely. Have a look over here:
https://docs.juce.com/master/tutorial_osc_sender_receiver.html
Thank you. I have learned this and am using it successfully. I need to give some command from the Sender so that the Receiver emulates a key press on another computer (for example, the Up or Down keys).
Hi everyone. I found a solution. If anyone is interested.
#include <Windows.h>
if( message.getAddressPattern().toString() == "/showFromFirst")
{
if (message.size() == 1 && message[0].isInt32())
{
keybd_event(116, 0, 0, 0); //F5Key
keybd_event(116, 0, KEYEVENTF_KEYUP, 0);
}
}
if( message.getAddressPattern().toString() == "/showFromSelected")
{
if (message.size() == 1 && message[0].isInt32())
{
keybd_event(16, 0, 0, 0); //F5Key
keybd_event(116, 0, 0, 0); //shiftKey
keybd_event(16, 0, KEYEVENTF_KEYUP, 0);
keybd_event(116, 0, KEYEVENTF_KEYUP, 0);
}
}
This works perfectly in Power Point. It doesn’t work in Resolum Arena.
