View Single Post
  #7  
Old 10-11-2005, 08:00 PM
tigerite tigerite is offline
Senior Member
 
Join Date: Sep 2004
Posts: 360
Default Re: Removing Party\'s Blackjack image

I'll post it one more time - or run this script with Autohotkey from www.autohotkey.com

#SingleInstance force
#Persistent

SetTimer,REMOVEBJ_SIDEBET,1000
Return

REMOVEBJ_SIDEBET:
{
lobby_list = % GetLobbies()

Loop, Parse, lobby_list, `,
{
lobby_id = %A_LoopField%
GetTables(lobby_id)
}
return
}

GetLobbies()
{
lobby_list =

; refresh the list of windows if necessary
WinGet, id, list, ahk_class #32770
Loop, %id%
{
StringTrimRight, this_id, id%a_index%, 0
WinGetTitle, title, ahk_id %this_id%
WinGetClass, class, ahk_id %this_id%
WinGet, process, ProcessName, ahk_id %this_id%

if title =
continue

if process not contains PartyPoker.exe,
continue

if title not contains Welcome to the,
continue

if lobby_list <>
lobby_list = %lobby_list%,

lobby_list = %lobby_list%%this_id%
}

return, %lobby_list%
}

GetTables(lobby_id)
{
if lobby_id <> -1
{
WinGet, process_id, PID, ahk_id %lobby_id%

; refresh the list of windows if necessary
WinGet, id, list, ahk_class #32770 ahk_pid %process_id%
Loop, %id%
{
StringTrimRight, this_id, id%a_index%, 0
WinGetTitle, title, ahk_id %this_id%

ControlGetText, static_text, Static2, ahk_id %this_id%

if static_text = Flop All 1 Color Pays 8 for 1
{
Control, Hide, , AfxWnd42s2, ahk_id %this_id%
WinHide, ahk_id %this_id%
continue
}

if title not contains Table,
continue

if title not contains Good Luck,
continue

Control, Hide, , AfxWnd42s33, ahk_id %this_id%
}
}

return
}
Reply With Quote