Open Side Menu Go to the Top
Register
New script: PartySNGHelper New script: PartySNGHelper

12-23-2011 , 02:51 PM
Quote:
Originally Posted by thunderbolts
(I meant the BetPot part of PartySNGHelper, if that wasn't clear).

The only other thing that I could see was broken was the Check/Fold function but the code I posted above should deal with the new element IDs.
Ah, did you try using PartyAHKPlanner to resize and layout the tables? That fixes the problem of the numbers in the script all being one out (just tested and check/fold is fine with PartyAHKPlanner running and none of the numbers seem to have changed).

Juk
New script: PartySNGHelper Quote
12-23-2011 , 02:53 PM
Oh, no - I didn't. I don't use PartyAHKPlanner. Perhaps I should! Is it still around somewhere now the wiki's dead?
New script: PartySNGHelper Quote
12-23-2011 , 03:03 PM
Quote:
Originally Posted by thunderbolts
Oh, no - I didn't. I don't use PartyAHKPlanner. Perhaps I should! Is it still around somewhere now the wiki's dead?
It's posted in this thread a few posts back IIRC.

(BTW, don't use the code about - it doesn't work - all AfxWnd90u19 need replacing with AfxWnd90u20 [assuming you using PartyAHKPlanner])

Juk
New script: PartySNGHelper Quote
12-23-2011 , 03:21 PM
This seems to be working OK:
Code:
Push(id, AutoBet=0)
{
  ; Lets set the box to a really big "all-in" value.
  ControlSetText, Edit2, 10000000, ahk_id%id%
  Sleep -1
  Sleep 100
  WinSet, Redraw,, ahk_id%id%

  ; Lets get the amount displayed on the raise button.
  ControlGetText, text, AfxWnd90u20, ahk_id%id%
  StringMid, amount, text, InStr(text, "Raise to ") + 9, InStr(text, " (") - (InStr(text, "Raise to ") + 8) - 1
  amount := RemoveCommaInNumber(amount)

  ; Lets set the box to our actual maX value.
  ControlSetText, Edit2, %amount%, ahk_id%id%
  Sleep -1
  Sleep 100
  WinSet, Redraw,, ahk_id%id%

  ; Do we want to press the raise button too?
  If(AutoBet)
  {
    ; Lets see if we can see the "Raise X (All-In)" button.
    ControlGet, v, Visible, , AfxWnd90u20, ahk_id%id%
    if (v)
    {
      ControlGetText, text, AfxWnd90u20, ahk_id%id%
      IfInString, text, All-In
      {
        ControlFocus, AfxWnd90u20, ahk_id%id%
        Sleep, -1
        ControlClick, AfxWnd90u20, ahk_id%id%
        return
      }
    }

    ; Lets see if we can see the "All-In" button.
    ControlGet, v, Visible, , AfxWnd90u19, ahk_id%id%
    if (v)
    {
      ControlGetText, text, AfxWnd90u19, ahk_id%id%
      IfInString, text, All-In
      {
        ControlFocus, AfxWnd90u19, ahk_id%id%
        Sleep, -1
        ControlClick, AfxWnd90u19, ahk_id%id%
        return
      }
    }

  }

}
Juk
New script: PartySNGHelper Quote
12-23-2011 , 07:38 PM
Tested the above all tonight and it mostly works pre-flop: sometimes it fails and required clicking again.

Post-flop it seems to not work well though and the yellow edit box thing comes back

Will try and take another look tomorrow and see if I can improve the pre-flop reliability.

Juk
New script: PartySNGHelper Quote
12-24-2011 , 11:16 AM
I found a totally different way of doing it now that should work 100%:
Code:
Push(id, AutoBet=0)
{
  SendMessage TBM_SETPOS := 0x405, 1, 10000, msctls_trackbar321, ahk_id%id%
  ControlSend, msctls_trackbar321, {Right}, ahk_id%id%
  Sleep -1
  Sleep 50
  WinSet, Redraw,, ahk_id%id%

  ; Do we want to press the raise button too?
  If(AutoBet)
  {
    ; Lets see if we can see the "Raise X (All-In)" button.
    ControlGet, v, Visible, , AfxWnd90u20, ahk_id%id%
    if (v)
    {
      ControlGetText, text, AfxWnd90u20, ahk_id%id%
      IfInString, text, All-In
      {
        ControlFocus, AfxWnd90u20, ahk_id%id%
        Sleep, -1
        ControlClick, AfxWnd90u20, ahk_id%id%
        return
      }
    }

    ; Lets see if we can see the "All-In" button.
    ControlGet, v, Visible, , AfxWnd90u19, ahk_id%id%
    if (v)
    {
      ControlGetText, text, AfxWnd90u19, ahk_id%id%
      IfInString, text, All-In
      {
        ControlFocus, AfxWnd90u19, ahk_id%id%
        Sleep, -1
        ControlClick, AfxWnd90u19, ahk_id%id%
        return
      }
    }

  }

}
Please report back on how you get on with this as I prolly won't be playing poker again for a few days now.

Juk
New script: PartySNGHelper Quote
12-24-2011 , 11:50 AM


Played a quick 6 table real money session and it didn't fail me once!

Grats and thank you very much!
New script: PartySNGHelper Quote
12-24-2011 , 02:10 PM
Guys, I need the following AHK script (I'm sure it can be combined using the stuff already posted but I have no AHK scripting knowledge sadly.)

I want to be able to check/fold (or click/unclick the check/fold checkbox if it's not my turn) with the right click of the mouse.

And I want to be able to press Num_Enter when I type in a bet to put in the bet / raise (right now I have to press the raise button.)

Any simple scripts to do that? I'm willing to give a small donation for this too.

(Ideally it wouldn't interfere with another script that I have that does the same thing for another site.)
New script: PartySNGHelper Quote
12-25-2011 , 09:11 AM
Quote:
Originally Posted by Freddy777


Played a quick 6 table real money session and it didn't fail me once!

Grats and thank you very much!
Same here! Thx a lot juk!
New script: PartySNGHelper Quote
12-29-2011 , 07:57 PM
Seems to be working OK? I played a longish session tonight using the new code above and it seemed to work fine.

Juk
New script: PartySNGHelper Quote
12-31-2011 , 05:28 AM
No one? Can you at least give me a hint as to where to start? It should be a simple thing for all you AHK experts
New script: PartySNGHelper Quote
12-31-2011 , 06:59 AM
Quote:
Originally Posted by busto23
No one? Can you at least give me a hint as to where to start? It should be a simple thing for all you AHK experts
Poked a little bit more through the thread. There is no where clear where the latest version of this script is. I eventually found the 1.24 version, but that doesn't work.

Right now I'm using the enable keyboard shortcuts and the *extremely* simple autohotkey scripts

Code:
~RButton::^Left
which basically maps the right mouse click with the Ctrl-Left that PP has for Folding. However this doesn't automatically click the Check/Fold or the Check button if available (I still have to click the annoying popup.)

Can I do anything else?
New script: PartySNGHelper Quote
12-31-2011 , 12:36 PM
Quote:
Originally Posted by busto23
Poked a little bit more through the thread. There is no where clear where the latest version of this script is. I eventually found the 1.24 version, but that doesn't work.
Script is in post 300 of this thread. Fix for the push part is in post 331. (replace the old push part)

Script makes you click check/fold or fold in turn, else click check, else click fold. This is exactly what you want right?

Here's that part.

Spoiler:
; Clicks Check/Fold-in-turn or fold-in-turn button if sees it, else clicks check if sees
; it, else clicks fold.
CheckFold(id)
{

; Check/Fold checkbox.
ControlGet, v, Visible, , AfxWnd90u24, ahk_id%id%
if (v)
{
ControlFocus, AfxWnd90u24, ahk_id%id%
Sleep, -1
ControlClick, AfxWnd90u24, ahk_id%id%
return
}

; Fold checkbox.
ControlGet, v, Visible, , AfxWnd90u23, ahk_id%id%
if (v)
{
ControlFocus, AfxWnd90u23, ahk_id%id%
Sleep, -1
ControlClick, AfxWnd90u23, ahk_id%id%
return
}

; Lets see if we can see the check button.
ControlGet, v, Visible, , AfxWnd90u19, ahk_id%id%
if (v)
{
ControlGetText, text, AfxWnd90u19, ahk_id%id%
IfInString, text, Check
{
ControlFocus, AfxWnd90u19, ahk_id%id%
Sleep, -1
ControlClick, AfxWnd90u19, ahk_id%id%
return
}
}

; Lets try for fold then.
ControlGet, v, Visible, , AfxWnd90u18, ahk_id%id%
if (v)
{
ControlFocus, AfxWnd90u18, ahk_id%id%
Sleep, -1
ControlClick, AfxWnd90u18, ahk_id%id%
}

}


Can't help you any further, Jukofyork is the maestro here
New script: PartySNGHelper Quote
12-31-2011 , 03:29 PM
That function you posted doesn't work. I tried it on play money tables and it raises instead of check/folding (LOL!) I don't need the push or any of the bet, autoclick time bank stuff, I just need to be able to check/fold with the right click.
New script: PartySNGHelper Quote
12-31-2011 , 03:44 PM
PLaymoney tables have different parameters then real money because of the extra 'show hand value' thing or whatever, I you change all the 18s in the script to 19 and all the 19s to 20 it probably works at playmoney tables.

Pretty sure that the fact it doesnt work on playmoney tables means it will work on real money tables

gl

Edit: not sure about actual numbers, could also be that the 23 and 24 are not correct. If you search for 'windows spy' in your start menu you can set your mouse curser at the specific button you want to click and you get the afxwind90uXX spot and just make sure that the right number is on the right place in the script.

Last edited by Freddy777; 12-31-2011 at 03:52 PM.
New script: PartySNGHelper Quote
12-31-2011 , 04:08 PM
I think the numbers in that part are out if used without PartyAHKPlanner. See the code for Check/Fold that I posted a few days ago - it should be correct if used in isolation.

Not sure off-hand whether that bit calls upon anything from elsewhere in the script though, and it's NYE so I'm off out.

Juk - even with PartyPlanner the script isn't working perfectly - it's the BetPot bit that doesn't work. They bring up the same problem that Push did originally with this update - so is there an easy solution?

I should say, though, that the rest seems fine for me now - thanks.
New script: PartySNGHelper Quote
12-31-2011 , 04:19 PM
Quote:
Originally Posted by thunderbolts
I think the numbers in that part are out if used without PartyAHKPlanner. See the code for Check/Fold that I posted a few days ago - it should be correct if used in isolation.
I tried isolating just that part from the 1.24 version of this script (stripping everything out, even the GUI.) I have C++ and php programming knowledge, so I think I did manage to isolate that function pretty good, but it didn't work (I'm sure I'm doing something ridiculous / stupid.)

Maybe someone can help me out? Right now I'm using that simple one I posted. I could also go for a script that sends a Ctrl-Shift-Left and then like 20ms later a Ctrl-Left (so tries check/fold first, then tries folding) but I didn't manage to make that work in AHK either

Code:
~Rbutton::
^!Esc
^Esc
Return
(the above gives a compiling error.)
New script: PartySNGHelper Quote
01-01-2012 , 07:22 AM
As I said, the numbers (i.e. button IDs) are out in v1.24 because there have been some updates to the site since then. If you're trying to use that function on its own, see whether you can get this to work instead of lifting it from the script.
New script: PartySNGHelper Quote
01-02-2012 , 01:33 AM
Did you get it to work?

The numbers all changing thing was due to the little trophy icon that Party added Using PartyAHKPlanner to resize the tables seems to fix it, but not really sure why?

I have a new version of the script BTW with quite a lot of small changes and new additions. I didn't post it before because one change seemed to cause the script to lock up if you tried to open a table multiple times using the list, but I think that is mostly fixed now... Will try and post the new script tomorrow.

Juk
New script: PartySNGHelper Quote
01-02-2012 , 08:46 PM
hey jukofyork,
your solution in post #331 , i tried to copy it in my snghelper 1.22 but must have done smth wrong.
what do i have to delete there and witch part of your code to copy ?
New script: PartySNGHelper Quote
01-02-2012 , 09:32 PM
Quote:
Originally Posted by jukofyork
Did you get it to work?

Juk
No, I didn't. I'm using my very basic script to just fold (and click check when I need to.)
New script: PartySNGHelper Quote
02-27-2012 , 10:28 PM
Quote:
Originally Posted by busto23
Guys, I need the following AHK script (I'm sure it can be combined using the stuff already posted but I have no AHK scripting knowledge sadly.)

And I want to be able to press Num_Enter when I type in a bet to put in the bet / raise (right now I have to press the raise button.)
If u want a separate script from PartySNGHelper ull need to pm me and i will cut it for u

Here's solution for betting.
This part u should add right after "Hotkey, ~WheelDown, , P2 return"
Spoiler:
; Pressing Enter will click Raise button
#IfWinActive ahk_class #32770
Enter::
NumPadEnter::
if (EnableMouseAndKBStuff)
{
Raise(getid())
}
return
#IfWinActive

And then somewhere at the bottom where all the functions located
Spoiler:
Raise(id)
{
; Lets see if we can see the "Raise X " button.
ControlGet, v, Visible, , AfxWnd90u20, ahk_id%id%
if (v)
{
ControlGetText, text, AfxWnd90u20, ahk_id%id%
IfInString, text, Raise
{
ControlFocus, AfxWnd90u20, ahk_id%id%
Sleep, -1
ControlClick, AfxWnd90u20, ahk_id%id%
return
}
}

; Lets see if we can see the "All-In" button.
ControlGet, v, Visible, , AfxWnd90u19, ahk_id%id%
if (v)
{
ControlGetText, text, AfxWnd90u19, ahk_id%id%
IfInString, text, All-In
{
ControlFocus, AfxWnd90u19, ahk_id%id%
Sleep, -1
ControlClick, AfxWnd90u19, ahk_id%id%
return
}
}
}

And if its what u want Ill definitively accept some donation.

Last edited by luckabuse; 02-27-2012 at 10:34 PM.
New script: PartySNGHelper Quote
02-27-2012 , 10:31 PM
I was playing Starcraft 2 yesterday and pressed F10 for the menu.
Guess what It doesnt work.
So my question to the Juk is:
You are sending commands to any window. Why not to check if its Partys tables?

BTW thanks! Awesome script!
New script: PartySNGHelper Quote

      
m