Open GoogleCodeExporter opened 9 years ago
The version you have installed is unfortunately quite old (It takes a very long
time for software to bubble through to Ubuntu releases)
I suspect what you really wanted to do is 'xdotool search --title oXygen'
I recommend upgrading xdotool. I provide .deb packages now:
http://code.google.com/p/semicomplete/downloads/detail?name=xdotool_2.20101012.3
049-4_amd64.deb&can=2&q=deb#makechanges
Hope this helps.
Original comment by jls.semi...@gmail.com
on 3 Jan 2011 at 9:58
Thank you. Yes, I wanted do a --title search. This now works.
Thank you
Bernhard
Original comment by wern...@gmail.com
on 4 Jan 2011 at 9:52
The provided .deb package is only for amd64 which didn't work for my ubuntu.
I took the sources from:
http://semicomplete.googlecode.com/files/xdotool-2.20101012.3049.tar.gz
Additionally, I needed:
sudo aptitude install libxtst-dev
to compile.
This works.
However, I have a condition where my keys seem not to be sent to the receiving
window:
I can successfully send alt+f4 to oXygen:
xdotool search --onlyvisible --name "<oXygen/> XML Editor" key alt+F4
However, when the current document has changes, I get a "Save" dialog. This
dialog is found:
xdotool search --onlyvisible --name "^Save$"
75497706
But whatever keys I try to send it, nothing seems to reach it:
xdotool search --onlyvisible --name "^Save$" key alt+n
By the same token I realize that some keys (e.g. single letters, or e.g.
Ctrl-Q) don't seem to get sent to oxygen, while they do arrive at other
applications, e.g. gedit. Possibly because oXygen is a Swing application?
Eclipse seems to ignore even alt+F4.
Thanks
Bernhard
Original comment by wern...@gmail.com
on 4 Jan 2011 at 1:25
regarding keys not reaching your window:
Check the 'SENDEVENT NOTES' in the manpage, as this may be part of a cause as
to why your events may not be working (though I've never seen it work on only
part of an application).
Try instead, this:
xdotool search --onlyvisible --name "^Save$" windowactivate key --window 0 alt+n
This will activate the 'save' window and use XTEST (--window 0) to send Alt+n
instead of using XSendEvent
Original comment by jls.semi...@gmail.com
on 10 Jan 2011 at 6:56
This works. Thanks a lot. I'd been using the mouse in the meantime:
search --onlyvisible --name '^Save$' windowactivate --sync mousemove --window
%1 340 75 click 1
Will switch to your solution now.
Original comment by wern...@gmail.com
on 11 Jan 2011 at 10:42
Original issue reported on code.google.com by
wern...@gmail.com
on 16 Dec 2010 at 11:40