Control mouse click with Python
Hi Remotify forum members,
I see that Remotify has a user.py script that can run methods (a python class), can I run python code here that I currently run in terminal?
I have a python script (that I run manually) that listen for a specific midi command (sent from a midi controller when a button is pressed), when this command is received it clicks the ‘Type’ area (see attached picture) in Ableton’s browser to activate it so that I can copy in clip packs from a folder to tracks (Deck A and B). I do this as I have no other way of Activating Ableton’s browser.
I’m a bit of a new beginner in scripting and with Ableton so I would like to know if it is possible before I spend to much time on it, is this something that can be done with Remotify and python?
These are my imports in my python script;
import argparse
import os
import signal
import sys
import time
import rtmidi
from pynput.mouse import Button, Controller as MouseController
from pynput.keyboard import Key, Controller as KeyboardController

I’m guessing you can use any module that’s part of the Python’s Standard Library without a problem.
I don’t have a clue how you would be able to use 3rd party modules though. If you right-click on the Ableton app, access its contents and navigate to “/Applications/Ableton Live 11 Suite.app/Contents/App-Resources/Python/site-packages”, then you might be able to manually install a python module here???
Am I understanding you correct that you only click “type” so that the Browser would come into focus?
If so, then maybe the “Focus View” Action is what you need (Live Object Models > Application > Focus View):

Otherwise, you could maybe let your external script run in the background and have it be triggered by specific messages in a log. You could then make Reactions that writes those messages to the log.
Sign up
User registration is currently not allowed.