Record of some of the computer tech I deal with so that it's documented at least somewhere.

Tuesday, 17 March 2009

Mplayer OSX - working

Anothy_x reminded me about MacPorts

yay, mplayer working

except .... getting it to run at boot. putting it in login_items you have to associate it with terminal and then the mouse being in the top left means the mplayer menu bar is across the top.

yay, done it. The power of Java moving the mouse off screen

import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.KeyEvent;

public class RM {
public static void main(String[] args) {
try {
Robot robot = new Robot();
robot.delay(5000);
robot.mouseMove(100, 10000);
} catch (AWTException e) {
e.printStackTrace();
}
}
}

I presume the class file has to be in the classpath, Looks like that includes .

#!/bin/bash
cd /Users/broadway/bin
java RM RM.class
mplayer -playlist /Users/broadway/media/playlist


Yay, remove the bullet and sew up the wound; I'm out of this crazy hospital.

No comments: