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)
-   -   AHK Bet Pot Script for iPoker (http://archives1.twoplustwo.com/showthread.php?t=441366)

butcha 07-02-2007 05:52 PM

AHK Bet Pot Script for iPoker
 
<u>AHK Bet Pot Script for iPoker</u> by butcha
----------------------------------------
Includes mouse wheel functionality
Supports both full view and mini view
----------------------------------------
Latest version is available at:
http://hem.passagen.se/perg/iPokerBetPot.txt


INSTRUCTIONS:
----------------------------------------
1. Check the 'User Settings'-section below, so that WheelUnit and WhiteBetBox is ok. (Defaults should be ok for most.)
2. Rename the script file so that it has the file extension .ahk.
3. Start the script.
4. Right click the mouse button anywhere on a iPoker table, where it's your turn to act, to set the betting box to a pot bet.
5. Scroll the mouse wheel up or down to change the betting amount.


CONFIRMED SUPPORTED SKINS:
----------------------------------------
- CD Poker
- Expekt Poker
- Noble Poker
- NoiQ Poker
- Paddy Power Poker
- Titan Poker
Feel free to add to this list by contacting me.


HOW DOES THE SCRIPT WORK?
----------------------------------------
The short version is that it reads the pot size from the text on the table and it reads the call- and raisesizes from the text on the Call- and Raise-button respectively.
If you are interested in a more technical explanation go to line 520 in this script.


TROUBLESHOOTING:
----------------------------------------
Since the script reads the text off the screen it is extremely important that the table you want to act on has both the pot size-text and the Call- and Raise-buttons fully visible.
This includes overlay statistics programs like PokerAce Hud and GameTime+.

The next thing to note is that I haven't tested this script with every iPoker skin out there. It should work with all skins that writes out the pot size, call size and raise size with one color only (although possibly a different one for each), no anti-aliasing and with the font Tahoma 11 pts.
It also works on skins that use Tahoma, 12 pts bold to write out the call or raise size on the buttons in full view, which I believe most skins do.

If you have changed the appearance of your iPoker table by modding the graphics-files the script should still be in effect, but this is not 100%.

If you still have no success the best thing you can do is take a screenshot of the table in a situation where you would expect it to work.
Save the image in a format without compression, like BMP or PNG. Then upload the screenshot somewhere and give me the link. I will not accept file transfers over Msn, but you can contact me for help.

One last note. If the iPoker client ever gets redesigned, this script will stop working.


KNOWN BUGS:
----------------------------------------
- If you move the mouse wheel very fast there might be strange behavior


CONTACT ME:
----------------------------------------
2+2 Forums Name: butcha
All comments are welcome.

(Note: This exact text is also available at the top of the script.)

K䲰䮥n 07-02-2007 05:54 PM

Re: AHK Bet Pot Script
 
Works like a dream on noiqpoker. [img]/images/graemlins/heart.gif[/img]

_dave_ 07-02-2007 06:23 PM

Re: AHK Bet Pot Script
 
Wow,

That is some stunningly clever code!

Not techniques I have seen used in AHKs before, and potentially very useful in other scenarios too.

Will probably have to read it again several times to understand properly, and it's already on my todo list but I now have another reason to get me an iPoker account [img]/images/graemlins/smile.gif[/img]

Again, awesome works.

Many thanks for sharing.

dave.

Scaramouche 07-02-2007 07:11 PM

Re: AHK Bet Pot Script
 
Thank you, but the mouse wheel isn't working on noblepoker.

butcha 07-02-2007 07:45 PM

Re: AHK Bet Pot Script
 
Thanks a bunch _dave_

Feels great coming from someone whome I have gotten so much inspiration from!
If there is anything unclear about the code I wouldn't mind explaining it further.

/butcha

butcha 07-02-2007 07:51 PM

Re: AHK Bet Pot Script
 
[ QUOTE ]
Thank you, but the mouse wheel isn't working on noblepoker.

[/ QUOTE ]
Hi Scaramouche,
This seems very odd. I have it working great with Noble Poker here.
Some questions to try and work it out:
1. Is the pot betting working ok? Always with the correct amounts?
2. Have you done anything to change the look of your table?
3. Do you have the possibilty to test the script at your computer with another iPoker skin?
4. Can you take a screenshot of the table and show me?

/butcha

PaulG 07-02-2007 10:48 PM

Re: AHK Bet Pot Script for iPoker
 
Thank you for the effort on this one.

Works perfectly on my Titan Poker (including Mouse Wheel).
But does not work on my Betfred Poker. Both my Titan and BetFred have the iPoker table and card mods. I tried this on play money to start with.

The value always goes to the chat box, regardless of the setting of WhiteBetBox.

Any ideas?

Screen shot here:
http://users.tpg.com.au/adsl5xqs/betfred.bmp

Scaramouche 07-03-2007 03:23 AM

Re: AHK Bet Pot Script
 
[ QUOTE ]
[ QUOTE ]
Thank you, but the mouse wheel isn't working on noblepoker.

[/ QUOTE ]
Hi Scaramouche,
This seems very odd. I have it working great with Noble Poker here.
Some questions to try and work it out:
1. Is the pot betting working ok? Always with the correct amounts?
2. Have you done anything to change the look of your table?
3. Do you have the possibilty to test the script at your computer with another iPoker skin?
4. Can you take a screenshot of the table and show me?

/butcha

[/ QUOTE ]
Hi,
The bet pot is working and I didn"t do anything to change the look of my table.
I can't test on another Ipoker skin and the noble poker table is standard.

GLmaestro 07-03-2007 05:37 AM

Re: AHK Bet Pot Script
 
Doesn't work for me on Noble either. Occasionally (like once every 25 hands) the right click will work, but the scroll never works at all.

butcha 07-03-2007 07:52 AM

Re: AHK Bet Pot Script for iPoker
 
Hi PaulG and thanks for trying out my script!

I have located the problem thanks to your screenshot.
The problem is that the buttons and the betting box is more to the left on BetFred than other skins.
I am going to write a solution to this, but I can't promise it will be done today.
What takes time is checking so that a change that makes BetFred work isn't messing up all the other skins.

In the mean time you can simply do this:
1. Search for the number 597 in the script. (It's only in the script once.)
2. Change the number to 584.

Now this won't fix the problem entirely since it still won't read the call and raise amounts, but at least you shouldn't be getting the extra text in the chat-box.

/butcha

butcha 07-03-2007 07:58 AM

Re: AHK Bet Pot Script
 
Hi again Scaramouce and hi GLmaestro!

I am still very confused when it comes to Noble Poker.
The fact that the Bet pot-function is working ok but not the Wheel is somewhat unexpected since they both use the same code segment.
Most likely there is some mix up with the buttons in cash games on Noble Poker. I have not tested the script with real money on Noble Poker. I suppose you could test it at Play money or in a tournament to see if it's ok there.
If anyone of you could provide a screenshot of the table when it doesn't work it would help out tremendously.
Thanks!

/butcha

PaulG 07-03-2007 08:30 AM

Re: AHK Bet Pot Script for iPoker
 
Hi Buctha,

Changing the number to 584 fixed the problem (but as you stated the call and raise amounts are not included).

Looking forward to a fix.

Thank you

deflY 07-03-2007 11:33 AM

Re: AHK Bet Pot Script for iPoker
 
very nice - thanks

yeknod 07-03-2007 12:16 PM

Re: AHK Bet Pot Script for iPoker
 
Thanks for doing this butcha!

Unfortunately for me this doesnt work at KiwiPoker:
- the wheel doesnt work at all
- the rightclick works but results in a bet equal to whats in the pot and not to a potraise (e.g. $1/$2 blinds rightclick would result in a $3 bet...)

I dowloaded Titan to make sure its not some other problem on my end and there everything works perfect

Here is a screenshot just after i rightclicked (for Kiwipoker):

Screenshot

Scaramouche 07-03-2007 06:03 PM

Re: AHK Bet Pot Script for iPoker
 
I had a screenshot with a noble table but I don't know how to share it. Please help.

fyraplusgrader 07-03-2007 07:01 PM

Re: AHK Bet Pot Script for iPoker
 
Thanks for doing this butcha!

Unfortunately for me this doesnt work at Expekt:
- the wheel doesnt work at all
- the rightclick works about 95% of the time but results in a bet equal to whats in the pot and not to a potraise (e.g. $1/$2 blinds rightclick would result in a $3 bet...)

butcha 07-03-2007 08:02 PM

Re: AHK Bet Pot Script for iPoker
 
Hello everyone!
Thanks a lot for the interest you show in this script.
Now I have been a little bit busy today, so I haven't been able to do a lot of support work on this.
Hopefully I can at least fix the sites that I have gotten screenshots from tomorrow.

You can upload your screenshots at a lot of free sites. Just google for free image upload.
ImageShack is one of the biggest sites for this service, but I'm sure someone else here can recommend something better.

Just be patient a little longer [img]/images/graemlins/smile.gif[/img]

/butcha

Scaramouche 07-04-2007 05:32 AM

Re: AHK Bet Pot Script for iPoker
 
Screenshot for Noble http://img247.imageshack.us/img247/7035/nob2kv7.jpg]http://www.imageshack.us/[/url]

spiff21 07-04-2007 05:47 AM

Re: AHK Bet Pot Script for iPoker
 
Here is screen shot of when I'm right clicking to make the script calculate a pot size raise.
bet pot

GeleHaas 07-04-2007 08:06 AM

Re: AHK Bet Pot Script for iPoker
 
Hi Butcha,

I just downloaded it for Kiwi Poker, I like it, makes things a lot easier, Thanks a lot !!! But unfortunately I also have the same problems as Yeknod:
Unfortunately for me this doesnt work at KiwiPoker:
- the wheel doesnt work at all
- the rightclick works but results in a bet equal to whats in the pot and not to a potraise (e.g. $1/$2 blinds rightclick would result in a $3 bet...)

butcha 07-04-2007 10:54 AM

Re: AHK Bet Pot Script for iPoker
 
Hey people!

Luckily for me the fix for Noble Poker, Kiwi Poker and Expekt Poker was very easy.
The problem was that the dollar-sign was 1 pixel higher in the client than what I would have expect from the look of the Tahoma font. They might be using some other font or another version than I have.

When it comes to BetFred I got a little bit lazy, so instead of rewriting a LOT of code in the script, which possibly would have messed up other skins, I decided to add another 'User setting' at the top of the script that says ButtonsOnLeft.
Set this option to 1 if you play on a skin that has the Fold,Call and Raise-button as well as the Betting box more to the left, like BetFred. If you don't know if your skin has the buttons to the left or not, then try first with this setting at 0 (zero). If this doesn't work you can try setting it to 1.
Remember that this setting MUST be 0 (zero) for the script to work with Noble, Cd Poker, Expekt, Kiwi, Titan and Paddy power.

I hope this didn't get too complicated.

The new version is up at the same location:
http://hem.passagen.se/perg/iPokerBetPot.txt

Keep posting any problems you're having!

/butcha

GeleHaas 07-04-2007 11:47 AM

Re: AHK Bet Pot Script for iPoker
 
Thanks you very much for the update ! I will test it later this evening.

Scaramouche 07-04-2007 02:00 PM

Re: AHK Bet Pot Script for iPoker
 
Thank you, great work.

Sigurd 07-04-2007 03:25 PM

Re: AHK Bet Pot Script for iPoker
 
I have just found this, and can only say THANK YOU!

I do, however, have some trouble configuring it.
With the version currently on overcards.com (0.2o)I would just go to

~RButton::
Pot(getid(),"1 0.66 0.66 0.66", "smallblind", "ssnl", 0)

and make some changes, but it seems to be strangely absent..

Also, you can add that at NoIQ poker you should use the following setting:
ButtonsOnLeft := 0

NorthView 07-04-2007 05:19 PM

Re: AHK Bet Pot Script for iPoker
 
Thanks a lot for this - nice code! It works a treat on BetFred.

yeknod 07-04-2007 05:21 PM

Re: AHK Bet Pot Script for iPoker
 
played a session today with it at KiwiPoker and now everything works fine. (Very very rarely some amount got send to the chatwindow like 3 times in 60 minutes playing 4tables, so no worries about that that)

Thanks again butcha for doing this makes playing so much easier.

butcha 07-04-2007 06:08 PM

Re: AHK Bet Pot Script for iPoker
 
Hi guys!
Your appreciation is very welcome! Thank YOU!

I have no plans to add a lot of new features before I start playing a lot on iPoker myself, which probably won't happen very soon.
I understand what you mean Sigurd, to be able to bet different % of the pot preflop, on the flop, turn and river. I can definitely (hehe) see the point of such a function, but like I said, I can't promise it will happen anytime soon. You may of course modify the script yourself to add such functionality and I wouldn't mind giving tips for it if you know AHK-programming already.

I will still be giving support here though!

/butcha

GeleHaas 07-04-2007 07:53 PM

Re: AHK Bet Pot Script for iPoker
 
I just finished my evening session and it works perfect now ! Just clicking and scrolling, I multitable a lot and this makes things so much easier for me. Thanks again for this script !! [img]/images/graemlins/laugh.gif[/img]

NorthView 07-05-2007 03:44 AM

Re: AHK Bet Pot Script for iPoker
 
[ QUOTE ]
I have just found this, and can only say THANK YOU!

I do, however, have some trouble configuring it.
With the version currently on overcards.com (0.2o)I would just go to

~RButton::
Pot(getid(),"1 0.66 0.66 0.66", "smallblind", "ssnl", 0)

and make some changes, but it seems to be strangely absent..

Also, you can add that at NoIQ poker you should use the following setting:
ButtonsOnLeft := 0

[/ QUOTE ]
I've already made a simple mod to round up the pot bet amount, and I'll have a go at this tonight.

Sigurd 07-05-2007 05:50 AM

Re: AHK Bet Pot Script for iPoker
 
[ QUOTE ]
[ QUOTE ]
I have just found this, and can only say THANK YOU!

I do, however, have some trouble configuring it.
With the version currently on overcards.com (0.2o)I would just go to

~RButton::
Pot(getid(),"1 0.66 0.66 0.66", "smallblind", "ssnl", 0)

and make some changes, but it seems to be strangely absent..

Also, you can add that at NoIQ poker you should use the following setting:
ButtonsOnLeft := 0

[/ QUOTE ]
I've already made a simple mod to round up the pot bet amount, and I'll have a go at this tonight.

[/ QUOTE ]

Awesome!

michaelantoi 07-05-2007 05:57 AM

Re: AHK Bet Pot Script for iPoker
 
Wow thanks so much butcha, I will try this out soon. Thanks for fixing the Noble issues so quickly.

NorthView 07-05-2007 02:03 PM

Re: AHK Bet Pot Script for iPoker
 
butcha, thanks again for this - how would you go about determining the current street without reading the chat box?

tpa 07-06-2007 09:47 AM

Re: AHK Bet Pot Script for iPoker
 
Working very nicely with Chilipoker. Thanks!

runstop 07-06-2007 10:47 AM

Re: AHK Bet Pot Script for iPoker
 

These *Matrix* functions are neat.. Great idea when you have to use the pixel information. Good job.

butcha 07-06-2007 08:26 PM

Re: AHK Bet Pot Script for iPoker
 
Again, thanks for the appreciations!
It makes all the work you put into something feel very joyful.

Northview:
I haven't come up with any solution that I think would work with every skin.
One easy solution to make it work for a particular skin and/or card mod would be to find 3 small areas, one for the flop, one for the turn and one for the river, and then search these areas for a color that is only available if there is a card in that spot.
You would be using the PixelSearch-command for this. An explanation for this command is available in the AutohotKey Help.

/butcha

K䲰䮥n 07-07-2007 03:26 AM

Re: AHK Bet Pot Script for iPoker
 
btw just noticed that his works with tournies, too. awesome.

HalvSame 07-08-2007 08:10 AM

Re: AHK Bet Pot Script for iPoker
 
Just got around to reading the script code, awesome stuff! The ocr techniques used makes me see autoreloaders, lobby scrapers, action highlighters and other cool stuff on the horizon.

zyrrth 07-08-2007 08:31 AM

Re: AHK Bet Pot Script for iPoker
 
Is there a way to mod it so it bets 4bb+1 pf and 2/3 pot on turn/river?

major 07-11-2007 07:51 AM

Re: AHK Bet Pot Script for iPoker
 
Hi

i dont get it.

What do i do with the text i see on your website. i am completly lost.

I dont see a button with USER SETTINGS at CD POKER.

i want a bet pot script..... [img]/images/graemlins/frown.gif[/img]

Can i get a step by step introduction for dummies?

ty

major 07-11-2007 08:43 AM

Re: AHK Bet Pot Script for iPoker
 
now its works BUT must i click every time into the chatbox? otherwise i will not read the bet amount......cdpoker....


mmhhhhhhhhh


All times are GMT -4. The time now is 08:25 AM.

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