Two Plus Two Newer Archives

Two Plus Two Newer Archives (http://archives1.twoplustwo.com/index.php)
-   Software (http://archives1.twoplustwo.com/forumdisplay.php?f=47)
-   -   PokerPad - AHK hotkey script (http://archives1.twoplustwo.com/showthread.php?t=513595)

Xanderz 10-25-2007 08:41 PM

Re: PokerPad - AHK hotkey script
 
Version 0.1.7 is now available.

There are many updates/improvements from 0.1.6, see the change log for a list of all of them.

The major updates are support for Everest Poker and an internal improvment of how text is read from windows.

Download here: http://www.autohotkey.net/~Xander/PokerPad/

Also, I may need volunteers with real money on Poker Stars, iPoker or Everest Poker if the $ sign is not being read correctly (for instance it is read as an 8 thereby completely throwing off pot bets...

HighSteaks 10-25-2007 09:48 PM

Re: PokerPad - AHK hotkey script
 
Xanderz,
Had a go at Empire/Party but they went down for maintenance. The preflop betting(tried 10nl and 25nl) seemed to be a lot better (.80 first in 25nl .35 10nl- $1.10 behind a limper at 25nl) but betting on all streets after was usually about 4 times the bet eg wanted to bet $2.25, got around $10- this was using bet rounding set to small blind and big blind, these postflop bets were working fine for me before the upgrade set on relative bet rounding at this site- didn't get to play long enough to try relative bet rounding however. Will go back later.

Plenty of things working on Everest- sit out, post, reload to max buy and clear bet box and they are the worst things about the site so that was great. Betting buttons at 25nl giving bets like $115 and $415.25 etc. Didn't get any normal bet amounts. Increase/decrease bet using wheel up/ wheel down working great. [img]/images/graemlins/smile.gif[/img]

I am using the black background on Everest if that is of any consequence.

Xanderz 10-25-2007 10:16 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
Xanderz,
Had a go at Empire/Party but they went down for maintenance. The preflop betting(tried 10nl and 25nl) seemed to be a lot better (.80 first in 25nl .35 10nl- $1.10 behind a limper at 25nl) but betting on all streets after was usually about 4 times the bet eg wanted to bet $2.25, got around $10- this was using bet rounding set to small blind and big blind, these postflop bets were working fine for me before the upgrade set on relative bet rounding at this site- didn't get to play long enough to try relative bet rounding however. Will go back later.

[/ QUOTE ] I didn't get time to do much testing on Party and now I can't seem to stay connected to their server :/ I'll take a look at what is going on as soon as I can play there.

[ QUOTE ]
Betting buttons at 25nl giving bets like $115 and $415.25 etc. Didn't get any normal bet amounts. Increase/decrease bet using wheel up/ wheel down working great. [img]/images/graemlins/smile.gif[/img]

[/ QUOTE ]I was afraid of this. I don't have real money on there so I can't test if the $ signs are being read correctly. If you are willing, I will send an alternate version that will determine the correct mappings for the $ sign. The amount of work on your part should be minimal. Essentially, there is just an extra hotkey that sets the bet amount to some random amount and then reads the raise button and if the amounts don't match, they will be saved to a file. It keeps doing this until you press another hotkey that stops it. That is pretty much how I get the mappings except I will have to write the saving to file part (so that you can just send the file via email).

[ QUOTE ]
I am using the black background on Everest if that is of any consequence.

[/ QUOTE ]That is the background I set it to. Any background should be ok as long as it doesn't have green or yellow in it near the buttons.

HighSteaks 10-25-2007 10:33 PM

Re: PokerPad - AHK hotkey script
 
Sent pm.

HighSteaks 10-25-2007 11:13 PM

Re: PokerPad - AHK hotkey script
 
Xanderz,

Ok, having a bit more luck, Party/ Empire seems to be going fine, I reset my keys and used relative- I'm not sure why but I was changing the keys and the changes weren't saving. On Evereset I think the only problem might be that the decimal point is not there, but the amount might be right if there were a decimal point there, I'm on 10nl waiting for a hand I'm will to shove with to test it out. [img]/images/graemlins/laugh.gif[/img]

HighSteaks 10-26-2007 12:55 AM

Re: PokerPad - AHK hotkey script
 
The pot fractions are changing when I close the script. This was set up with the default settings in the left column, and as you can see they changed. I reinstalled and tried again but got the same result. After they changed the bet amounts went whacky.

http://img89.imageshack.us/img89/786/95144809iu5.png


http://img89.imageshack.us/img89/219/19127696gr5.png

Xanderz 10-26-2007 02:03 AM

Re: PokerPad - AHK hotkey script
 
It has been fixed for the source version of 0.1.7. The compiled version will be fixed in 0.1.8. Also I updated the mappings. There was more variance than I was expecting. If you could redownload the link in the pm I sent and get a larger sample size (perhaps 3 or 4 hands per window size) that would be really helpful! Make sure you use the updated version though.

HighSteaks 10-26-2007 02:38 AM

Re: PokerPad - AHK hotkey script
 
The folder name I downlaoded earlier today from the website is called PokerPad-Source-0.1.7 and that's the one that stuff above is happening to. Anyway, I'll get those hands with the mapper and send them off.

Xanderz 10-26-2007 03:47 AM

Re: PokerPad - AHK hotkey script
 
I meant that I reuploaded PokerPad-Source-0.1.7 with the fix.

HighSteaks 10-26-2007 04:14 AM

Re: PokerPad - AHK hotkey script
 
Yep worked that out [img]/images/graemlins/blush.gif[/img] Playing on Party and Everest ATM. Got it set on Relative. I raised a pot on Party, pot was $2.65 and I hit 3/4 first to bet and got $7.50. Same on Everest, first to go into a $1 pot, hit 3/4, bet was $3.

Xanderz 10-26-2007 09:56 PM

Re: PokerPad - AHK hotkey script
 
I looked into getting the pot/call/raise amounts from the hand histories and I don't think it is possible. It appears the neccesary information is not written to file until after the hand is complete.

I was searching for a different way to obtain the amounts because from the mapping file you sent me, it doesn't appear that it is working at all for you. I can resize the table to about any reasonable size and it always reads everything correctly for me so I don't know what is going on here.

If I make the window almost the full size of my monitor I can obtain some "misses" but they are only by a single digit. For example:

1A1D1D1C 4
2BC1B1B1A 6
1B2AB1B1B 7
1D1A1D1A 2
1B1B1B1B 7
2AC2AB1C1A 6
1 6.05
1 6.05
196.05

That may look like gibberish but essentially each line is a mapping to a digit followed by the width in pixels. And the last 3 lines are what is read, what the amount is after proper formating, and what it should be. The space in "1 6.05" essentially means that "2BC1B1B1A" needs to be mapped to the digit 9.

However, from your mapping file, I get things like this almost without exception:

2BB2BB1C1C 5
1C1C1C1D 5
1A1D1D1C 2
1B2AC1B1C 5
2AC1A1D1B 5
8.67
8.67
5.94

As you can see, nothing is correct except for the decimal point !!

Perhaps if you can email me a screenshot of the table with the call buttons, I will have a better idea as to what is going on here.

To get a screenshot, press ALT + Print Screen, then paste into an image program (MS Paint should work..).

HighSteaks 10-27-2007 02:08 AM

Re: PokerPad - AHK hotkey script
 
Played 10nl for about an hour on Everest [img]/images/graemlins/smile.gif[/img]For the most part using the decimal method the flop betting was accurate- I would say in 90% of cases when first to act. I did get one large flop bet, might have had action on two tables at the time although I can't be sure. The turn and river give an all in bet in the bet box if you use any of the buttons however in 100% of cases. Of course it is only putting the number in the box, not actually shoving- the time that I did actually shove might have been my error not realizing that the bet in the box was in fact an all in bet and I hit bet instead of clearing the box. Sure is nice to have this on that site though.

Xanderz 10-27-2007 12:56 PM

Re: PokerPad - AHK hotkey script
 
OK, If it is reading the buttons correctly most of the time - then the times it is not read correctly can hopefully be fixed [img]/images/graemlins/smile.gif[/img]

In the next release, I will include a "debug" hotkey to use whenever you encounter an incorrect bet.

hallo! 10-27-2007 02:07 PM

Re: PokerPad - AHK hotkey script
 
Hi,

has anyone else experienced that pressing the RELOAD Button it will do a MinRaise if you do it in a hand?

Has me cost quite a bit [img]/images/graemlins/laugh.gif[/img]

I have tried it on different keys but its the same with every one

?

Xanderz 10-27-2007 02:34 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
Hi,

has anyone else experienced that pressing the RELOAD Button it will do a MinRaise if you do it in a hand?

Has me cost quite a bit [img]/images/graemlins/laugh.gif[/img]

I have tried it on different keys but its the same with every one

?

[/ QUOTE ]
Which site(s) does this happen on?

Xanderz 10-27-2007 02:38 PM

Re: PokerPad - AHK hotkey script
 
I am releasing version 0.1.8 now without the debug hotkey I mentioned earlier as I don't know when I'll be able to get to it or how long it will take..

This version mainly just fixes the issue of pot bets not being read in correctly, which is why 3/4 1/2 etc were placing the bet incorrectly.

Also added support for OnGame. It had been half-written for a little white, finally got around to finishing it up [img]/images/graemlins/smile.gif[/img]

Download here:
http://www.autohotkey.net/~Xander/PokerPad/

hallo! 10-27-2007 02:42 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
[ QUOTE ]
Hi,

has anyone else experienced that pressing the RELOAD Button it will do a MinRaise if you do it in a hand?

Has me cost quite a bit [img]/images/graemlins/laugh.gif[/img]

I have tried it on different keys but its the same with every one

?

[/ QUOTE ]
Which site(s) does this happen on?

[/ QUOTE ]

sorry forgot to mention: Full Tilt only as far as I know

Xanderz 10-27-2007 03:02 PM

Re: PokerPad - AHK hotkey script
 
I can't reproduce this bug. I waited until the action was on me, then hit the reload hotkey. It reloaded, but did not do a minimum raise.

However, I have added an extra check to make sure the Enter key is sent to the Buy-In Window and not the Game Window in case the Buy-In Window wasn't coming up for some reason for you?

The update is in PokerPad-Source-0.1.8.zip (redownload if you downloaded that version prior to this message). The compiled version has not been updated, it will be updated in 0.1.9

hallo! 10-27-2007 03:09 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
I can't reproduce this bug. I waited until the action was on me, then hit the reload hotkey. It reloaded, but did not do a minimum raise.

However, I have added an extra check to make sure the Enter key is sent to the Buy-In Window and not the Game Window in case the Buy-In Window wasn't coming up for some reason for you?

The update is in PokerPad-Source-0.1.8.zip (redownload if you downloaded that version prior to this message). The compiled version has not been updated, it will be updated in 0.1.9

[/ QUOTE ]

maybe it has something to do with the Lags that some people have at Full Tilt. It may not open the rebuy window quick enough. I can only guess

I will try the new version and tell if that fixed it. I cant tell now because it only does this occasionally, not every time

thanks!

hallo! 10-27-2007 06:03 PM

Re: PokerPad - AHK hotkey script
 
Ok,

this did not help, because it still does it and even across tables, if i use tablerotation, which is Great addon. If I press the Reload Button on the table I want to reload and it rotates to the table who needs action it raises there [img]/images/graemlins/frown.gif[/img]

Is there anything i can help with this?

terance 10-27-2007 06:04 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
[ QUOTE ]
I can't reproduce this bug. I waited until the action was on me, then hit the reload hotkey. It reloaded, but did not do a minimum raise.

However, I have added an extra check to make sure the Enter key is sent to the Buy-In Window and not the Game Window in case the Buy-In Window wasn't coming up for some reason for you?

The update is in PokerPad-Source-0.1.8.zip (redownload if you downloaded that version prior to this message). The compiled version has not been updated, it will be updated in 0.1.9

[/ QUOTE ]

maybe it has something to do with the Lags that some people have at Full Tilt. It may not open the rebuy window quick enough. I can only guess

I will try the new version and tell if that fixed it. I cant tell now because it only does this occasionally, not every time

thanks!

[/ QUOTE ]

Exact same problem for me on FTP. Thanks for continuously adding support for more sites Xanderz [img]/images/graemlins/smile.gif[/img]

Xanderz 10-27-2007 06:44 PM

Re: PokerPad - AHK hotkey script
 
According to the AHK documentation, it shouldn't be sending an enter keystroke to the game table [img]/images/graemlins/frown.gif[/img] Maybe it is a bug in AHK itself.

Anyhow, the enter key is no longer used to close the buy-in window dialog for Full Tilt. Instead it directly clicks the OK button. Also changed Poker Stars to do the same in case this happens there - and hopefully it resolve the issue with Poker Stars not always reloading to maximum since this method is slower.

Party Poker is the only site the uses the Enter key to close the dialog box because clicking the OK button doesn't seem to work [img]/images/graemlins/frown.gif[/img]

PokerPad-Source-0.1.8.zip has been updated again with this fix (again!).

_dave_ 10-27-2007 06:53 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]

Party Poker is the only site the uses the Enter key to close the dialog box because clicking the OK button doesn't seem to work [img]/images/graemlins/frown.gif[/img]


[/ QUOTE ]

IIRC "ControlSend, Button2, {SPACE}, ahk_id%dialog_id%" is good for those pesky Party dialogs, while also working on FTP and Stars etc. YMMV [img]/images/graemlins/smile.gif[/img]

Xanderz 10-27-2007 07:31 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
IIRC "ControlSend, Button2, {SPACE}, ahk_id%dialog_id%" is good for those pesky Party dialogs, while also working on FTP and Stars etc. YMMV [img]/images/graemlins/smile.gif[/img]

[/ QUOTE ]
Excellent, I'll try that for Party.

BTW, I have code working now that reads the player list on Pokers Stars. It can read ~3 tables per second for 6 player tables and ~2 tables per second for 9 player tables. All characters have been mapped except for some of the extended characters (such as ' or ß etc..). Also there is the problem of characters running into each other which have to be recognized as well [img]/images/graemlins/frown.gif[/img]

HighSteaks 10-27-2007 08:36 PM

Re: PokerPad - AHK hotkey script
 
Are we able to change a setting so that Increase/Decrease Bet works in Big Blinds?

_dave_ 10-27-2007 09:09 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]

BTW, I have code working now that reads the player list on Pokers Stars. It can read ~3 tables per second for 6 player tables and ~2 tables per second for 9 player tables. All characters have been mapped except for some of the extended characters (such as ' or ß etc..). Also there is the problem of characters running into each other which have to be recognized as well [img]/images/graemlins/frown.gif[/img]

[/ QUOTE ]

Very interesting [img]/images/graemlins/smile.gif[/img]

I presume you are using you OCR "fingerprint" technique - but have discovered something that gets around whatever problems existed before - I'm sure I read you post somewhere the original plan was for full character map but problems restricted it to digits.. or did I misread somewhere?

What hardware are you achieving this performance on?

And what plans do you imagine would make use of this list of players/tables? or is it just players at this time?

Xanderz 10-27-2007 09:37 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
Are we able to change a setting so that Increase/Decrease Bet works in Big Blinds?

[/ QUOTE ]
It is currently tied to the bet rounding setting. If you set that to big blind, it should increment by 1 big blind.

It will be a separate setting in the future as well as the possibility to have 2 additional hotkeys for increment/decrement that can have the same or different incremental values. For instance, set Page Up / Page Down to increment relatively and Wheel Up / Wheel Down to increment by big blind...

Xanderz 10-27-2007 09:44 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
I presume you are using you OCR "fingerprint" technique - but have discovered something that gets around whatever problems existed before - I'm sure I read you post somewhere the original plan was for full character map but problems restricted it to digits.. or did I misread somewhere?

[/ QUOTE ]
The problem arises when you don't know the size of the font or the size can vary etc.. It is hard to differentiate between 0 and O for instance or v and V. But when you know the size, you can use the width of the character or the height of the character to differentiate between them.. So the OCR is very specific to font/size.

[ QUOTE ]
What hardware are you achieving this performance on?

[/ QUOTE ]
AMD Athlon 64 (single processor), 1GB RAM

[ QUOTE ]
And what plans do you imagine would make use of this list of players/tables? or is it just players at this time?

[/ QUOTE ]
It can read both the table lists and player list as they are both the same font. So anything can be read from that. At first it will just gather a list of all players for certain blind levels and what tables they are sitting at. Other features could be added in the future I suppose.

It could for instance tell you how many players from a predefined list are sitting at each table.

_dave_ 10-27-2007 10:17 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]

The problem arises when you don't know the size of the font or the size can vary etc.. It is hard to differentiate between 0 and O for instance or v and V. But when you know the size, you can use the width of the character or the height of the character to differentiate between them.. So the OCR is very specific to font/size.


[/ QUOTE ]

With the Stars font, there is probably a problem with lower case l, upper case I - they are identical [img]/images/graemlins/frown.gif[/img]

If this is the only issue it shouldnb't be a problem to test both cases unless someone has a screenname of IllllIlllI [img]/images/graemlins/smile.gif[/img]

[ QUOTE ]

AMD Athlon 64 (single processor), 1GB RAM


[/ QUOTE ]

Awesome - so decent performance on a (no offence) fairly modest rig. I presume this is using PrintWindow? or is there another 5x boost to be had?

[ QUOTE ]

It can read both the table lists and player list as they are both the same font. So anything can be read from that. At first it will just gather a list of all players for certain blind levels and what tables they are sitting at. Other features could be added in the future I suppose.

It could for instance tell you how many players from a predefined list are sitting at each table.


[/ QUOTE ]

Just what I was hoping to hear [img]/images/graemlins/smile.gif[/img]

I have lying around a GIU / script I made a year ago or so, sorta similar to SixthSense - but entirely AHK, and no GPL issues this time - the only things I borrowed were the listbox formatting from the AHK forums [img]/images/graemlins/smile.gif[/img]

I never releases it because a) SpadeEye came out with a much more reasonable priced product, b) it still needs some work, and c) obtaining table/player list was fugly and slow [img]/images/graemlins/frown.gif[/img]

Basically given a list of tables/players - it will interrogate PostgreSQL and get stats / rank tables in order of fishiness / whatever users specify.

We should collaborate on this I think [img]/images/graemlins/smile.gif[/img]

dave.

HighSteaks 10-27-2007 10:24 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
[ QUOTE ]
Are we able to change a setting so that Increase/Decrease Bet works in Big Blinds?

[/ QUOTE ]
It is currently tied to the bet rounding setting. If you set that to big blind, it should increment by 1 big blind.

It will be a separate setting in the future as well as the possibility to have 2 additional hotkeys for increment/decrement that can have the same or different incremental values. For instance, set Page Up / Page Down to increment relatively and Wheel Up / Wheel Down to increment by big blind...

[/ QUOTE ]

It's seems that it's only at Everest, regardless of any setting it moves in small blinds, however on Empire it will respond to changing the setting from SB to BB for me.

Xanderz 10-27-2007 11:13 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
With the Stars font, there is probably a problem with lower case l, upper case I - they are identical [img]/images/graemlins/frown.gif[/img]

[/ QUOTE ]
That is correct. Currently they all map to l, but I believe it is possible to count the spaces between other characters to tell if it is l or I - that will take a bit of time, but it is doable.

[ QUOTE ]
Awesome - so decent performance on a (no offence) fairly modest rig. I presume this is using PrintWindow? or is there another 5x boost to be had?

[/ QUOTE ]Yes, it uses the Display_CreateWindowCapture function listed prior in this thread.

[ QUOTE ]
Just what I was hoping to hear [img]/images/graemlins/smile.gif[/img]

I have lying around a GIU / script I made a year ago or so, sorta similar to SixthSense - but entirely AHK, and no GPL issues this time - the only things I borrowed were the listbox formatting from the AHK forums [img]/images/graemlins/smile.gif[/img]

[/ QUOTE ]
Did you mean listbox or listview? I would assume listview would be better since you can sort it according to each column..

Right now I just put them into a treeview as it is easy to expand a table and look at each player and if a player's name is read incorrectly, I open up the mapping file to edit the character mapping...

However, a treeview is not ideal for sorting purposes as you'd have to implement the sort [img]/images/graemlins/frown.gif[/img]


[ QUOTE ]
We should collaborate on this I think [img]/images/graemlins/smile.gif[/img]

[/ QUOTE ]
I am open to this, how should we communicate? Perhaps create a thread on Overcards? Let me know.

Xanderz 10-27-2007 11:17 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
It's seems that it's only at Everest, regardless of any setting it moves in small blinds, however on Empire it will respond to changing the setting from SB to BB for me.

[/ QUOTE ]
Ahh yes, iPoker, Everest and Ongame use the site's default increment/decrement. Mostly laziness on my part [img]/images/graemlins/smile.gif[/img] It is harder to edit the bet boxes on those sites as you have to click the box each time, delete it contents, and then send each digit by a keystroke.. It is doable, so I'll put it on the todo list.

terance 10-29-2007 06:26 AM

Re: PokerPad - AHK hotkey script
 
Would it be possible with Cake Poker support?

Xanderz 10-29-2007 10:24 AM

Re: PokerPad - AHK hotkey script
 
Sure, it appears to be straightforward to implement (though we will see...)

Xanderz 10-29-2007 01:20 PM

Re: PokerPad - AHK hotkey script
 
Here is an image capture AHK script for Everest. Use CTRL + Print Screen to have the script save an image of the call, raise and pot raise buttons when the pot bet hotkeys are entering incorrect results. Then you can send that file to the email in my profile.

http://www.autohotkey.net/~Xander/PokerPad/Capture.zip

Extract and run Capture.ahk.

Note: Capture.ahk and Capture.jar must be in the same directly. Only run Capture.ahk - the AHK script will call the jar (Java archive..) file to do all the image capture / image saving. I don't know how to clip an image or even how to save it to file in AHK so that is why Java is used.

Also, if Capture.ahk is in the the PokerPad directory, then you can have PokerPad auto-load Capture.ahk by going to the auto-load section of the settings.

terance 10-29-2007 04:30 PM

Re: PokerPad - AHK hotkey script
 
Prima would be sweet as well [img]/images/graemlins/smile.gif[/img]

Xanderz 10-29-2007 05:50 PM

Re: PokerPad - AHK hotkey script
 
Well now you are asking for too much...

LOL, just kidding. The only reason I hadn't added Prima was because I couldn't find the Play tables and I don't have real money there. I did discover where they are though about a week ago. [img]/images/graemlins/smile.gif[/img]

Xanderz 10-29-2007 06:29 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
Also, if Capture.ahk is in the the PokerPad directory, then you can have PokerPad auto-load Capture.ahk by going to the auto-load section of the settings.

[/ QUOTE ]
Scratch that... changing auto-load settings was broken in 0.1.7 [img]/images/graemlins/frown.gif[/img]

Xanderz 10-29-2007 06:33 PM

Re: PokerPad - AHK hotkey script
 
And now works again if you redownload v0.1.8 [img]/images/graemlins/smile.gif[/img]

HighSteaks 10-29-2007 08:17 PM

Re: PokerPad - AHK hotkey script
 
When we download a new version can we move the Pokerpad.ini from the previous version into the new folder unless you have made changes and state otherwise or will that not work? With the screenshot, I thought you needed the positions of the buttons on the screen, I will get a shot of the incorrect amounts.


All times are GMT -4. The time now is 11:03 PM.

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