Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Internet Gambling > Software
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-02-2007, 12:18 PM
Tiki Tiki is offline
Senior Member
 
Join Date: Aug 2006
Location: A fugitive from the Law of Averages..
Posts: 329
Default 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
Reply With Quote
  #2  
Old 04-07-2007, 12:09 AM
Stake Monster Stake Monster is offline
Senior Member
 
Join Date: Jan 2007
Location: chair
Posts: 2,734
Default Re: A script for closing certain Party Tables:

bump for you
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:14 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.