Open Side Menu Go to the Top
Register
BetPot AHK (Stars/Party/iPoker/FTP/Crypto/Prima) BetPot AHK (Stars/Party/iPoker/FTP/Crypto/Prima)

03-22-2012 , 08:07 AM
this work for prima?
BetPot AHK (Stars/Party/iPoker/FTP/Crypto/Prima) Quote
04-19-2012 , 06:37 AM
Please could someone upload a working script to a file upload site and post link, the links in latest pages of this thread do not work. thanks
BetPot AHK (Stars/Party/iPoker/FTP/Crypto/Prima) Quote
07-02-2012 , 06:17 PM
Quote:
Originally Posted by Nitrub
this work for prima?
Here's a little script I made for myself.

First let's explain how exactly it works ...



When you click right or middle button some checks are performed (in order not to click in the wrong window or at the wrong time):

- if it's not (real money) Microgaming table - no action is performed i.e. window does it's usual right (or middle) button click

- if it is valid table it checks for edit box where you can type the amount to bet (white color) -> meaning it is your turn to act ... if not, no action is performed

But if it's right table and your turn to act then right or middle mouse buttons perform a click at the marked positions - no more, no less. As you already know you can go Menu->Options and manually reconfigure client buttons between min and max to your liking. There you can also activate mouse wheel increase/decrease. In my case I've set btn2 and btn3 where right and middle will click respectively like this:

preflop: btn2=3xbb ; btn3=pot
postflop: btn2=2/3x ; btn3=pot

Not perfect but gets the job done.


THE SCRIPT (standard ahk, you know the drill):

Code:
;***************************************************************************************
; BET POT - Microgaming
; By Sheetah @ 2+2
; July 2012.
;
; Big thanks to Dave, Juk, probably some other 2+2 coders and Autohotkey.forums folks
; for not minding me stealing some snippets here and there to make this work
;***************************************************************************************



;***************************************************************************************
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
CoordMode, Pixel, Relative



;***************************************************************************************
;***************************************************************************************
; ******************************* PARAMETERS *****************************************
; If you want something to edit/fine tune this is where you should look.
; All coordintaes are 'percentage' coords based on client (not ahk native window)
; width/height - if you don't know what it means better don't touch anything.
; Don't forget to backup before changing the code (easy to forget).

; RB-right mouse button; 
; MB-middle button;
; TB-text box (where you type amount to bet - used to determine if it's
; our turn to act)

MouseOverPop := false ; if true => table will be put to front if mouse over
xRB := 0.4
yRB := 0.97
xMB := 0.47
yMB := 0.97
xTB := 0.69
yTB := 0.93

;***************************************************************************************
;***************************************************************************************
;***************************************************************************************



;******************************* GLOBAL VARIABLES **********************************

w_client := 0
h_client := 0


if(MouseOverPop == true)
	SetTimer, WatchCursor, 100



; ******************************* TEH HOTKEYS **************************************

~RButton::
	MouseGetPos,,,hwnd
	if(ValidateTableAction(hwnd) != true)
		return
	ClientClick(hwnd,xRB,yRB)
return


~MButton::
	MouseGetPos,,,hwnd
	if(ValidateTableAction(hwnd) != true)
		return
	ClientClick(hwnd,xMB,yMB)
return



; ****************************** MY FUNCTIONS ***************************************

ClientClick(hwnd,x,y){
	global w_client,h_client
	xc := Round(x*w_client)
	yc := Round(y*h_client)
	PostLeftClick(xc,yc,hwnd) 
}

ValidateTable(hwnd){
	WinGetTitle,wtitle,ahk_id%hwnd%
	WinGetClass,wclass,ahk_id%hwnd% 
	IfNotInString, wtitle, Real Money
		return false
	if(wclass == "GFX_INT_DLG_WINDOW_GAME")
		return true
	else
		return false
}

ValidateTableAction(hwnd){
	global w_client,h_client,xTB,yTB
	if(ValidateTable(hwnd) != true)
		return false
	GetClientSize(hwnd,w_client,h_client)
	xp := Round(xTB*w_client)
	yp := Round(yTB*h_client)
	ClientToWin(hwnd,xp,yp)
	PixelGetColor,pxlclr,xp,yp
	if(pxlclr == 0xFFFFFF)
		return true
	return false
}

WatchCursor:
    OnMM()
return


OnMM()
{
	MouseGetPos,,,hwnd
	if(ValidateTable(hwnd) == true)
	WinActivate,ahk_id%hwnd%
}


; *********************** RANDOM USEFUL FUNCTIONS (shamelessly stolen) **************

;Juks rocks
PostLeftClick(x, y, table_id, activate=1) {
; ### JUK: Send the down left click, then the mouse-up messages.
; NOTE: This is relative to the top left of the client area and NOT the top left of the
;       window (ie: It *doesn't* include the title-bar like AHK's MouseClick does!!!).
If activate
 WinActivate, ahk_id%table_id%
PostMessage, 0x201, 0x0001, ((y<<16)^x), , ahk_id%table_id%
PostMessage, 0x202 , 0, ((y<<16)^x), , ahk_id%table_id%
}

GetClientSize(hwnd, ByRef w, ByRef h)
{
    VarSetCapacity(rc, 16)
    DllCall("GetClientRect", "uint", hwnd, "uint", &rc)
    w := NumGet(rc, 8, "int")
    h := NumGet(rc, 12, "int")
}


ClientToWin(hwnd, ByRef x, ByRef y)
{
    VarSetCapacity(pt, 8)
    NumPut(x, pt, 0)
    NumPut(y, pt, 4)
    DllCall("ClientToScreen", "uint", hwnd, "uint", &pt)
    WinGetPos, wx, wy,,, ahk_id %hwnd%
    x := NumGet(pt, 0, "int") - wx
    y := NumGet(pt, 4, "int") - wy
}

(in case I forget to check this thread give me a PM reminder )
BetPot AHK (Stars/Party/iPoker/FTP/Crypto/Prima) Quote
09-09-2012 , 11:35 AM
hello,

are there any chances this script will work for 888 platform in the future? (or do you know a script for 888?)
BetPot AHK (Stars/Party/iPoker/FTP/Crypto/Prima) Quote
09-10-2012 , 09:05 PM
10.33%
BetPot AHK (Stars/Party/iPoker/FTP/Crypto/Prima) Quote
09-12-2012 , 10:53 AM
I know this probably isn't the right thread but does anyone have AHK that works for TruePoker? The main thing I need is increase bet by 1bb, I could specifically get by with that one feature (obviously I would like a few more basic things but they aren't a necessity) if someone wants to PM me I will pay you to do this for me and give me a quick rundown on how to use AHK for it if necessary.
BetPot AHK (Stars/Party/iPoker/FTP/Crypto/Prima) Quote
11-12-2012 , 08:05 PM
Anyone have this script working on Stars? Many updates ago it broke and I never got around to fixing it
BetPot AHK (Stars/Party/iPoker/FTP/Crypto/Prima) Quote
11-13-2012 , 03:21 AM
Quote:
Originally Posted by PatInTheHat
Anyone have this script working on Stars? Many updates ago it broke and I never got around to fixing it
you need this for stars? they've got pretty good buttons you can configure yourself and mouse wheel for changing betsize by bb/sb. what would this script do more than that?
BetPot AHK (Stars/Party/iPoker/FTP/Crypto/Prima) Quote
11-13-2012 , 01:53 PM
Quote:
Originally Posted by Lessu
you need this for stars? they've got pretty good buttons you can configure yourself and mouse wheel for changing betsize by bb/sb. what would this script do more than that?
Discovered this after I posted. Oops
BetPot AHK (Stars/Party/iPoker/FTP/Crypto/Prima) Quote
11-15-2012 , 08:38 PM
Hi,

does anyone have AHK that works for ipoker and for ongame?
BetPot AHK (Stars/Party/iPoker/FTP/Crypto/Prima) Quote
11-25-2012 , 04:33 PM
Quote:
Originally Posted by pokeriguess
I know this probably isn't the right thread but does anyone have AHK that works for TruePoker? The main thing I need is increase bet by 1bb, I could specifically get by with that one feature (obviously I would like a few more basic things but they aren't a necessity) if someone wants to PM me I will pay you to do this for me and give me a quick rundown on how to use AHK for it if necessary.
Same needed for me.. need a betpot program for Winning poker network/ true poker. Will pay $100-$200 depening on how good it is.
BetPot AHK (Stars/Party/iPoker/FTP/Crypto/Prima) Quote
12-13-2012 , 01:01 AM
anyone have working betpot for party now that you cant use freephg?
BetPot AHK (Stars/Party/iPoker/FTP/Crypto/Prima) Quote
12-13-2012 , 05:02 AM
fphg was essential ever since party stopped putting proper dealer text in the chatbox

It's prob possible to make an alternate version, depends if the control showing pot size on the table and the call button are still readable with AHK, I believe they were a few years ago.FPHG sure made things easy though, so I never went further than that at the time. I'll take a look at some point soon
BetPot AHK (Stars/Party/iPoker/FTP/Crypto/Prima) Quote
12-14-2012 , 05:36 PM
Quote:
Originally Posted by _dave_
I'll take a look at some point soon
Thanks in advance, Id really appreciate it!

FPHG not working anymore/being banned singlehandedly kills most of my scripts. Do you maybe think there is a possible workaround?

Regards, Show`nTell
BetPot AHK (Stars/Party/iPoker/FTP/Crypto/Prima) Quote
12-20-2012 , 06:30 PM
can someone tell me what exactly this program does? Can you:
1) assign default bet sizes by street (pre, F, T, R) as a percentage of pot?
2) change bet size based based on preflop position?
3) assign hotkeys to click the various fold / call / raise buttons?
if yes to any of the above, in which where in the ahf file can I edit to change the settings? To a lay person, all I see is a wall of text.

Is there any kind of documentation available? Are there any other settings/variables I may need to change for ipoker? Thanks.
BetPot AHK (Stars/Party/iPoker/FTP/Crypto/Prima) Quote
12-21-2012 , 09:57 AM
Quote:
Originally Posted by Mutant
can someone tell me what exactly this program does?
1- yes
2- no
3- yes

Is there any kind of documentation available?
no, oh, and btw, reading the code is a pain in the ass since it's not well structured

Are there any other settings/variables I may need to change for ipoker?
i remember chatbox reading was obsolete so you'll have to do that again or either figure out other way to make the whole stuff work
BetPot AHK (Stars/Party/iPoker/FTP/Crypto/Prima) Quote
12-24-2012 , 03:59 PM
does anyone have working script for bwin?
BetPot AHK (Stars/Party/iPoker/FTP/Crypto/Prima) Quote
03-18-2013 , 11:24 AM
Quote:
Originally Posted by coelho10
Hi,

does anyone have AHK that works for ipoker and for ongame?
I need it too
BetPot AHK (Stars/Party/iPoker/FTP/Crypto/Prima) Quote
08-06-2013 , 08:57 PM
does this work for bovada?
BetPot AHK (Stars/Party/iPoker/FTP/Crypto/Prima) Quote
08-25-2013 , 01:31 AM
Quote:
Originally Posted by Sp-litas
I need it too
+2
BetPot AHK (Stars/Party/iPoker/FTP/Crypto/Prima) Quote
08-25-2013 , 08:29 PM
Does anyone have AHK for 888 ?
BetPot AHK (Stars/Party/iPoker/FTP/Crypto/Prima) Quote
09-05-2013 , 07:51 AM
anyone can make the fixes for party's update for this script, please?
BetPot AHK (Stars/Party/iPoker/FTP/Crypto/Prima) Quote
09-06-2013 , 10:46 AM
Quote:
Originally Posted by Lessu
anyone can make the fixes for party's update for this script, please?
A nice poster helped me via PM to fix it

find this line in your script:

Quote:
WinGet, partypid, pid, PartyPoker.com: Poker Lobby
replace it with:

Quote:
WinGet, partypid, pid, partypoker: Poker Lobby - Good luck ahk_class #32770
BetPot AHK (Stars/Party/iPoker/FTP/Crypto/Prima) Quote
10-09-2013 , 12:19 PM
anybody know where I can get this?
BetPot AHK (Stars/Party/iPoker/FTP/Crypto/Prima) Quote
10-18-2013 , 03:31 PM
Here is what I have sofar (PartyPoker, NLHE cashgame). I simply took code from the original BetPot and adapted it, so thanks to all the contributors!

Wheel: change in bb
ctrl+Wheel: change in sb
left MouseButton+WheelDown: 1/2pot
left MouseButton+WheelUp: 2/3pot
right MouseButton+WheelDown: 3/4pot
right MouseButton+WheelUp: pot

Option to move MouseCursor to BetButton automatically.
Option to "Act on active table", instead of table under cursor.

Code:
#NoEnv  
#SingleInstance force
#MaxHotkeysPerInterval 300|
SetTitleMatchMode, 2

BS_OnActiveTable=0
BS_moveMouse=1

#if (MouseIsOver("NL  Hold ahk_exe PartyGaming.exe"))
~WheelUp::AlterAmount(getid(),"up")
~WheelDown::AlterAmount(getid(),"down")

~^WheelUp::AlterAmount(getid(),"up", "1", "sb")
^~WheelDown::AlterAmount(getid(),"down", "1", "sb")
  
~LButton & ~WheelDown::AlterAmount(getid(),"up", "0.5", "pot")
~LButton & ~WheelUp::AlterAmount(getid(),"up", "0.66", "pot")
  
~RButton & ~WheelDown::AlterAmount(getid(),"up", "0.75", "pot")
~RButton & ~WheelUp::AlterAmount(getid(),"up", "1", "pot")
  
return

AlterAmount(id, dir="", frac=1, unit="")
{ global party_uses_commas_for_decimals, BS_moveMouse
  IfWinExist, ahk_id%id% 
  { WinGetTitle, title, ahk_id%id%
    if InStr(title, "/")
      StringTrimLeft, bb, title, InStr(title, "/", true, 1)
    
    if InStr(bb, ",")
    {  StringReplace, bb, bb, `,,., All 
       party_uses_commas_for_decimals:=1
    }  else party_uses_commas_for_decimals:=0

    StringReplace,bb,bb,$,,1
    sb := sb(bb) 
  } else {
    Send {%A_ThisHotkey%}
    return
  }
  If (unit = "" or unit = "bb")
    unit := bb
  else if (unit = "sb")
    unit := sb
  else if (unit = "pot")
  { pot := 0
    call := 0
    hero_bet := 0
    street := "pre"
    hero_position := ""
    open := 0
    max := 10000000
    IfWinExist, ahk_id%id% 
    { ControlGetText, pot, Static16, ahk_id %id%
      StringReplace,pot,pot,$,,1
      StringTrimLeft, pot, pot, % InStr(pot,": ")
      if (party_uses_commas_for_decimals)
        StringReplace, pot, pot, `,,., All   
      unit:=pot
    }
  }

  amount:=unit*frac 
  if (unit = pot)
    amount-=bb
  ;traytip,,  % "Pot: " . pot . "`r`n" . "frac: " . frac . "`r`n" . "unit: " . unit  . "`r`n" . "amount: " . amount
  if (dir="down")
    amount:=amount-(2*amount)
  
  IfWinExist, ahk_id%id% 
  { ControlGetText, t, Edit2, ahk_id%id%
    if (party_uses_commas_for_decimals)
      StringReplace, t, t, `,,., All
    else StringReplace, t, t, `,,, All
      
    t+=amount
    if (t < 0)
      t := 0
    transform, t, Round, t, 2
    
    if (party_uses_commas_for_decimals)
      StringReplace, t, t, .,`,, All
  
    ControlSetText, Edit2, %t%, ahk_id%id%
    if (BS_moveMouse)
    { ControlGet, vis, visible, , AfxWnd90u19, ahk_id%id% 
      if (vis)
      { IfWinNotActive, ahk_id%id%
          WinActivate, ahk_id%id% 
        WinWaitActive, ahk_id%id% ,,3
        If ErrorLevel
          return
        ControlGetPos, x, y, , , AfxWnd90u19, ahk_id%id%
        MouseMove, x + 15, y + 10
      }
    }
  }
}

sb(bb) 
{ If bb = .25
    sb := .10
  else if bb = 15
    sb = 10
  else if bb = 0.05
    sb = 0.02
  else
    sb := bb/2
  if (sb > 1)
    sb := Round(sb, 0)
  else sb := Round(sb, 2)
  return sb
}

getid()
{ global BS_OnActiveTable
  id:= ""
  if (BS_OnActiveTable = 1) 
    WinGet,id,,A
  else MouseGetPos, , , id
  return id
}
MouseIsOver(WinTitle) 
{ MouseGetPos,,, id
  return WinExist(WinTitle . " ahk_id " . id)
}

Hope that helps somebody.

Also, if anyone could help with "street", "hero_position" and "open", please do so

Sorry for the lack of comments in the script. If anyone is interested, Ill change that.

Cheers

Last edited by Show`nTell; 10-18-2013 at 03:50 PM.
BetPot AHK (Stars/Party/iPoker/FTP/Crypto/Prima) Quote

      
m