View Single Post
Old 10-19-2012, 10:58 AM   #4
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,552
Karma: 6021146
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
A "for example" usage of some of these tools

go-game.sh
PHP Code:
#xdotool windowminimize 0x1200002  ==
     
for i in $(xwininfo -tree -root grep "home" | \
grep --e 0x[a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9]* ); do
        echo 
item$i
        xdotool windowminimize $i
    done
    
     
for i in $(xwininfo -tree -root grep "blankBackground" | \
grep --e 0x[a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9]* ); do
        echo 
item$i
        xdotool windowminimize $i
    done
    
     
for i in $(xwininfo -tree -root grep "searchBar" | \
grep --e 0x[a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9]* ); do
        echo 
item$i
        xdotool windowminimize $i
    done

# can very occasionally require this twice 
#(awesome getting in the way?) so we do it twice anyways.    
wmctrl -r L:A_N:titleBar_ID:system -'0,0,0,600,1'
wmctrl -r L:A_N:titleBar_ID:system -'0,0,0,600,1' 
stop-games.sh
PHP Code:
#!/bin/sh

  
for i in $( xdotool search --classname webreader ); do
            echo 
item$i
            xdotool windowactivate $i
        done
        
    
#xdotool windowminimize 0x1200002  ==
     
for i in $(xwininfo -tree -root grep "home" | \
grep --e 0x[a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9]* ); do
        echo 
item$i
        xdotool windowactivate $i
    done
    
     
for i in $(xwininfo -tree -root grep "blankBackground" | \
grep --e 0x[a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9]* ); do
        echo 
item$i
        xdotool windowactivate $i
    done
    
     
for i in $(xwininfo -tree -root grep "searchBar" | \
grep --e 0x[a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9]* ); do
        echo 
item$i
        xdotool windowactivate $i
    done

wmctrl 
-r L:A_N:titleBar_ID:system -'0,0,0,600,30' 
This is far-as-I-can-tell a working "one shot" solution.

geometry based workarounds for status bar now in place.

Provides a complete, "safe", screen tear-down and build-back.
Allowing the Kindle system to run unmolested and us to hack on screen content.

EDIT: To use these tools the way I use them:
I configure my system as outlined at minimodding.

http://minimodding.com/article9-Kind...ng-custom-apps

I am thinking of possibly making the whitney button have a triple-click to toggle the tear-up and tear-down. (separate process / thread to game) in case of "accidents", or maybe I could test for geometry? undecided.

no, now I'm thinking use TCL... maybe

either way this works.

Provided "as-is" - you would want SSH access running to use this at present.

Cheers.

Last edited by twobob; 10-19-2012 at 11:27 AM. Reason: TCL
twobob is offline   Reply With Quote