Re: iWitness v2
I have tried to fix this but I'm not very good with computers. My guess is that it errs in this section where it looks for open seats. I wrote %seats% to the logfile and it was 0 everytime. Hence -4 for 6 max. This causes the table not to meet the criterian an the table is closed. Does anyone know what the following code means and how we can fix it? Would it be possible to get the number of players from the lobby for a given table?
IfWinExist, %table_name%
{
WinGetTitle, check_for_SNG
IfNotInString, check_for_SNG, Buy-in.
{
i = 3
seats = 0
;Go through all the "Seat Open" buttons
Loop, 10
{
i++
;If they're visible, this is an empty seat.
ControlGet, is_visible, Visible, , AfxWnd42%i%, %table_name%
If is_visible = 0
seats++
}
}
Else
{
ControlGetText, is_finished, RICHEDIT1
IfInString, is_finished, This tournament has finished
seats = finished
Else
{
ControlGetText, level, static5
StringMid, seats, level, InStr(level, "Level:") + 6, 1
If seats =
seats = Registering
Else
seats = L%seats%
}
}
}
string = Johan checked table seats: %seats%
Log(string)
|