[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-xnee] Compile problems for 1.0.7
From: |
Henrik Sandklef |
Subject: |
Re: [Bug-xnee] Compile problems for 1.0.7 |
Date: |
25 Jul 2003 14:26:37 +0200 |
Hi!
Thanks for your mail....
On Thu, 2003-07-17 at 15:02, Thierry EXCOFFIER wrote:
> Hello.
>
> Thanks for "xnee", I just started to use it in place
> of "FvwmCommand" to send test events.
>
> There is a problem in libxnee/src/xnee.c:1235
> It is a misplaced "xnee_verbose"
Already fixed (in CVS). Awkward bug/error :(
Next release.
> The library "-ldl" is needed on Debian.
>
I will fix this to work with the autotools __AND__ "all" platforms.
Next release.
>
> I have a wish... I prefer to wrote a script to test my application.
> So I use "xnee" with the following shell functions :
You want a scriptable Xnee?
I think you can either:
1) tweak stdin/stdout in bash so that you can
write input to xnee without having to launch a new Xnee
for every command
2) append input to a file and let tail read from that file and
feed xnee the new rows.
e.g
move_cursor()
{
echo "0,6,[mode stuff is needed here]" > /tmp/xnee_tmp
}
# hey, use this function only once
xnee_reader()
{
touch /tmp/xnee_tmp
tail -f /tmp/xnee_tmp | xnee --replay &
}
3) wait for the guile or python support to come
Note: 1 and 2 is what popped in to my mind when reading your mail. I
can't guarantee that they will work.
/hesa
> zmw_send() {
> echo "$1,0,1001
> 0,6,$X,$Y,0,0,0,1002" | xnee --replay 2>/dev/null >/dev/null
> }
>
> zmw_move_cursor_to() {
> X="$1"
> Y="$2"
> zmw_send "0,6,$1,$2,0,0"
> zmw_small_sleep
> zmw_send "0,6,`expr $1 + 1`,$2,0,0"
> }
>
> zmw_button_press() {
> zmw_send "0,4,0,0,1,0"
> }
>
> zmw_button_release() {
> zmw_send "0,5,0,0,1,0"
> }
>
> zmw_button_click() {
> zmw_button_press
> zmw_button_release
> }
>
> zmw_key_press() {
> zmw_send "0,2,0,0,0,$1"
> }
>
> zmw_key_release() {
> zmw_send "0,3,0,0,0,$1"
> }
>
> zmw_key() {
> zmw_key_press "$1"
> zmw_key_release "$1"
> }
>
> zmw_sleep() {
> sleep $1 || sleep 1
> }
>
> zmw_small_sleep() {
> zmw_sleep 0.1
> }
>
> zmw_dump_screen() {
> zmw_small_sleep
> NAME="$PROG_NAME.$1.ppm"
> echo "Dump virtual screen image $NAME" >&2
> xwd -root -screen |
> xwdtopnm 2>/dev/null |
> pnmcrop -white 2>/dev/null >$NAME
> }
>
>
>
> Have a nice day.