The tables are recognized by this function:
Code:
TableIDListStars(pid)
{
WinGet, list, list, / ahk_pid%pid%, , Lobby
Loop %list%
{
this_id := list%a_index%
If (this_id != id)
{
ids = %ids%,%this_id%
}
}
StringTrimLeft, ids, ids, 1
return ids
}
To check if the table requiers an input is done in this part of the RefreshQueue sub:
Code:
Loop, Parse, ids, `,
{
ControlGet, v, Visible, , PokerStarsSliderEditorClass1, ahk_id%A_LoopField%
if ( v = 1 )
{
if (!InStr(tablequeue, A_LoopField))
{
DllCall("QueryPerformanceCounter", "Int64 *", CurrentQPC)
tablequeue := tablequeue . "," . CurrentQPC . "-" . A_TickCount . "_" . A_LoopField
}
}
else
{
if ( AlternateDetection = 1 ) {
color:=TableColor(A_LoopField)
if ( color != tablecolor && tablecolor != "" ) {
if (!InStr(tablequeue, A_LoopField))
{
DllCall("QueryPerformanceCounter", "Int64 *", CurrentQPC)
tablequeue := tablequeue . "," . CurrentQPC . "-" . A_TickCount . "_" . A_LoopField
}
}
else {
if (InStr(tablequeue, A_LoopField))
{
StringReplace, tablequeue, tablequeue, %A_LoopField%, , All
}
}
}
else {
if (InStr(tablequeue, A_LoopField))
{
StringReplace, tablequeue, tablequeue, %A_LoopField%, , All
}
}
}
}