ssanthosh243 / semicomplete

Automatically exported from code.google.com/p/semicomplete
0 stars 0 forks source link

oXygen XML Editor not found with search --name "oXygen" #45

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run oXygen XML Editor (http://www.oxygenxml.com/)
2. xdotool search --name "oXygen"
3. nothing is found, while
4. wmctrl -l | grep oXygen
   finds oxygen's window.

What version of the product are you using?
xdotool does not give version information. I installed it with:
sudo aptitude install xdotool, manpage says 2009-03-31.

On what operating system?
2.6.32-26-generic #48-Ubuntu SMP Wed Nov 24 09:00:03 UTC 2010 i686 GNU/Linux

Thanks
Bernhard

Original issue reported on code.google.com by wern...@gmail.com on 16 Dec 2010 at 11:40

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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