Open Side Menu Go to the Top
Register
FTCash - free script for FullTilt cash players. FTCash - free script for FullTilt cash players.

01-04-2011 , 11:07 AM
I have the same problem, and yeah I use amodified deck as well. Can someone tell me howthe code calculates the preflop raise?
FTCash - free script for FullTilt cash players. Quote
01-04-2011 , 08:29 PM
I love my deck. I finally created something that is easy on the eyes. I also would love to know how to alter the script rather than change decks.
FTCash - free script for FullTilt cash players. Quote
01-05-2011 , 02:18 AM
NoChance, you can try changing "0xffffff" (white color script looks for) to the your deck font color within the "GetStreetFT(" function.
FTCash - free script for FullTilt cash players. Quote
01-05-2011 , 10:29 AM
Thank you. I'll give this a try after work. Unfortunately I use four different colors (one for each suit). Hopefully an 'OR' statement will work to look for one of the four colors.
FTCash - free script for FullTilt cash players. Quote
01-05-2011 , 02:41 PM
Okay, I know how to read this stuff. I just don't know how to write it. I found the GetStreetFT section and this seems to be the line I need to edit where applicable on flop, turn, and river:

pixels:=GetPixelCount(x1, y1, x2, y2, 0xffffff,amount)

Now, these are the four colors I am using for my cards:
2ca02cff
aa8800ff
a02c2cff
2c5aa0ff

Does anyone know how to edit this line to check for one of the four colors? Would it be something like this?

pixels:=GetPixelCount(x1, y1, x2, y2, (2ca02cff or aa8800ff or a02c2cff or 2c5aa0ff),amount)
FTCash - free script for FullTilt cash players. Quote
01-05-2011 , 03:00 PM
NoChance, it can't be done that easily.
Add these lines to the beginning of the GetPixelCount( function
Code:
color1:=2ca02cff
color2:=aa8800ff
color3:=a02c2cff
color4:=2c5aa0ff
replace this line within the same function
Code:
If comparecolors(c,color,v)=1
with
Code:
If (comparecolors(c,color1,v)=1) || (comparecolors(c,color2,v)=1) || (comparecolors(c,color3,v)=1) || (comparecolors(c,color4,v)=1)
FTCash - free script for FullTilt cash players. Quote
01-05-2011 , 03:33 PM
Max 1mums,

I could not find this function in the script anywhere: If comparecolors(c,color,v)=1. I'm also mot sure where to put the colors. This is what I have now for that section:

GetStreetFT(id,amount)
{
global DwmIsEnabled
if !DwmIsEnabled
CoordMode, Pixel, Screen
street := "flop"
x1 := 378
y1 := 214
x2 := 414
y2 := 260
color1 := 2ca02cff
color2 := aa8800ff
color3 := a02c2cff
color4 := 2c5aa0ff
if !DwmIsEnabled
{
relStarsScreenPoint(id, x1, y1)
relStarsScreenPoint(id, x2, y2)
pixels:=GetPixelCount(x1, y1, x2, y2, 0xffffff,amount)
}
else
{
relStarsWindowPoint(id, x1, y1)
relStarsWindowPoint(id, x2, y2)
pixels:=GetPixelCount(x1, y1, x2, y2, 0xffffff,amount,"",id)
}
If !pixels
{
street := "pre"
return street
}
x1 := 485
y1 := 214
x2 := 520
y2 := 260
color1 := 2ca02cff
color2 := aa8800ff
color3 := a02c2cff
color4 := 2c5aa0ff
if !DwmIsEnabled
{
relStarsScreenPoint(id, x1, y1)
relStarsScreenPoint(id, x2, y2)
pixels:=GetPixelCount(x1, y1, x2, y2, 0xffffff,amount)
}
else
{
relStarsWindowPoint(id, x1, y1)
relStarsWindowPoint(id, x2, y2)
pixels:=GetPixelCount(x1, y1, x2, y2, 0xffffff,amount,"",id)
}

If pixels
{
street := "river"
return street
}
x1 := 431
y1 := 214
x2 := 461
y2 := 260
color1 := 2ca02cff
color2 := aa8800ff
color3 := a02c2cff
color4 := 2c5aa0ff
if !DwmIsEnabled
{
relStarsScreenPoint(id, x1, y1)
relStarsScreenPoint(id, x2, y2)
pixels:=GetPixelCount(x1, y1, x2, y2, 0xffffff,amount)
}
else
{
relStarsWindowPoint(id, x1, y1)
relStarsWindowPoint(id, x2, y2)
pixels:=GetPixelCount(x1, y1, x2, y2, 0xffffff,amount,"",id)
}
If pixels
{
street := "turn"
}
return street
}
FTCash - free script for FullTilt cash players. Quote
01-05-2011 , 03:40 PM
NoChance,
Quote:
Originally Posted by Max1mums
Add these lines to the beginning of the GetPixelCount( function
eg
Code:
GetPixelCount(x1, y1, x2, y2, color,amount, options="",id=0)
color1:=2ca02cff
color2:=aa8800ff
color3:=a02c2cff
color4:=2c5aa0ff
FTCash - free script for FullTilt cash players. Quote
01-05-2011 , 04:15 PM
Hi Maximums

I am using your script, unfortunately it's not working properly for me. When I press hotkey for pot, it makes much larger bet than specified in setup. For exampe if I press pot2 hotkey is makes a bet of 3/4 instead of 0.5
FTCash - free script for FullTilt cash players. Quote
01-05-2011 , 04:16 PM
naTpuk85, use "Jump to click point" slider option in FT client if you play on small sized tables.
FTCash - free script for FullTilt cash players. Quote
01-05-2011 , 05:00 PM
Thanks. Will try this out. Cant play for 15 minutes due to tiltbreaker.

Could this also happen because of:

1. I use Logitech G-13 keyboard which has joystick which is binded to betpot functions of ftp cash
2. I use moded deckon ftp
FTCash - free script for FullTilt cash players. Quote
01-05-2011 , 06:02 PM
for some reason the street is not recognized
FTCash - free script for FullTilt cash players. Quote
01-05-2011 , 07:20 PM
is is ok that hero bet and posiition is always empty while debuging?
FTCash - free script for FullTilt cash players. Quote
01-06-2011 , 03:09 AM
naTpuk85, script looks for white pixels to detect cards so it won't read street correctly if your cards lack of them.
FTCash - free script for FullTilt cash players. Quote
01-06-2011 , 09:24 AM
pixels:=GetPixelCount(x1, y1, x2, y2, 0x000001,amount,"",id,Scan0,Stride)

0x000001 is not a white color . Its almost black. I changed script a bit to compare them to FFFFFF and now street detection works.

I am still interest in:

is it ok that hero bet and posiition is always empty while debuging?
FTCash - free script for FullTilt cash players. Quote
01-06-2011 , 09:34 AM
naTpuk85, just sb and bb position should be detected (if there isn't raise in front).
FTCash - free script for FullTilt cash players. Quote
01-06-2011 , 10:38 AM
Maximums I have also modified your other script

Code:
#noenv
#SingleInstance, Force

SetWinDelay,-1

SysGet, xbord, 32
SysGet, cap, 4
return

;рыба
^1::
Noteselect(2, 8)
return

;слабый игрок
^2::
Noteselect(1, 6)
return

;регуляр
^3::
Noteselect(8, 4)
return

;слабый регуляр
^4::
Noteselect(6, 2)
return

;агрессивный регуляр
^5::
Noteselect(7, 3)
return

;шорт-стек
^6::
Noteselect(5, 12)
return

;тайтер
^7::
Noteselect(4, 11)
return

;неизвестный
^8::
Noteselect(3, 15)
return

;
;^9::
;Noteselect(9)
;return

;убрать нотц
^0::
Noteselect(3, 15)
return

;-----------------------------------------------------------------------------------------------------
Noteselect(numberPS,numberFT)
{
mousegetpos,,,winid
wingetclass,class,ahk_id%winid%
if class=PokerStarsTableFrameClass
{
dclick(winid)
ColorNoteControlClick(numberPS)
}
if class=QWidget
{
dclick(winid)
dclick(winid)
sleep, 50
ColorNoteControlClickFT(numberFT)
}
}
;-----------------------------------------------------------------------------------------------------
dclick(winid)
{
global xbord,cap
coordmode,mouse,relative
mousegetpos,x,y
PostLeftDoubleClick(x-xbord, y-xbord-cap, winid, 1)
}
return
;-----------------------------------------------------------------------------------------------------
ColorNoteControlClick(id)
{
winget,winid,id,A
ControlGet, v, Visible,,PokerStarsNoteSelectorClass1, ahk_id %Winid%
if v
{
BlockInput, MouseMove
wingetpos,x1,y1,w1,h1,ahk_id%winid%
coordmode,mouse,screen
mousegetpos,x2,y2
ControlGetPos, x, y, w, h, %Edit1%, ahk_id %Winid%
DllCall("SetCursorPos", int, x+x1+10, int, y+y1+10)
send {Click left}
DllCall("SetCursorPos", int, x+x1+10, int, y+y1+10+id*17)
send {Click left}
DllCall("SetCursorPos", int, x2, int, y2)
BlockInput, MouseMoveOff
}
}
return
;-----------------------------------------------------------------------------------------------------
ColorNoteControlClickFT(id)
{
global xbord,cap
winget,winid,id,Player Note ahk_class QWidget
if winid > 0
{
winactivate,ahk_id%winid%
BlockInput, MouseMove
wingetpos,x1,y1,w1,h1,ahk_id%winid%
coordmode,mouse,screen
mousegetpos,x2,y2
DllCall("SetCursorPos", int, x1+115, int, y1+45)
send {Click left}
DllCall("SetCursorPos", int, x1+115, int, y1+45+id*13)
sleep, 300
send {Click left}
sleep, 300
send {Click left}
DllCall("SetCursorPos", int, x1+55, int, y1+185)
;sleep, 550
send {Click left}
sleep, 150
DllCall("SetCursorPos", int, x2, int, y2)
BlockInput, MouseMoveOff
}
}
return
;-----------------------------------------------------------------------------------------------------
PostLeftDoubleClick(x, y, table_id, activate=1) {
If activate
 WinActivate, ahk_id%table_id%
critical,6
PostMessage, 0x203 , 0, ((y<<16)^x), , ahk_id%table_id%
PostMessage, 0x202 , 0, ((y<<16)^x), , ahk_id%table_id%
critical,off
sleep,-1
}
return
;------------------
It works but its a littly buggy if I have lots of programs running. Do u think there is any other way to make it more stable instead of incresing sleep delay?
FTCash - free script for FullTilt cash players. Quote
01-06-2011 , 11:55 AM
naTpuk85, just FT part is the problem i suppose? Try this version.

Code:
#noenv
#SingleInstance, Force

SetWinDelay,-1

SysGet, xbord, 32
SysGet, cap, 4
return

;рыба
^1::
Noteselect(2, 8)
return

;слабый игрок
^2::
Noteselect(1, 6)
return

;регуляр
^3::
Noteselect(8, 4)
return

;слабый регуляр
^4::
Noteselect(6, 2)
return

;агрессивный регуляр
^5::
Noteselect(7, 3)
return

;шорт-стек
^6::
Noteselect(5, 12)
return

;тайтер
^7::
Noteselect(4, 11)
return

;неизвестный
^8::
Noteselect(3, 15)
return

;
;^9::
;Noteselect(9)
;return

;убрать нотц
^0::
Noteselect(3, 15)
return

;-----------------------------------------------------------------------------------------------------
Noteselect(numberPS,numberFT)
{
mousegetpos,,,winid
wingetclass,class,ahk_id%winid%
if class=PokerStarsTableFrameClass
{
dclick(winid)
ColorNoteControlClick(numberPS)
}
if class=QWidget
{
dclick(winid)
dclick(winid)
sleep, 50
ColorNoteControlClickFT(numberFT)
}
}
;-----------------------------------------------------------------------------------------------------
dclick(winid)
{
global xbord,cap
coordmode,mouse,relative
mousegetpos,x,y
PostLeftDoubleClick(x-xbord, y-xbord-cap, winid, 1)
}
return
;-----------------------------------------------------------------------------------------------------
ColorNoteControlClick(id)
{
winget,winid,id,A
ControlGet, v, Visible,,PokerStarsNoteSelectorClass1, ahk_id %Winid%
if v
{
BlockInput, MouseMove
wingetpos,x1,y1,w1,h1,ahk_id%winid%
coordmode,mouse,screen
mousegetpos,x2,y2
ControlGetPos, x, y, w, h, %Edit1%, ahk_id %Winid%
DllCall("SetCursorPos", int, x+x1+10, int, y+y1+10)
send {Click left}
DllCall("SetCursorPos", int, x+x1+10, int, y+y1+10+id*17)
send {Click left}
DllCall("SetCursorPos", int, x2, int, y2)
BlockInput, MouseMoveOff
}
}
return
;-----------------------------------------------------------------------------------------------------
ColorNoteControlClickFT(id)
{
winget,winid,id,Player Note ahk_class QWidget
if winid
{
sendmode event
setcontroldelay,-1
setkeydelay,-1
winactivate,ahk_id%winid%
send {Space}{Home}
id--
if id
send {Down %id%}
send {Tab 3}{Enter}
sleep,100
winclose,ahk_class QTool
}
}
return
;-----------------------------------------------------------------------------------------------------
PostLeftDoubleClick(x, y, table_id, activate=1) {
If activate
 WinActivate, ahk_id%table_id%
critical,6
PostMessage, 0x203 , 0, ((y<<16)^x), , ahk_id%table_id%
PostMessage, 0x202 , 0, ((y<<16)^x), , ahk_id%table_id%
critical,off
sleep,-1
}
return
;-----------------------------------------------------------------------------------------------------

Last edited by Max1mums; 01-06-2011 at 12:05 PM.
FTCash - free script for FullTilt cash players. Quote
01-06-2011 , 12:29 PM
thanks a lot.

it still works a majority of the time... the problem is here:

send {Tab 3}{Enter}

sometimes the note windows stays
FTCash - free script for FullTilt cash players. Quote
01-06-2011 , 12:49 PM
naTpuk85, you can try adding
Code:
BlockInput On
; ... send keystrokes 
BlockInput Off
or some sleep before send {Tab 3}{Enter}
Everything works fine for me though.
FTCash - free script for FullTilt cash players. Quote
01-08-2011 , 05:40 PM
I was in the debugging mode, and the script doesnt recognize turn and river, it works fine pre, and flop streets, it thinks turn and river are flop street, I think this is messing the bet pot values
FTCash - free script for FullTilt cash players. Quote
01-09-2011 , 06:12 AM
FTCash v 1.25 is available at http://code.google.com/p/ftcash/downloads/list (added fixes for auto buy-in and auto take seat from waitlist functions).
FTCash - free script for FullTilt cash players. Quote
01-09-2011 , 06:13 AM
playertee, try the latest version linked above, do you use moded card deck?
FTCash - free script for FullTilt cash players. Quote
01-09-2011 , 02:42 PM
how does the script calculate the preflop raise amount? I cant get it!
FTCash - free script for FullTilt cash players. Quote
01-09-2011 , 04:29 PM
hey guys im very bad with scripts. I downloaded ftcash1.25 script. when i open it a pop up box says error,parameter #1 invalid. could someone give me baby steps how to get this thing going.I do have auto hotkey installed along time ago and tried to reinstall it and it asks me if i want to replace old one and nothing happens wen i click yes.Also screen shot of ft cash would be great.
thanks toddduke jr
FTCash - free script for FullTilt cash players. Quote

      
m