#1
|
|||
|
|||
A script for closing certain Party Tables:
My first foray into programming (beyond DOS programs that is) was motivated by my inability to get iWitness working. Using Safe-mine downloaded from here I wanted to be able to easily close tables with a certain number of open seats. I have came up with the following script. Every thing was fine until I tried to add
the mouse-clicks at the bottom. Why does everything go haywire when I try to use the mouse-clicks? The mouse-clicks are intended to sort the Party Table List but gave me a severe fright instead. To use this script I simply pause Safe-Mine and run. All constructive comments are welcome and I hope that this code may prove of use to someone. SetTitleMatchMode, 2 DetectHiddenText, off DetectHiddenWindows, off SetTitleMatchMode,fast CoordMode,Mouse,Relative Seat_count:=0 Test_count:=0 Empty_Seats=3;;;;;Close any table with this many seats empty WinGet, lobby_id, ID, PartyPoker.com WinGet, id, List, Good Luck, , PartyPoker.com loop %id% { StringTrimRight, Window, id%A_Index%, 0 WinGetText,Text,ahk_id%Window% Dealer_count:=0 Seat_count:=0 Loop,Parse,Text,`n,`r { IfInString,A_LoopField,Dealer { Dealer_count++ If (Dealer_count >=2) { WinMinimize,ahk_id%Window% Break } } IfInString,A_LoopField,Seat { Seat_count++ } If (Seat_count >=Empty_Seats) { WinKill,ahk_id%Window% break } } } WinRestore,ahk_id%lobby_id% ; Reset the Party lobby to top left and correct dimentions. WinMove, PartyPoker.com:, , 0, 0, 786, 566 ; WinActivate,ahk_id%lobby_id% ;Sleep,500 ;Click 743,94;;Avg Pot ;Sleep,500 Beware of this little lot here ;Click 581,94;;Avg Pot |
#2
|
|||
|
|||
Re: A script for closing certain Party Tables:
bump for you
|
|
|