Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Internet Gambling > Software

Reply
 
Thread Tools Display Modes
  #1  
Old 01-29-2007, 03:01 PM
cassette cassette is offline
Senior Member
 
Join Date: Feb 2005
Posts: 1,289
Default Re: iWitness v2

[ 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!!
Reply With Quote
  #2  
Old 01-30-2007, 06:44 PM
Johan L Johan L is offline
Senior Member
 
Join Date: Nov 2005
Location: NL100$ FR 15/5/2.5
Posts: 489
Default 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)
Reply With Quote
  #3  
Old 01-30-2007, 07:26 PM
jukofyork jukofyork is offline
Senior Member
 
Join Date: Sep 2004
Location: Leeds, UK.
Posts: 2,551
Default Re: iWitness v2

[ 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]
Reply With Quote
  #4  
Old 01-30-2007, 08:03 PM
Johan L Johan L is offline
Senior Member
 
Join Date: Nov 2005
Location: NL100$ FR 15/5/2.5
Posts: 489
Default Re: iWitness v2

Gangsta!
That worked.
Reply With Quote
  #5  
Old 02-02-2007, 08:40 AM
sputnik365 sputnik365 is offline
Senior Member
 
Join Date: May 2005
Posts: 162
Default Re: iWitness v2

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
Reply With Quote
  #6  
Old 02-04-2007, 04:37 PM
fraz8000 fraz8000 is offline
Member
 
Join Date: Feb 2007
Posts: 38
Default Re: iWitness v2

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].
Reply With Quote
  #7  
Old 02-04-2007, 04:59 PM
fraz8000 fraz8000 is offline
Member
 
Join Date: Feb 2007
Posts: 38
Default Re: iWitness v2

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
Reply With Quote
Reply

Thread Tools
Display Modes

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 02:14 AM.


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