[LOGGED] Osculator Virtual Devices as actor in Isadora
-
Since ‘Osculator’ is no longer being developed and although it still works, I would like to have the function ‘virtual Devices (Key Combo, Keycode, Mouse, HID)’ as an actor in Isadora.
Best regards,
Jean-François
-
@jfg said:
the function ‘virtual Devices (Key Combo, Keycode, Mouse, HID)’ as an actor
Sorry, I 'm not familiar. How would this work?
-
@dusx said:
How would this work?
Osculator enables you to send keyboard shortcuts (e.g. Cmd+A, Ctrl+Shift+W) to external programmes or the Finder via MIDI or OSC signals. For an Isadora Actor, you only need the ability to send the keyboard shortcut and select the target programme. This would be a very useful way to control Syphon Recorder, for example.
or to move the mouse:
-
I see. I think this should be do able in Pythoner.
I'll log the feature request, and add it to my list of projects to investigate.
-
@dusx said:
I think this should be do able in Pythoner.
I have find this script and it is working in Pycharm but I don't understand how to use it in the pythoner actor:
from pynput.mouse import Controller
# Initialize mouse controller mouse = Controller()
# Get current position position = mouse.position print(f"Current mouse position: {position}")
# Move mouse relative to current position current_position = mouse.position mouse.move(50, -30) # Move 50 pixels right and 30 pixels up
-
@jfg said:
pynput
What exactly would you like the script to do? (try to be detailed and complete)
I can likely get you something right away if its clear. -
Firstly, I'm looking for a way to control actions in other software from Isadora via keyboard shortcuts. For example to control the record (Alt+Cmd+R) and snapshot (Alt+Cmd+S) functions in Syphon Recorder. In other words, Python would need to send the keyboard shortcuts to Syphon Recorder when a trigger is activated.
This works in Pycharm:
from pymouse import PyMouse
from pykeyboard import PyKeyboardm = PyMouse()
k = PyKeyboard()k.press_keys(['Command','Alternate','r'])
# Documentation: https://github.com/SavinaRoja/...
I think an actor in Isadora would help a lot of people and above all avoid the risk of crashing that always exists with external software (Osculator).
Thanks
Jean-François
-
It looks like PyUserInput is a dead project, and PyMouse + PyKeyboard have both been merged into it years ago.
This appears to be the project these lead you to: moses-palmer/pynput: Sends virtual input commands , I will investigate this further as it appears to be more current and cross-platform.
I think cross app tooling is a useful extension to Isadora. Targeting specific apps is pretty easy from Windows, but apple limits this for security, so applescript is often used as a middle-ware. It will be interesting to see if this module offers this feature. It is clear in the docs that the user must setup a number of macOS system permissions to use the moduel. -
I have logged this to both our feature requests database, and my personal python project list.
-