|
Wheeeeeee!!
Rage pwn'ing the thread and making my scripting look 2nl-ish :P
Would you like to auto-sit-in to all your tables after a quick break? Me too. So here's an attempt I have partially debugged. What it does successfully:
1. Counts number of Full Tilt windows open (important for loop statement some day).
2. Queries if "auto post blinds" box is checked.
3. If not, it clicks on it for you.
4. If yes, nothing happens.
Code:
CoordMode, mouse, screen
CoordMode, pixel, screen
WinGet Number, Count, ahk_class QWidget
GroupAdd FP, ahk_class QWidget
WinActivate FTP
PixelSearch,Px,Py,380,500,382,502,0x000000,10
If ErrorLevel
SendInput {Click 381, 501}
return
; The rectangle from (378,498) top left to (386,505) should all be white pixels (0xffffff) when "Auto-post
blinds" button is NOT selected.
For some reason, I CAN make it work if I use screen coordinates, but I can't the right window activated and use window coordinates, so making it loop and auto-check all blinds boxes can't happen, yet. 
As you can see, when I get this looping and functioning happily, it will take very little effort to do the following:
A. Check all active tables for timers. If they exist, click on them to start extra time banks.
B. Deactivate "auto post blinds" on all tables to sit out when the BB comes around.
C. Activate the "sit out" box on all tables for emergency exits.
So this could lead to some really nice features so PLEASE PLEASE HELP anyone who has suggestions. K thx.
|