Sign in to follow this  
Followers 0
wilee

i need help with my poker bot

7 posts in this topic

hi i have a working poker bot that works on party poker , holdem inspector is the brains and tell autoit what to do heres the script.........

; Pre-initialization : Set Name of Table

Global $tablename = "Play Money734348"

; Initialize Buttons

; These are the button names you might have to change these for different poker clients

$FoldButton = "AfxWnd4217"

$CheckButton = "AfxWnd4218"

$CallButton = "AfxWnd4218"

$BetButton = "AfxWnd4219"

$RaiseButton = "AfxWnd4219"

; Set Coordinate mode to relative to window

AutoItSetOption ( "PixelCoordMode", 0 )

; Wait for the window of table to become active

WinWaitActive($tablename)

; Main Loop

While WinExists($tablename)

Sleep(251);

$FoldVisible = ControlCommand($tablename, "", $FoldButton, "IsVisible", "");

$RaiseVisible = ControlCommand($tablename, "", $RaiseButton, "IsVisible", "");

if $FoldVisible = 1 then

Sleep(Random(1244, 2652))

$action = GetAction();

if $action = 1 then

; Fold/Check

; if we can check for free, then do that instead of folding

if StringInStr(ControlGetText($tablename, "", $CheckButton), "Check") = 1 then

ControlClick($tablename, "", $CheckButton);

else

ControlClick($tablename, "", $FoldButton);

endif

elseif $action = 2 then

; Check/Call

ControlClick($tablename, "", $CallButton);

elseif $action = 3 then

if StringInStr(ControlGetText($tablename, "", $CallButton), "Call") = 1 then

ControlClick($tablename, "", $CallButton);

else

ControlClick($tablename, "", $BetButton);

endif

elseif $action = 4 then

if StringInStr(ControlGetText($tablename, "", $RaiseButton), "Raise") = 1 then

ControlClick($tablename, "", $RaiseButton);

else

ControlClick($tablename, "", $CallButton);

endif

endif

endif

Wend

; Poker Inspector Actions

Func GetAction()

WinActivate ("Connected to """ & $tablename);

; red - fold

$color = PixelGetColor (338, 62);

if $color = 16711680 then

;MsgBox(0, "Debug", "Red Fold")

WinActivate($tablename);

return 1;

endif

;yellow

$color = PixelGetColor (338, 74);

if $color = 16776960 then

;MsgBox(0, "Debug", "Yellow Check")

WinActivate($tablename);

return 2;

endif

; blue

$color = PixelGetColor (338, 86);

if $color = 65535 then

;MsgBox(0, "Debug", "Blue Check")

WinActivate($tablename);

return 3;

endif

; green

$color = PixelGetColor (338, 97);

if $color = 65280 then

;MsgBox(0, "Debug", "Green Raise")

WinActivate($tablename);

return 4;

endif

;MsgBox(0, "Debug", "Got None")

WinActivate($tablename);

return 1;

EndFunc

how do i change the underlind parts to work on diffrent sites? i imagine that these are the ids of the buttons from the site so if i change these to another id would it work ?? and where do i find these from the poker client i want my bot to play on ??

hope this makes sense

thanks

Share this post


Link to post
Share on other sites



hi, i am doing a similar sort of thing but i am having trouble getting the button controlid-

can you tell me how you managed to get this:

$CheckButton = "AfxWnd4218"

i am trying to get button id's from betfair poker, can anyone help please

Share this post


Link to post
Share on other sites

Online poker botting is not only unfair and ruins the game, but is illegal

pursue this topic, and you WILL be reported

Share this post


Link to post
Share on other sites

hi, i am doing a similar sort of thing but i am having trouble getting the button controlid-

can you tell me how you managed to get this:

$CheckButton = "AfxWnd4218"

i am trying to get button id's from betfair poker, can anyone help please

Assuming that you have AutoIt installed on your computer load up

Au3Info.exe and use it to get the control ID of each button on

betfair.

Share this post


Link to post
Share on other sites

Online poker botting is not only unfair and ruins the game, but is illegal

pursue this topic, and you WILL be reported

Really? Can you direct me to where it states "using a computer controlled automation device" is illegal?

Here's a link to get you started... http://www.law.cornell.edu/uscode/


Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0