View Single Post
Old 10-17-2012, 03:05 PM   #38
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,491
Karma: 5977000
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Helpful awesome refs:

also useful...
http://dev.man-online.org/man1/xdotool/#lbAK
http://www.semicomplete.com/projects...l#window_stack


back to the thrust of the message:
As the id's of the windows are not constant...

[root@kindle root]# xprop -root | grep -o -e [0-9]"x"[a-zA-Z0-9]*
is a place to start getting some values in realtime.

seemingly the root 0x51 is constant at least (not that that helps right now but might)

also:

[root@kindle root]# COUNTER=4; until [ $COUNTER -lt 1 ]; do xdotool search --classname --onlyvisible Pillowd windowminimize;let COUNTER-=1; done

is helpful

[root@kindle root]#
Code:
COUNTER=4; until [  $COUNTER -lt 1 ]; do xdotool search --classname --onlyvisible webreader windowminimize;let COUNTER-=1; done

Get "HOME" ID

[root@kindle root]# xwininfo -tree -root | grep "home" | grep -o -e 0x[a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9]*#

example

Quote:
[root@kindle root]# xwininfo -tree -root | grep "home" | grep -o -e 0x[a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9]*
0x1200002
[root@kindle root]# xdotool windowminimize 0x1200002

Last edited by twobob; 10-17-2012 at 11:36 PM. Reason: more links
twobob is offline   Reply With Quote