Loggytronic Forum

VOMP => VOMP General / MVP => Topic started by: avvdr on January 04, 2008, 19:51:48

Title: small remote simulator
Post by: avvdr on January 04, 2008, 19:51:48
Hi all,
because I work all the time a bit away from my vomp - accessing it via telnet and using netcat -u to simulate remote key-presses -  I now wrote a small (java) based simulator for the remote.
By taking a photo of it (hmm quality...) and having a key mapping file attached, you can now click with the mouse on the keys and it will send out appropriate UDP commands.
Currently for the old remote (that's what I have) - but it could be easily adapted to the new one - see included file USAGE.TXT.
For me it works (now it's easier to remember all the keys - and you got a feedback where they keys are located and if certain functions make sense).
Maybe it could help somebody else too.
Simply unpack attached file to an empty dir and run:
  java -jar usender.jar remote/oldremote.jpg vomp-ip
!! there was a typo in this command before (missed usender.jar)!!
Needs java 1.5.

regards
Andreas
Title: Re: small remote simulator
Post by: Chris on January 05, 2008, 15:18:24
Good work!

I have made an image and keys file for the new remote, but there is a little problem.... It is chopping the top and bottom of the image which means all the key coordinates are out of sync vertically. Andreas, do you want to edit the java for this or should I just apply a correction to all the y coordinates!
Title: Re: small remote simulator
Post by: avvdr on January 05, 2008, 21:10:48
Hi Chris,
hmm - it's too simple - so coordinates depend on the size of the underlying label.
Anyway - it was 10 minutes to adapt the file for the old remote after enlarging the JLabel.
Now it seems old and new are working well.
I added a display for the send command - so you have an easy check for that.
I just created a new complete archive with the old+new remote inside.

regards
Andreas
Title: Re: small remote simulator
Post by: rdoac on January 12, 2008, 12:22:13
Hi, nicely done.. Works well on my setup.
Title: Re: small remote simulator
Post by: hondansx on January 02, 2009, 19:56:54
For those who have no java or only a shell, I work with this little shell script.

remoteMVP (http://www.russle.net/vomp/misc/remoteMVP)

Bye,
Walter