Gweled Bot: Closing Game Over window

view full story

http://ubuntuforums.org – I've written a Gweled bot that plays the game for me. Currently I have to manually click the "New Game" button on the Game Over window. I'd like to automate this task for testing purposes of different gameplay algorithms. My current method uses xwininfo to search for the "has no name" child of the Gweled window. Code: xwininfo -root -tree | grep Gweled | grep 'has no name' The problem with this method is that the spawned child window still shows up in xwininfo after I click to start a new game. I believe that the width/height are reported as 1x1 when the game over (Hardware)