Start/Control external aplication

Archive of the non-categorized posts related to the QLC+ technical support.
Please do not create new threads here, instead, use the categories above !
Post Reply
Santiago Benejam Torres

It's possible to start/control an external application from QLC+, via script for example?. I would control a pdf presentation from QLC+. QLC+ controlling lights and audio, and a program called impressive for the pdf presentation. I can send a page down key or wathever to impressive or another application?.
Massimo Callegari

Hi Santiago, this is an interesting question.
Since you use Linux, I think this can be solved with a combination of bash/python/ruby scripts and some command line tools.

It all depends though if impressive supports key commands from the command line.
Basically I would find a MIDI tool to send commands to QLC+ on the passthrough port.
Seems like amidi (http://linux.die.net/man/1/amidi) can do it.
So in your script, when you press a key to go to the next/previous page, you send the command to impressive and via MIDI to QLC+ (I imagine to a Cue List widget)

Would it work for you ?
Santiago Benejam Torres

Hi Massimo,
I think that Impressive don't allow control from command line.
In each scene we want to project some words in the background and change them at every change of scene. Maybe instead of doing it with a pdf I can do with images in jpg format.
Santiago Benejam Torres

I would change the scene with a cue list in qlcplus and send a signal to external app chaning to next slide or executing a script that displays an image on external monitor. I'm still searching more info for image viewers.
Santiago Benejam Torres

I found some tools with which I can control an external application. The tools are xdotool, python-xdo and some python midi modules. I will report soon
Santiago Benejam Torres

I'm testing a python script. Basically it's a OSC receiver server linked to QLC+ OSC output and depending on a value on a predefined channel send a 'Right', 'Left' or whatever key to external program (in this case impressive) and returns control/focus to QLC+.
Maybe tomorrow can I post the python script and a testing workspace plus some instructions and requirements. I need to test with a external monitor before post the script.
Santiago Benejam Torres

I made a python script to send actions to external programs or to execute external programs. It is a simple OSC server that receives the output from QLC+.
In this example when a channel in QLC+ reaches 255 value executes an action for now prints a text.
In QLC+ you must configure an OSC output to a port 1234 it can be changed in the script changing the port variable.
I can test it with a functions that send key events to external programs with xdotool, but I need more tests.
Post Reply