Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Internet Gambling > Software
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #51  
Old 02-18-2006, 01:26 PM
jukofyork jukofyork is offline
Senior Member
 
Join Date: Sep 2004
Location: Leeds, UK.
Posts: 2,551
Default Tiny Fix needed for my system

I just added a bit of code to match the string "Good Luck" in the titlebar of each table (we can't just check for "Table " prefix anymore).

------
IniRead, auto_launch, TableNavigator.ini, AutoLaunch, auto_launch, off
<font color="red">TableType = Good Luck</font>
SysGet, size_caption, 4
------

------
PlayMoney:
If TableType = Play money
<font color="red">TableType = Good Luck</font>
else
TableType = Play money
Menu, FileMenu, ToggleCheck, Test on Play Money
return
------

------
<font color="red">SetTitleMatchMode, 2 ; ### JUK: Set so we can match "Play money" or "Good Luck" anywhere in the title</font>
WinGet, id, list, %TableType% ahk_pid%pid% ahk_class #32770, , PartyPoker.com: , BLACK ;make a list of windows IDs matching ahk_pid/class, excluding the lobby
Loop, %id%
{
StringTrimRight, this_id, id%a_index%, 0 ;look familiar?
WinGetPos, x, y, w, h, ahk_id %this_id%
w -= 50 ;this allows for slight overlap or slightly different table sizes
h -= 50

If (x &lt; a_screenwidth/6 AND y &lt; a_screenheight/6) ;determine the table number based on its position
table_1 = %this_id%
If (x &lt; a_screenwidth/6 AND y &gt; a_screenheight/6 AND y &lt; 2*h)
table_2 = %this_id%
If (x &lt; a_screenwidth/6 AND y &gt;= 2*h)
table_3 = %this_id%
If (x &gt; a_screenwidth/6 AND y &lt; a_screenheight/6 AND x &lt; 2*w AND y &lt; 2*h)
table_4 = %this_id%
If (x &gt; a_screenwidth/6 AND y &gt; a_screenheight/6 AND x &lt; 2*w AND y &lt; 2*h)
table_5 = %this_id%
If (x &gt; a_screenwidth/6 AND x &lt; 2*w AND y &gt;= 2*h)
table_6 = %this_id%
If (y &lt; a_screenheight/6 AND x &gt;= 2*w)
table_7 = %this_id%
If (y &gt; a_screenheight/6 AND x &gt;= 2*w AND y &lt; 2*h)
table_8 = %this_id%
If (x &gt; a_screenwidth/6 AND x &gt;= 2*w AND y &gt;= 2*h)
table_9 = %this_id%
}
table_list = %table_1%,%table_2%,%table_3%,%table_4%,%table_5%, %table_6%,%table_7%,%table_8%,%table_9%
w += 50 ;reset to the actual width
<font color="red">SetTitleMatchMode, 1 ; ### JUK: Just in case this needs to use prefix mode elsewhere.</font>
------

Without this I was navigating to some really strange invisible window(s) aswell as the 4 party windows! But everything else seem to be working fine [img]/images/graemlins/laugh.gif[/img]

Thanks again for the update Roland [img]/images/graemlins/smile.gif[/img]

Juk [img]/images/graemlins/smile.gif[/img]

EDIT: Sry, I had two WinGets in their and didn't notice, fixed now [img]/images/graemlins/smile.gif[/img]
Reply With Quote
  #52  
Old 02-18-2006, 01:31 PM
Roland Roland is offline
Senior Member
 
Join Date: Mar 2005
Location: Norwich, UK
Posts: 2,703
Default Re: Tiny Fix needed for my system

Thanks juk.

Did you just resize the sidebet windows to one pixel? Because those might be the "invisible" windows?
Just strange because it can't detect invisible windows actually. Then again, that GUI - can do just about anything... [img]/images/graemlins/laugh.gif[/img]
Reply With Quote
  #53  
Old 02-18-2006, 01:37 PM
jukofyork jukofyork is offline
Senior Member
 
Join Date: Sep 2004
Location: Leeds, UK.
Posts: 2,551
Default Re: Tiny Fix needed for my system

Hehe, I think is is maybe something to do with the sidebets now you mention it! [img]/images/graemlins/smile.gif[/img]

The 'invisible' window was about 1/2 way down on two of my party tables (just where the sidebet used to be).

I deleted them off my disk totally this time, but in the old beta I did resize to 1 pixel (hoping they wont come back this time like they used to!).

Hopefully this fix will avoid sidebet windows forever and it also avoids the problems I was having with HH windows sometimes being treated as tables.

[ QUOTE ]
Just strange because it can't detect invisible windows actually. Then again, that GUI - can do just about anything...

[/ QUOTE ]

Yep, it seems to have supernatural powers, but it does work great! [img]/images/graemlins/laugh.gif[/img]

Juk [img]/images/graemlins/smile.gif[/img]
Reply With Quote
  #54  
Old 03-06-2006, 03:40 PM
jukofyork jukofyork is offline
Senior Member
 
Join Date: Sep 2004
Location: Leeds, UK.
Posts: 2,551
Default Re: A script you might like

Bump.

Still using this script all the time and have alot to thank Roland for:

- Way less arm pain that with the old mouse setup I had before (= more hours of poker possible).

- Played all weekend and not a single misclick (which was rare even for the mouse). The coloured bar which moves around is by far the best method of identifying the active table I seen yet and avoids most misclicks.

I suggest anybody else who wants to try 'mouseless poker', to try using this script [img]/images/graemlins/smile.gif[/img]

For anybody who wants to try it, then the newest version can be found in this sub-thread.

TY again! - Juk [img]/images/graemlins/smile.gif[/img]
Reply With Quote
  #55  
Old 03-06-2006, 06:18 PM
Roland Roland is offline
Senior Member
 
Join Date: Mar 2005
Location: Norwich, UK
Posts: 2,703
Default Re: A script you might like

That's right - don't let it die. [img]/images/graemlins/grin.gif[/img]

I know I said "Lobby control tomorrow" like a month ago [img]/images/graemlins/crazy.gif[/img] - sorry for that but it's definitely the first thing I'll do once iWitness is up and running... hopefully, err, tomorrow. [img]/images/graemlins/smile.gif[/img]
Reply With Quote
  #56  
Old 03-06-2006, 06:21 PM
jukofyork jukofyork is offline
Senior Member
 
Join Date: Sep 2004
Location: Leeds, UK.
Posts: 2,551
Default Re: A script you might like

Hey, no rush for the lobby control. It helped me alot just the way it is! [img]/images/graemlins/grin.gif[/img]

Juk [img]/images/graemlins/smile.gif[/img]
Reply With Quote
  #57  
Old 03-07-2006, 01:01 AM
SamIAm SamIAm is offline
Senior Member
 
Join Date: Apr 2004
Location: Merry Chhannukaahh
Posts: 6,273
Default Re: A script you might like

[ QUOTE ]
Hey, no rush for the lobby control.

[/ QUOTE ]What lobby control are we looking for? Like "open new table"? "Get on waitlist"?

I'm happy to work on this project, too. I feel a little embarassed that my name is already included. [img]/images/graemlins/smile.gif[/img]
-Sam

P.S. By the way, can I edit Roland's first post to accurately portray the title of the script? He's never been especially good at naming AHK threads...
Reply With Quote
  #58  
Old 03-07-2006, 01:28 AM
SamIAm SamIAm is offline
Senior Member
 
Join Date: Apr 2004
Location: Merry Chhannukaahh
Posts: 6,273
Default Re: A script you might like

[ QUOTE ]
the problem is to find a smooth and user-friendly way to handle all the different situations that can come up (no good if you can never remember which button does what ).

[/ QUOTE ]In my scripts, I've always worked to maintain a sort of "Red, Yellow, Green" pattern in rows of buttons. For instance, my bottom row is "Fold, Call, Raise". My 2nd row is "Don't post, wait to post, post".

For alted-rows, when a waitlist opened up for me, I had "Deny new seat, , accept new seat". For lobby control, I had "Close current table, , Waitlist for new table". (Note that the middle button is empty on both of these. No big deal. I have room for 12. [img]/images/graemlins/smile.gif[/img] ) What other commands can you think of? I thought about maybe defining another alt key which turns the direction-pad into a mouse. Don't know if that'd be useful.

Since this has a pretty gui, it might be nice to let the user specify which button does what. It'd also let them test which buttons are which. (Light-up a "1" when button1 is pushed. etc.)
-Sam

P.S. "Oh, Roland and Juk are writing a joystick script.", I thought. "I didn't get in on that project early enough. That's ok, though; I'll sit out on this one. Maybe I'll even play some poker. Or write my [censored] thesis." Of course not.
Reply With Quote
  #59  
Old 03-07-2006, 12:25 PM
jukofyork jukofyork is offline
Senior Member
 
Join Date: Sep 2004
Location: Leeds, UK.
Posts: 2,551
Default Re: A script you might like

I really don't know what would work best for this? [img]/images/graemlins/smile.gif[/img]

Just the fact that now I can play my tables without the mouse seems to have removed most of the strain I was getting before. I currently only use 5 buttons: Fold, Call, Raise, Post/Check-Auto-Post and the (magic!) Fix-GUI button. [img]/images/graemlins/smile.gif[/img]

I found that using this mixed with the AutoResizer util, I use the mouse very rarely now. Only situations I can think of are:

1. Choosing a seat, sitting down (AR auto confirms everything, so this just 1 click).
2. Leaving the table (also auto confirm the leave dialog).
3. Activating the lobby.
4. Joining a waiting list or joining a table (also use AR to auto-confirm these).

And that's pretty much it now. I was thinking about adding something along the lines of this UI, but not sure if it will be any good:

When I hold down a certain modifier the Lobby is activated (and stays activated). Then use up/down on the D-Pad to move up/down the list of tables and have a button which either takes you to the table if there is a free seat, else adds you to the waiting list.

Perhaps also have another button or combination which will select a seat and another combination (possibly all joypad buttons to together) to leave a table.

Again though, I got no idea how helpful this would be, and seems like the setup I have at the moment works pretty nicely as it is. I tried adding quick-fold hotkeys to AutoResizer, but found them to be pretty hard/unintuitive to use, and not sure if lobby control would be like this too?

Does anybody here play using purely JoyPad control? If so, I guessing you get the bot test a lot if you do this?

Juk [img]/images/graemlins/smile.gif[/img]
Reply With Quote
  #60  
Old 03-07-2006, 12:43 PM
jukofyork jukofyork is offline
Senior Member
 
Join Date: Sep 2004
Location: Leeds, UK.
Posts: 2,551
Default Re: A script you might like

[ QUOTE ]
I thought about maybe defining another alt key which turns the direction-pad into a mouse. Don't know if that'd be useful.

[/ QUOTE ]
Not sure how helpful this would be though? The sample AHK script which does this is pretty hard to use. I remember many years ago the Amiga had a pseudo-mouse which had some kind of momentum term added. This made it quite usable, as it allows for fine grained control for small distances, and for longer distances wasn't too slow either.

[ QUOTE ]
Since this has a pretty gui, it might be nice to let the user specify which button does what. It'd also let them test which buttons are which. (Light-up a "1" when button1 is pushed. etc.)

[/ QUOTE ]

Yes, this sounds pretty good idea. I think alot of people would use this GUI if they found it easy to setup - its saved me a great deal of arm ache so far! [img]/images/graemlins/smile.gif[/img]

I also wondering if there may be a way to adapt this so that (extremely) overlapping tables were handled (without all the random focus stealing which makes overlap such a pita). If I look into it more, then it will be possible to totally block party from doing the focus stealing by blocking/filtering its message queue, and this would allow AHK to control which window gets focus using some other system of control. The reason I like this idea over MTH idea, is simply the spacial aspect - it is much easier (for me) to remember players if you have some kind of 'spacial handle' on where they are seated in relation to the layout and I think this would probably be just the same with overlap?

I used to 8/10 table on 1 monitor using window's cascade and even then I had some kind of 'spacial handle' on players based on the cascade level (until I had to hit cascade again that was...). When using MTH, I found I only really remembered what had happened in one particular hand, and rather than a 'spacial handle' to a table, I use my seat position and my hole cards to remember the previous action of the hand for that table (meaning no carry over of info from one hand to another..).

[ QUOTE ]
P.S. "Oh, Roland and Juk are writing a joystick script.", I thought. "I didn't get in on that project early enough. That's ok, though; I'll sit out on this one. Maybe I'll even play some poker. Or write my [censored] thesis." Of course not.

[/ QUOTE ]
I know this feeling well, distractions, distractions, distractions... [img]/images/graemlins/grin.gif[/img]

Juk [img]/images/graemlins/smile.gif[/img]
Reply With Quote
Reply


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 03:15 AM.


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