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-02-2007 12:34 AM

PokerPad - AHK hotkey script
 
Here is the current hotkey layout (sorry, but it is only changeable through manual editing of the AHK script at the moment)
http://img488.imageshack.us/img488/8830/pokerpadoy0.png
More information and download is available here: Download

It is currently only implemented for Full Tilt. Other sites may be included later if there is a demand for it.

Edit: I should mention that it has no problems with custom skins or varying game window sizes.

terance 10-02-2007 08:24 PM

Re: PokerPad - AHK hotkey script
 
k this is pretty awesome (and would love to see it for iPoker, Party etc)

two suggestions without having tried it. (because less is more)

1. dont see the need for NOT reloading to max (shortstackers can use their mouse)

2. dont see the need for two all in functions, just one where you have to confirm by pressing "bet" should be fine

[x] this is not too important

BEAT: just bought a logitech PS2 like controller because i couldn't get TablePlanner+reload script to play nice

rine 10-02-2007 08:45 PM

Re: PokerPad - AHK hotkey script
 
gogogo for prima

Xanderz 10-02-2007 09:50 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
k this is pretty awesome (and would love to see it for iPoker, Party etc)

[/ QUOTE ]Once I am finished with the Poker Stars implementation, I will look into iPoker and Party. Could possibly be sometime this week.

[ QUOTE ]
1. dont see the need for NOT reloading to max (shortstackers can use their mouse)

[/ QUOTE ]You can download the script version and delete any hotkeys you do not want. Search for the "Hotkey Definitions" header and it will take you right to all the hotkey definitions. Note that there really isn't a need to do this because it doesn't really do anything. If you need the key for another application, it will still work in that application because the keys are only "caught" when a table window is the active window.

[ QUOTE ]
2. dont see the need for two all in functions, just one where you have to confirm by pressing "bet" should be fine

[/ QUOTE ]It is there for serious multi-tablers. That way if you know you want to go all in, you can hit the All In*** hotkey and go to another table as opposed to waiting for the action to come to you first. Again, you can just delete the hotkey from the source if you don't want it.

Which makes me think of something... probably would be best if there was a way to cancel the All In hotkey! It already has a safe-guard as being a CTRL+Key hotkey, but I could still invision the unintended pressing of it. I will include that in the next version.

[ QUOTE ]
BEAT: just bought a logitech PS2 like controller because i couldn't get TablePlanner+reload script to play nice

[/ QUOTE ]Can you explain what the request is here? Sorry I don't understand.

jonboy321 10-03-2007 01:14 AM

Re: PokerPad - AHK hotkey script
 
This looks awesome man. Numpad + trackball mouse = l33t multitabling.

Cosign the ipoker request would be much appreciated.

terance 10-03-2007 08:49 AM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
[ QUOTE ]
BEAT: just bought a logitech PS2 like controller because i couldn't get TablePlanner+reload script to play nice

[/ QUOTE ]Can you explain what the request is here? Sorry I don't understand.

[/ QUOTE ]

This wasn't a request. I just recently bought a logitech dual action controller to use with this script. But now that you've come up with such a great script I probably wont be needing it.

Thanks for all your detailed answers, and i eagerly await any eventually extra poker clients [img]/images/graemlins/smile.gif[/img]

LangeErnst 10-03-2007 10:04 AM

Re: PokerPad - AHK hotkey script
 
Loooong thread....quick question:

Does HM support Ipoker mini-table HUD?

hallo! 10-03-2007 10:08 AM

Re: PokerPad - AHK hotkey script
 
this is awesome

but not so good for notebook keyboards :/

terance 10-03-2007 12:17 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
Loooong thread....quick question:

[/ QUOTE ] not really
[ QUOTE ]

Does HM support Ipoker mini-table HUD?

[/ QUOTE ]

HM ?

[ QUOTE ]
this is awesome

but not so good for notebook keyboards :/

[/ QUOTE ]
true, best to buy an extra USB keyboard

Xanderz 10-03-2007 04:26 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
but not so good for notebook keyboards :/

[/ QUOTE ]
Yes, I agree it wouldn't be ideal to use with a notebook. If anyone wants to provide their input as to which actions should go with which keys on a notebook, there could be an option to switch between the standard keyboard layout and a notebook keyboard layout.

Xanderz 10-03-2007 04:39 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
I just recently bought a logitech dual action controller to use with this script.

[/ QUOTE ]Ahh, well I can't really help with any controller issues as I don't have one to work with.

Xanderz 10-04-2007 09:00 PM

Re: PokerPad - AHK hotkey script
 
The Poker Stars implementation is now complete. All hotkeys are supported for Poker Stars except the All In*** hotkey.

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

Xanderz 10-04-2007 10:25 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
(and would love to see it for iPoker, Party etc)


[/ QUOTE ]I will do iPoker first as there is also another request for it. General question though, are the buttons in the same place and the same size for all sites? I only have Titan.

jonboy321 10-04-2007 11:06 PM

Re: PokerPad - AHK hotkey script
 
I think they are because the ipoker mod program works on all of them (it's called ibolide)

2 questions I had also, are all the keys re-assignable to what you want them to be and will this work the same on a usb numpad? I have one for my laptop.

Xanderz 10-05-2007 12:11 AM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
are all the keys re-assignable to what you want them to be

[/ QUOTE ]In version 0.02, the keys can be reassigned by modifying the Hotkey_Init() function in the source code.
A GUI is planned for a future release to make hotkey reassignments much more easy and will allow reassignments with the compiled version.

[ QUOTE ]
and will this work the same on a usb numpad? I have one for my laptop.

[/ QUOTE ]I do not know. It would be best to try out the hotkeys at a play money table, first to make sure they do what they say they are suppose to do and to make sure your keyboard is supported.
As far as I know, keyboards are pretty standard so checking if your keyboard is supported shouldn't be an issue.

_dave_ 10-05-2007 12:58 AM

Re: PokerPad - AHK hotkey script
 
@ Xanderz:

A few thoughts, far too tired to comment properly at this time of day. Hopefully will elaborate tomorrow.

a) Impressive Stars OCR code. Don't fully comprehend it yet myself, but looks solid. Good job.

b) Use of GoSub... WTF?

c) GPL - not so sure - be careful not to try and subvert any of the Free code already posted here, which leads to:

d) Are you aware that several Free (or not quite free) softwares/scripts to do this functions are available on this board already? While your code is very interesting and I certainly would not wish to discourage a new and obviously competant poster - I would like to gently suggest time may be better spent coding programs not already provided, or if you would rather, contributing to the already existing Free projects?

e) Your pot calculations when > or < 1xpot are incorrect on Full Tilt - I've not checked Stars yet, as I don't understand it yet.

You are doing pot * 0.75, or in my terms pot * fraction, for example.

Correct would be ((pot + call + hero_bet)* (fraction) )+ call

I believe - although I think hero_bet is irrelevant i.e. 0 for FullTilt and PokerStars.

dave.

_dave_ 10-05-2007 01:00 AM

Re: PokerPad - AHK hotkey script
 
@ other posters in this thread:

Did you not know you can do exactly this for many many sites using TableNavigator and BetPot, and have been able to for some quite large time period measured in Years?

jonboy321 10-05-2007 01:15 AM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
@ other posters in this thread:

Did you not know you can do exactly this for many many sites using TableNavigator and BetPot, and have been able to for some quite large time period measured in Years?

[/ QUOTE ]

Yea but this looks like a great all in one for all the necessities (reloads, bet pot and shortcuts like fold to any bet etc). The less scripts I have to have running the better personally. Navigator will still be useful in combination with this though for getting attention to the active table.

Xanderz 10-05-2007 01:24 AM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
a) Impressive Stars OCR code. Don't fully comprehend it yet myself, but looks solid. Good job.

[/ QUOTE ]Thanks. It is based off of code I wrote in Java quite some time ago. I was originally calling the Java code through a Run command but found that there was considerable lag loading java everytime. (I don't know how to load a Java app and leave it running while communicating back and forth between AHK and Java). Instead of doing that, I figured 100% AHK code would be better anyway.
[ QUOTE ]
b) Use of GoSub... WTF?

[/ QUOTE ]For speed.
[ QUOTE ]
d) Are you aware that several Free (or not quite free) softwares/scripts to do this functions are available on this board already?

[/ QUOTE ]They aren't configurable to my liking [img]/images/graemlins/laugh.gif[/img] Seriously though, I believe there are a few hotkeys that aren't available in other scripts, or I haven't seen them anyway. I've been using my own hotkeys for some time, just recently posted them online to share with friends, figured I'd share with strangers too.
[ QUOTE ]
I would like to gently suggest time may be better spent coding programs not already provided, or if you would rather, contributing to the already existing Free projects?

[/ QUOTE ]I will gladly help with anything. You can also find me at the AHK forums.

[ QUOTE ]
Your pot calculations when > or < 1xpot are incorrect on Full Tilt - I've not checked Stars yet, as I don't understand it yet.

You are doing pot * 0.75, or in my terms pot * fraction, for example.
Correct would be ((pot + call + hero_bet)* (fraction) )+ call

[/ QUOTE ]In the full tilt function, the pot should be what you are calling pot + call + hero_bet I believe. Anyway, I will check up on the correct calculation tomorrow.

Xanderz 10-05-2007 01:51 AM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
c) GPL - not so sure - be careful not to try and subvert any of the Free code already posted here, which leads to:

[/ QUOTE ] I missed this the first time. I am not sure what you mean here? Everything in my code has been developed independent of any other code. I use the license so that the code can't be put into proprietary software.

Xanderz 10-06-2007 06:37 PM

Re: PokerPad - AHK hotkey script
 
Now supports IPoker, Poker Stars and Full Tilt. Note that for IPoker the pot bets are only supported for the mini tables.

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

Absolute Poker is next scheduled to be supported. I am not aware of any AHK scripts for Absolute Poker, so Party and Prima will be delayed.

_dave_ 10-06-2007 08:17 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
[ QUOTE ]
c) GPL - not so sure - be careful not to try and subvert any of the Free code already posted here, which leads to:

[/ QUOTE ] I missed this the first time. I am not sure what you mean here? Everything in my code has been developed independent of any other code. I use the license so that the code can't be put into proprietary software.

[/ QUOTE ]

Indeed - but it means more than that. AFAIK, it means any code can not be put in to anything that is not GPL - which may or may not be proprietary.

You have at least got me thinking about licensing for the first time in ~5 years [img]/images/graemlins/smile.gif[/img]

Note I am generally a big fan of the GPL / FSF - just not entirely sure it is ideal for scripting... But I also don't see a better alternative after a quick browse.

Thing is, I could not GPL BetPot at this point - not without consent from everyone that has ever suggested modifications... which is quite a list now.

But it is currently unlicensed - so I guess I have to do something...

dave.

_dave_ 10-06-2007 08:20 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]

I am not aware of any AHK scripts for Absolute Poker


[/ QUOTE ]

I have BetPot code for absolute - incomplete, however. It is tricky to read/write from the bet box (your OCR stuff should handle this easily enough) - But I put it on hold while focusing on other scripts...

There is good reason no-one in their right mind should be playing on Absolute until someone figures out what went on / it will not happen again.

dave.

_dave_ 10-06-2007 08:26 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]

They aren't configurable to my liking


[/ QUOTE ]

I'm gonna optimistically take that to mean you didn't try BetPot / TableNavigator [img]/images/graemlins/smile.gif[/img]

[ QUOTE ]

You can also find me at the AHK forums.


[/ QUOTE ]

Your name is different!!! I found you only after reading you 0.3 code with the link to the AHK forums.

Anyhow, welcome to these forums [img]/images/graemlins/smile.gif[/img]

Do not take my tone as offensive - it is not meant to be - we certainly value new poker scripters round these parts - I do have my reservations on the GPL in this circumstance, however... it would seem to be I can eiter GPL my own stuff - or actively monitor yours to make sure in anything new I write I am doing *nothing* in the same way that you are. Am I reading this wrong?

dave.

Xanderz 10-06-2007 09:00 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
I'm gonna optimistically take that to mean you didn't try BetPot / TableNavigator [img]/images/graemlins/smile.gif[/img]

[/ QUOTE ]Ahh, I didn't mean it like that. I like to enter bets manually sometimes rather than using a pot percentage and AFAIK there aren't scripts that will redirect numpad digits to the bet box when the bet box isn't focused. That was the main reason I wrote my own script.
[ QUOTE ]
Your name is different!!!

[/ QUOTE ]Ahh, Xander was taken. I hope it isn't an active poster that I may be confused with.
[ QUOTE ]
Anyhow, welcome to these forums [img]/images/graemlins/smile.gif[/img]

[/ QUOTE ]Thanks.
[ QUOTE ]
I do have my reservations on the GPL in this circumstance, however... it would seem to be I can eiter GPL my own stuff - or actively monitor yours to make sure in anything new I write I am doing *nothing* in the same way that you are. Am I reading this wrong?

[/ QUOTE ]Licensing isn't the same as patenting [img]/images/graemlins/smile.gif[/img] You can write similar code. The license is just for whole-sale copying and making modifications.

Xanderz 10-07-2007 10:18 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
I have BetPot code for absolute - incomplete, however.

[/ QUOTE ]It appears we find ourselves in similar situations (incomplete code). Not only is it practically impossible to predict the placement of the pot size text, it also seems to get partially covered up for 6 and 2 seat tables on the river for the smallest table size [img]/images/graemlins/shocked.gif[/img]

Thus Absolute is on hold indefinately for now. Perhaps when/if their reputation is restored I'll revisit supporting the site.

_dave_ 10-07-2007 10:43 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]

Not only is it practically impossible to predict the placement of the pot size text, it also seems to get partially covered up for 6 and 2 seat tables on the river for the smallest table size


[/ QUOTE ]

Yeah, it is at times ridiculous.

I think I had it at some point - but then the BBV threads exploded and I just thought "lol, back burner for now".

Still need to clear the deposit bonus I have there after trying it out, so maybe I'll have a crack again sometime... I can't play there without getting super paranoid now though [img]/images/graemlins/frown.gif[/img]

dave.

_dave_ 10-08-2007 12:02 AM

Re: PokerPad - AHK hotkey script
 
Xanders - is it within the GPL to edit your script (and publish as GPL obv.) so that it just runs in the background and responds with a numerical value to a SendMessage of screen co-ordinates (from a non-GPL script) to scan? I think it would be?

[ QUOTE ]

I was originally calling the Java code through a Run command but found that there was considerable lag loading java everytime. (I don't know how to load a Java app and leave it running while communicating back and forth between AHK and Java).


[/ QUOTE ]

SendMessage?

[ QUOTE ]

Instead of doing that, I figured 100% AHK code would be better anyway.

[/ QUOTE ]

100% agree [img]/images/graemlins/smile.gif[/img]

Xanderz 10-08-2007 12:29 AM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
Xanders - is it within the GPL to edit your script (and publish as GPL obv.) so that it just runs in the background and responds with a numerical value to a SendMessage of screen co-ordinates (from a non-GPL script) to scan? I think it would be?

[/ QUOTE ]Not sure how SendMessage communicates between scripts, I thought it was just to send messages to native controls. Either way, feel free to use the ODR_ functions however you want. They are published for general use: http://www.autohotkey.com/forum/topic24222.html

_dave_ 10-08-2007 12:38 AM

Re: PokerPad - AHK hotkey script
 
Awesome, TYVM [img]/images/graemlins/smile.gif[/img]

SendMessage / PostMessage are probably one of the most fantastic features of AHK - If you are unfamiliar with them (I am at best noob myself) they are well worth spending a few days learning.

Basically you can use SendMessage to communicate / call functions in other scripts / processes. PostMessage is similar, but only in the outgoing direction.

An axample would be as above - I run a #persistent script containing your OCR functions, with an OnMessage function, that returns the value from the OCR function.

The script wanting to OCR something fires a SendMessage to the OCR script, and recieves response from OCR script.


That is probably not very clear [img]/images/graemlins/frown.gif[/img]

A decent example is the way BetPot can SendMessage TableNavigator for the ahk_id of the currently highlighted table - that is done with the TableNav function in BetPot and the OnMessage 0x5555(I think) function in tableNavigator.

Very useful feature, allows AHKs to communicate with other AHKs / probably any other app [img]/images/graemlins/smile.gif[/img]

EDIT: Sendmessage is pretty much the only method for inter-script communication - and relies upon the existance of an OnMessage handler function in the receiving script - unless the sent message is low-numbered enough to be a standard Windows message.

dave.

terance 10-08-2007 06:54 AM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
@ other posters in this thread:

Did you not know you can do exactly this for many many sites using TableNavigator and BetPot, and have been able to for some quite large time period measured in Years?

[/ QUOTE ]

i've recently tangled with these scripts, and something has always been a problem (reload script doesnt work with the other ones etc). So this all-in-one script is most welcome [img]/images/graemlins/smile.gif[/img]

mbeess 10-08-2007 09:08 AM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
There is good reason no-one in their right mind should be playing on Absolute until someone figures out what went on / it will not happen again.

[/ QUOTE ]

What reason?

Xanderz 10-08-2007 02:36 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
What reason?

[/ QUOTE ]People believe there has been cheating going on there.

Xanderz 10-08-2007 02:55 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
i've recently tangled with these scripts, and something has always been a problem (reload script doesnt work with the other ones etc). So this all-in-one script is most welcome [img]/images/graemlins/smile.gif[/img]

[/ QUOTE ]
I am sure problems are bound to arise with my script LOL.

Also, I don't think I am going to be able to support Party Poker. Their software is woefully unusuable for me [img]/images/graemlins/mad.gif[/img] I don't have real money on there so the banners are just annoying not to mention that they cover up most of the playing table at the most inopportune times!

butcha 10-08-2007 03:02 PM

Re: PokerPad - AHK hotkey script
 
OMG what a jerk I am.. I forgot to say what GREAT work this is....
Great work Xander!

I look forward to exchanging ideas some day!

/butcha

Xanderz 10-08-2007 04:21 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
That is probably not very clear [img]/images/graemlins/frown.gif[/img]

[/ QUOTE ]Clear enough, thanks, I didn't know that.

[ QUOTE ]
A decent example is the way BetPot can SendMessage TableNavigator for the ahk_id of the currently highlighted table - that is done with the TableNav function in BetPot and the OnMessage 0x5555(I think) function in tableNavigator.

[/ QUOTE ]Hmmm, how do you determine a function number (0x5555)?

Xanderz 10-08-2007 04:26 PM

Re: PokerPad - AHK hotkey script
 
[ QUOTE ]
OMG what a jerk I am.. I forgot to say what GREAT work this is....
Great work Xander!

I look forward to exchanging ideas some day!

/butcha

[/ QUOTE ]
I hope I didn't miss any other message from you, or are you saying you just forgot to post? Anyway, thanks for the compliment - but don't be afraid to critique as well. I always welcome suggestions.

butcha 10-08-2007 05:14 PM

Re: PokerPad - AHK hotkey script
 
No no, you didn't miss anything [img]/images/graemlins/laugh.gif[/img]

I am working around the clock on the 2nd version of my iPoker-script, but once it's out I promise I'll put your script under the microscope!

/b to the a, butcha

Xanderz 10-08-2007 09:33 PM

Re: PokerPad - AHK hotkey script
 
I added support for Pot Bets for iPoker large tables. (I am blind as a bat and didn't see the pot size on the large table view before) There was also a bug fix for sit in/out all tables - it was doing the opposite for iPoker tables.

And as a bonus, there are a few new hotkeys. Ctrl+Shift+Up to sit in/out current table only. The Pause key to tile tables for all sites (Full Tilt, Poker Stars, iPoker). It can tile up to 16 (!) tables on a single monitor. Not suggesting you should try playing 16 tables tho [img]/images/graemlins/shocked.gif[/img] Also, added Numpad Enter hotkey for iPoker only to focus and clear the bet box. This is automatically done when typing on the numpad with num lock on for Full Tilt and Poker Stars, so there is no need for that hotkey for those sites.

Also there is now a comprehensive list of all hotkeys in tabular format at the download page: http://www.autohotkey.net/~Xander/PokerPad/

_dave_ 10-08-2007 09:44 PM

Re: PokerPad - AHK hotkey script
 
Nice work [img]/images/graemlins/smile.gif[/img]

Unfortunately (fortunately?) I had a few beers tonight - and got some inspiration then obsessed with making a crazy "table rotation" script as per the other thread... nothing worth posting yet tho , and now I need sleep [img]/images/graemlins/smile.gif[/img]

[ QUOTE ]

Hmmm, how do you determine a function number (0x5555)?


[/ QUOTE ]

You just make them up [img]/images/graemlins/smile.gif[/img]
Windows reserves the lower few hundred (maybe thousand) for internal messages (WM_PAINT, MoMOUSEMOVE etc.) - details on the AHK online help SendMessage page - but there are 65K of them available for use IIRC. So long as you know what to send / expect, it does not matter which number you use. 0x5555 is just what Roland picked for the TableNav function.


All times are GMT -4. The time now is 12:13 AM.

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