This is now solved in CVS head.
A script now can look like this:
#!/bin/bash
. /opt/xnee/latest/share/xnee/xnee.sh
xnee_fake_key l
xnee_fake_key s
xnee_fake_key Return
xnee_fake_key p
xnee_fake_key s
xnee_fake_key XK_space
xnee_fake_key a
xnee_fake_key u
xnee_fake_key x
xnee_fake_key w
xnee_fake_key Return
Henrik Sandklef wrote:
Burke, James wrote:
Shell problem:
I followed the example in section "5.8 Shell scripts using Xnee" of
the xnee manual. Part of that example included xnee_fake_key calls:
Xnee_fake_key l
Xnee_fake_key s
Xnee_fake_key XK_Return
Try "Return" (and not XK_Return) ......
Does it work, then one of us has made a woops in the docs.
JB - No, Return did not fix the problem.
Strange, works here.
When I run the script, only the "l" gets outputted - the "s" and the
return do not.
I found that if I insert a "xnee_init_file" right before each
"xnee_fake_key" call, it works.
The example and the bash file you're sourcing states you must call the
init function.
JB - I do call "xnee_init_file" at the start of the script:
JB - #!/bin/bash
JB - . ~/jpburke/xnee_code/xnee-3.02/share/xnee.sh
JB -
JB - xnee_init_file
JB - sleep 1
JB - xnee_fake_key l
JB - xnee_fake_key s
JB - xnee_fake_key Return
JB - sleep 1
JB - xnee_close_down
JB - JB - As executed above, I only get the "l" output. If I insert an
xnee_init_file
JB - call before each xnee_fake_key call then it works as intended -
"ls" and
JB - return is typed in my xterm and a listing of files in the current
directory
JB - is displayed.
odd ..... yet crappy
Will have a look ... but after the other bug is fixed.
_______________________________________________
Bug-xnee mailing list
Bug-xnee@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-xnee
_______________________________________________
Bug-xnee mailing list
Bug-xnee@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-xnee