cuqa Posted February 10, 2012 Share Posted February 10, 2012 (edited) Hello, I am working on a project that makes usage of a poker software easier. One problem I have just stumbled upon is that my script kinda often brings other tables to the front stealing the focus when typing in a bet amount causing the betting amount typing to be interrupted. Now I have got an idea to improve the script. I want to simply check if a table needs action and while that is true, the script should not do actions that cause loss of focus. Question is now how I do this best. Have a look at how the tables look when they need action and when they dont: Note the green/grey dot in the title bar -snipped - When a window needs action it has this flashing green dot and a grey dot if no action is needed. My idea would be to pixelsearch at all windows but I could imagine that there is probably a better way. Do you think maybe there is a way to somehow check if the window needs action? WinGetTitle() does only return the text in the title, nothing about the dot. PixelSearch is obviously easy, but brings along some other problems. So if anyone has an idea how you could get if a table needs action or not please help me and post your ideas. Thanks Edited February 10, 2012 by Jos Link to comment Share on other sites More sharing options...
Developers Jos Posted February 10, 2012 Developers Share Posted February 10, 2012 Please read the forum rule rules and stick to them. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts