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-requ...@lists.iem.at wrote: > > Date: Thu, 8 Feb 2018 17:39:38 -0500 > From: William Huston <williamahus...@gmail.com > <mailto:williamahus...@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_03sxsywkbvzr2a...@mail.gmail.com > <mailto:CAFPUnQnr5SE-zg1xiO5ACPK=tY=sob9i_03sxsywkbvzr2a...@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-studio-made-easy.466/ > > <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/>
_______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list