![]() |
|
|
|
#1
|
|||
|
|||
|
[ QUOTE ]
I am wondering if there is a way to make sure that watches a table for a sufficent amount of hands. im finding that it will switch tables up after only 15-30 hands and i won't be able to get sufficent # of hands on a player. [/ QUOTE ] I have the same problem. When IWitness looks to refresh tables after 5 minutes it always closes them all down and opens 10 new tables. I think it might have something to do with the fact that in the client window under the "Players" column it lists the number of players as -4. Any ideas? Thanks for the great script!! |
|
#2
|
|||
|
|||
|
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) |
|
#3
|
|||
|
|||
|
[ QUOTE ]
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) [/ QUOTE ] Have you tried changing all references of " AfxWnd42" in the code to "AfxWnd42u". A while back Party renamed stuff and most scripts broke because of this. Juk [img]/images/graemlins/smile.gif[/img] |
|
#4
|
|||
|
|||
|
Gangsta!
That worked. |
|
#5
|
|||
|
|||
|
Thanks juk, that works here, too [img]/images/graemlins/smile.gif[/img]
If you are ever in Napoleons, Leeds, I owe you some beer All the best |
|
#6
|
|||
|
|||
|
Nh Juk!
I have made the changes you suggested to the code at the OC site. I'm by no means a programmer but i thought i could help make these changes for my first ever post! [img]/images/graemlins/grin.gif[/img] Now when you refresh tables manually or it auto-refreshes itself it only closes the tables that no longer fit the player requirements. This makes refreshes much faster, and so reduces the risk of the table order changing halfway through a long refresh, and the annoying skipping occurring. Also now iWitness does not try to make unneccessary autorefreshes every few minutes because it thinks that there are -4 players at every table. The number of players at each table comes up correctly in the iWitness library now. I also modified the code with the 12-table Party Poker modifications given in an earlier post. Now it opens and refreshes to 12 tables if so desired. Strangely it does not always say this on the iWitness screen, but I am not sure how to fix this. This seems only a minor problem, as all 12 tables still track fine. Hopefully these changes help. If not, feel free to edit or roll-back. Btw, all the work of the creators and editors of this program is greatly appreciated [img]/images/graemlins/smile.gif[/img]. |
|
#7
|
|||
|
|||
|
For those having problems copying and pasting the code at
http://www.overcards.com/wiki/moin.cgi/iWitness I suggest using a very simple editor, preferably Windows Notepad (not Word or Wordpad). This worked fine for me. Fz |
![]() |
| Thread Tools | |
| Display Modes | |
|
|