There isn't a way to generate system-level key or mouse events from within Pd. You'd have to use the platform native interfaces and probably write some code or use a user testing/scripting library.
I would go with the networking socket as that would work on both Windows and Linux.
On Feb 8, 2018, at 11:40 PM, pd-list-request@lists.iem.at wrote:
Date: Thu, 8 Feb 2018 17:39:38 -0500 From: William Huston <williamahuston@gmail.com mailto:williamahuston@gmail.com> To: pd-list@lists.iem.at mailto:pd-list@lists.iem.at Subject: [PD] Can Pd pretend to be a USB keyboard? Message-ID: <CAFPUnQnr5SE-zg1xiO5ACPK=tY=Sob9i_03SXSYWkBvZR2AhtQ@mail.gmail.com mailto:CAFPUnQnr5SE-zg1xiO5ACPK=tY=Sob9i_03SXSYWkBvZR2AhtQ@mail.gmail.com> Content-Type: text/plain; charset="utf-8"
I want to control OBS Studio with a MIDI device. OBS Studio does not presently support MIDI directly.
I want to communicate to my MIDI controller with Pd. I want to translate MIDI note-on/off messages into keystrokes and pass those on to OBS.
Can I emulate "midikey2key" in Pd? https://obsproject.com/forum/threads/control-obs-with-midi.32881/ https://obsproject.com/forum/threads/control-obs-with-midi.32881/ http://75r.de/midikey2key http://75r.de/midikey2key
I guess I could also use obs-websocket <https://obsproject.com/forum/resources/obs-websocket-remote-control-of-obs-s... https://obsproject.com/forum/resources/obs-websocket-remote-control-of-obs-studio-made-easy.466/>
Thanks for your ideas :) BH
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/