cheshirenoir: (Default)
[personal profile] cheshirenoir
I want to be able to send a string of keystrokes to an application repetitively under Ubuntu.

(The application is VICE, and all I want to send is the string fdddddddy over and over, which will mean my party in Bards Tale III will defend)

I know about a dozen toold to do this under Windoze but I'm having a heckofa time under Ubuntu / X.

I have looked at xmacro and xnee but I can't seem to make head or tail of them...

Date: 2008-01-08 02:03 am (UTC)
ext_54464: Michael as a Lego minifig (minifig-crop)
From: [identity profile] leahcim.livejournal.com
I briefly fiddled with xmacro, didn't make much sense of it either.

I did manage to make xnee do something though.

xnee --k-log -rec -o foo --all-events

Records 1000 mouse/keypress events into outfile. Move mouse to VICE window (you have focus follows mouse, right? :P), press required keypresses, wiggle mouse until 1000 events recorded (or work out what to feed the --stop-key option). Play it back with:

xnee -rep -f foo

I guess a shell script that invokes playback repeatedly is what you want.

As for whether such automated grinding is considered cheating, I'll leave that to your own conscience. :P

Date: 2008-01-08 07:25 am (UTC)
ext_54529: (Default)
From: [identity profile] shrydar.livejournal.com
Hack VICE or Bards Tale instead? :)

Date: 2008-01-11 04:17 am (UTC)
From: [identity profile] cheshirenoir.livejournal.com
Some of us aren't quite up to that yet.

Mind you, checking in a simple keystroke macro system into VICE would be cool.

Date: 2008-01-11 04:47 am (UTC)
ext_54529: (Default)
From: [identity profile] shrydar.livejournal.com
I'd be interested in attempting the feat, but sadly the OS X port of VICE is a fairly unfriendly X Windows port, and while I'm both a programmer and a mac user, I'm actually pretty unskilled as a mac programmer..

Profile

cheshirenoir: (Default)
cheshirenoir

September 2021

S M T W T F S
   1234
567891011
12131415161718
19202122232425
26 27282930  

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 8th, 2025 02:15 am
Powered by Dreamwidth Studios