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

02-10-2010 , 01:57 AM
hi,Max1mums
how hide table chat channel??
Code:
ChatF:
winget,list,list,ahk_class QWidget
loop %list%
{
  id:=list%A_index%  

}
WinHide,ahk_class QTool
Return

Last edited by foxkiller; 02-10-2010 at 02:23 AM.
FTCash - free script for FullTilt cash players. Quote
02-10-2010 , 02:52 AM
Code:
f1::
winhide,ahk_class QTool
return

f2::
winshow,ahk_class QTool
return
FTCash - free script for FullTilt cash players. Quote
02-12-2010 , 05:02 PM
Quote:
Originally Posted by Max1mums
tomekplaczek, and were you using custom background?
You can assign right click to Fold function on Table hotkeys tab with "rbutton" and you can set 99999 pot percent for every street to any of Pot function on BetPot tab, that will make it an allin hotkey.
I used the Full Tilt red carpet background and kept it.
FTCash - free script for FullTilt cash players. Quote
02-16-2010 , 06:20 PM
Do you know what to do against Full Tilt's buttons getting "stuck" when using a hotkey? Like when I use a hotkey to click the Fold button it will sometimes be held down but it won't release and the mouse click will not register. Then I have to click it again.
FTCash - free script for FullTilt cash players. Quote
02-16-2010 , 06:22 PM
That happens to Fulltilt buttons sometimes, do you mean FTCash hotkeys?
FTCash - free script for FullTilt cash players. Quote
02-16-2010 , 06:53 PM
Quote:
Originally Posted by Respawn
Do you know what to do against Full Tilt's buttons getting "stuck" when using a hotkey? Like when I use a hotkey to click the Fold button it will sometimes be held down but it won't release and the mouse click will not register. Then I have to click it again.
max, dunno if youre still doing the postdoubleclick, because i think i remember getting this bug as well sometimes when i was testing it
FTCash - free script for FullTilt cash players. Quote
02-16-2010 , 06:56 PM
I was getting that problem with PostLeftClick too.
FTCash - free script for FullTilt cash players. Quote
02-16-2010 , 07:39 PM
hi maximus,
i have tried your script and it works great so far.

i do have the impression, that potbets are not quite correct. maybe its because of the rounding.

also:
how do i set up a 2,5 BB preflop open size??

thanks for your work
FTCash - free script for FullTilt cash players. Quote
02-16-2010 , 07:45 PM
Quote:
Originally Posted by Max1mums
That happens to Fulltilt buttons sometimes, do you mean FTCash hotkeys?
Yes, for instance when I have RButton set to click Fold.
FTCash - free script for FullTilt cash players. Quote
02-16-2010 , 07:51 PM
horse84, are bets too big or too small? Try setting 100% for pre and selecting trny for 2.5x open raise.
Respawn, can you check if same problem will happen with keyboard hotkey? Maybe i should send two or three clicks to FT buttons.
FTCash - free script for FullTilt cash players. Quote
02-16-2010 , 08:05 PM
bets were too small.
i had set a 50 pct bet and i got 30ct into 70 when i tried the script at a micro table. but thats not a big deal really.

another thing i just noticed.
i use different pf opens and i entered 100pct for mbutton and 75pct for xbutton1
->mbutton works and made a potsize raise preflop
->xbutton1 didnt work PREFLOP (entered a minraise), postflop was fine
FTCash - free script for FullTilt cash players. Quote
02-16-2010 , 08:36 PM
when i have starscash /or ftcash running, i wont be able to use my mouse buttons in firefox, except for left click

just had to shut the ahk down via taskmanager, because i wasnt able to rightclick on it and hit exit
FTCash - free script for FullTilt cash players. Quote
02-16-2010 , 11:24 PM
how hard would it be to edit this script so that it is just a table highlighter?
FTCash - free script for FullTilt cash players. Quote
02-17-2010 , 01:26 AM
I have the problem with buttons clicking too - but I found what it was was that even when I clicked manually with my mouse "quickly", it would get stuck 1/50 times too!

So what I did was add a Sleep, 50 in between the mouse down and up events. To be honest I have not tested as much since then, but it seemed to alleviate it most of the time. I still get bad clicks if the mouse cursor is causing a tooltip to appear. Perhaps adding a second click (not a double click, but a second actual click) would alleviate the issue 100%?

Also I am not sure what causes it. When I was using my rudimentary script that just used the built-in mouse move and click commands, it never got stuck. I am wondering if the screen grab detection for the Timer button is causing the clicks to not fire in sequence? Perhaps they both get sent in the same slice, and thus mouse up gets interpreted before mouse down? I thought the event queue was designed to prevent this though. But anyway, that is why I thought to add a small sleep command to my click function.

Maybe this will help - I apologize if I wasted anyone's time!
FTCash - free script for FullTilt cash players. Quote
02-17-2010 , 04:13 AM
horse84, you can bind ~rbutton or ~xbutton1 to preserve natural functions of those buttons for other applications.
LegallyBlind, not hard but there are existing table highlighters for ftp i believe.
ClubKid, i don't really want to use sleep there, i'll just add second click i think.
FTCash - free script for FullTilt cash players. Quote
02-17-2010 , 05:08 AM
Max, i haven't been able to find any since the big ftp update rendered all the old ones useless. i'll happily ship you $5 if you can make me just a table highlighter script.
FTCash - free script for FullTilt cash players. Quote
02-17-2010 , 05:28 AM
Do you need to highlight just active table or table with action on hero?
FTCash - free script for FullTilt cash players. Quote
02-17-2010 , 05:51 AM
Is there any way to make it so the script doesnt block the assigned key from other applications? for ex, assigning RButton to fold, makes it so right clicks wont work in my internet browser anymore

thanks
FTCash - free script for FullTilt cash players. Quote
02-17-2010 , 06:26 AM
johnnychimpo, there is answer at post 65
LegallyBlind, here try this, highlight with action on hero may be slow with aero theme turned on and i don't know if this script will be compatible with tableninja or not:
Code:
; #### FTHighlighter ####

; AHK version: 1.0.48.05
; date: February 17,2010
  version := "1.01"
; author: Max1mums (max1mums@overcards.com)


#SingleInstance, Force
#NoEnv
Settitlematchmode, 2
OnExit exitSub

StringTrimRight, thisahk, A_ScriptName, 4
SetWorkingDir %A_ScriptDir%

Menu, Tray, NoStandard
Menu, Tray, Add, Settings, menugui
Menu, Tray, Add 
Menu, Tray, Add, Reload, reload
Menu, Tray, Default, Settings
Menu, Tray, Add 
Menu, Tray, Add, Suspend, Suspend
Menu, Tray, Add, Pause, TogglePause
Menu, Tray, Add 
Menu, Tray, Add, Exit, ExitSub

OnMessage(0x112,"WM_SYSCOMMAND")
WM_SYSCOMMAND(wParam)
{
  if (A_Gui && wParam = 0xF020) ; SC_MINIMIZE
  {
    Gui, destroy
    return 0
  }
}

SetBatchLines, -1
SetWinDelay, -1
SendMode Input

SysGet, xbord, 32
SysGet, ybord, 33
SysGet, cap, 4

; Border of the "Highlighter"
border_color := "ff0000"
border_size := 5
trans := 255

gosub,getini


;;;;;;;;;;;;;;End of init;;;;;;;;;;;;;;

settimer,act,35
if Highlight
settimer,Highlighter,53

return

;-----------------------------------------------------------------------------------------------------
act:
id:=act()
wingetclass,class,A
wingettitle,title,A
ifwinnotactive,ahk_id%id%
if class=QWidget
if (instr(title, "Logged In") & instr(title, "/"))
winactivate,ahk_id%id%
return

act()
{
winget,list,list, Logged In ahk_class QWidget,,Full Tilt
return list1
}
;-----------------------------------------------------------------------------------------------------
HighLighter:
if Highlight
HighLighter()
return

HighLighter(Highlight=1)  ;x_mouse=0.75, y_mouse=0.75 
{
global OldX,OldY,OldW,OldH
global highlighthero,last_table_id
global border_color
global border_size
global trans
global xbord,ybord
global cap

foldx:=0.6534
foldy:=0.9662
foldx1:=0.5859
foldy1:=0.9662

back_x:=0.6534
back_y:=0.9862
back_x1:=0.5859
back_y1:=0.9862

join_y:=0.9292
join_x:=0.8261

fold1:=0x181818
v:=15

ifwinactive, Logged In ahk_class QWidget,,Full Tilt
{  
 winget,id,id,A
 WinGetActiveStats,ActiveTitle, ActiveW, ActiveH, ActiveX, ActiveY
  relFTclientpoint(id,foldx,foldy,0)
  pixelgetcolor,fold,foldx,foldy,ahk_id%id%
  relFTclientpoint(id,foldx1,foldy1,0)
  pixelgetcolor,bacgr,foldx1,foldy1,ahk_id%id%
  relFTclientpoint(id,back_x,back_y,0)
  pixelgetcolor,deal,back_x,back_y,ahk_id%id%
  relFTclientpoint(id,back_x1,back_y1,0)
  pixelgetcolor,deal1,back_x1,back_y1,ahk_id%id%
 ; relFTclientpoint(id,join_x,join_y,0)
 ; pixelgetcolor,join,join_x,join_y,ahk_id%id%

 if (id != last_table_id) || ((OldX <> ActiveX || OldY <> ActiveY || OldW <> ActiveW || OldH <> ActiveH))    
 {
  OldX := ActiveX
  OldY := ActiveY
  OldW := ActiveW
  OldH := ActiveH
  mouse_last:=last_table_id
  last_table_id := id  
  if(!id)
  {
   Gui, 2: Cancel
   Gui, 3: Cancel
   Gui, 4: Cancel
   Gui, 5: Cancel
   return
  }  
  WinGetPos, x, y, w, h, ahk_id%id%
  x := x + xbord
  y := y + xbord + cap
  w := w - (2*xbord)
  h := h - (2*xbord) - cap
 
  ;Makes Border around urgent table
  if (highlighthero=0) || ((highlighthero=1) & (comparecolors(fold,bacgr,v)=0) & (comparecolors(fold,fold1,v)=0) & (comparecolors(deal,deal1,v)=1))  ; & (comparecolors(join,deal1,v)=1))
  { 
   ;top
   guinum := 2
   Gui, %guinum%: +Alwaysontop +Lastfound +Owner
   Gui, %guinum%: Color, %border_color%
   WinSet, Transparent, %trans%
   Gui, %guinum%: -Caption
   Gui, %guinum%: Show, w%w% h%border_size% x%x% y%y% NoActivate    
   ;left
   guinum++
   Gui, %guinum%: +Alwaysontop +Lastfound +Owner
   Gui, %guinum%: Color, %border_color%
   WinSet, Transparent, %trans%
   Gui, %guinum%: -Caption
   Gui, %guinum%: Show, w%border_size% h%h% x%x% y%y% NoActivate    
   ;bottom
   guinum++
   Gui, %guinum%: +Alwaysontop +Lastfound +Owner
   Gui, %guinum%: Color, %border_color%
   WinSet, Transparent, %trans%
   Gui, %guinum%: -Caption
   y2 := y + h - border_size
   Gui, %guinum%: Show, w%w% h%border_size% x%x% y%y2% NoActivate    
   ;right
   guinum++
   Gui, %guinum%: +Alwaysontop +Lastfound +Owner
   Gui, %guinum%: Color, %border_color%
   WinSet, Transparent, %trans%
   Gui, %guinum%: -Caption
   x2 := x + w - border_size
   Gui, %guinum%: Show, w%border_size% h%h% x%x2% y%y% NoActivate  
  }
  else
  if highlighthero=1
  last_table_id=           
 }
 else
 if highlighthero=1
 if comparecolors(fold,bacgr,v)=1
 {
  Gui, 2: Cancel
  Gui, 3: Cancel
  Gui, 4: Cancel
  Gui, 5: Cancel
  last_table_id=
 }
}
else
{
   Gui, 2: Cancel
   Gui, 3: Cancel
   Gui, 4: Cancel
   Gui, 5: Cancel
   last_table_id=
}
}
return
;-----------------------------------------------------------------------------------------------------
relFTClientPoint(id, ByRef x, ByRef y, client=1,screen=0)
{
global xbord,ybord,cap
WinGetPos,x1,y1,w,h,ahk_id%id%
w-=2*xbord
h-=(2*ybord)+cap
x:=floor(W*x)
y:=floor(H*y)
if !client
{
 x+=xbord
 y+=ybord+cap
}
if screen
{
 x+=x1
 y+=y1
}
}
return
;-----------------------------------------------------------------------------------------------------
CompareColors(ByRef bgr1, ByRef bgr2, ByRef variation) {
c1 := bgr1 & 0xff
c2 := bgr2 & 0xff
if (abs(c1 - c2) > variation)
	return false
c1 := (bgr1 >> 8) & 0xff
c2 := (bgr2 >> 8) & 0xff
if (abs(c1 - c2) > variation)
	return false
c1 := (bgr1 >> 16) & 0xff
c2 := (bgr2 >> 16) & 0xff
if (abs(c1 - c2) > variation)
	return false
return true
}
;-----------------------------------------------------------------------------------------------------
BuildGui:
Gui, color, white
Gui, add, tab, h450 w270, General
Gui, Tab, General
Gui, add, text, y145 x25, Highlight table
Gui, add, Checkbox, y145 x100 Checked%Highlight% VHighlight
Gui, Add, Radio, x126 y140 w120 h15 Checked%highlightactive% vhighlightactive, Active
Gui, Add, Radio, x126 y155 w120 h15 Checked%highlighthero% vhighlighthero, With action on hero

Gui, Add, Button, x75 y315 w55 h20 gSave,Submit
Gui, Add, Button, x135 y315 w55 h20 gCancel,Cancel

Gosub, GetIni
Gui, show, w286, %thisahk%
Return
;-----------------------------------------------------------------------------------------------------
GetIni:
IfNotExist, %thisahk%.ini
gosub, CreateIni
IniRead, Highlight, %thisahk%.ini, Settings, Highlight, 0
IniRead, highlighthero, %thisahk%.ini, Options, highlighthero, 0
IniRead, highlightactive, %thisahk%.ini, Options, highlightactive, 0
Return
;-----------------------------------------------------------------------------------------------------
MakeIni:
IniWrite, %Highlight%, %thisahk%.ini, Settings, Highlight
if highlighthero
IniWrite, %highlighthero%, %thisahk%.ini, Options, highlighthero
if highlightactive
IniWrite, %highlightactive%, %thisahk%.ini, Options, highlightactive
Return
;-----------------------------------------------------------------------------------------------------
CreateIni:
Highlight:=1
highlighthero:=1
gosub, MakeIni
gosub, buildgui
return
;-----------------------------------------------------------------------------------------------------
GuiClose:
gosub, cancel
return
;-----------------------------------------------------------------------------------------------------
menuGui:
gosub, getini
winget,id,id, %thisahk% ahk_class AutoHotkeyGUI
if !DllCall( "IsWindowVisible", "UInt",id)
gosub, buildgui
else
winactivate,ahk_id%id%
Gui, Submit,nohide
return
;-----------------------------------------------------------------------------------------------------
reload:
reload
return
;-----------------------------------------------------------------------------------------------------
Save:
Gui, Submit
FileDelete, %thisahk%.ini
gosub, MakeIni
Reload
return
;-----------------------------------------------------------------------------------------------------
Cancel:
Gui, Destroy
Return
;-----------------------------------------------------------------------------------------------------
TogglePause:
pause,toggle
return
;-----------------------------------------------------------------------------------------------------
Suspend:
suspend
return
;-----------------------------------------------------------------------------------------------------
Edit:
edit
return
;-----------------------------------------------------------------------------------------------------
exitSub:
FileDelete, %thisahk%.ini
gosub, makeini
exitApp
return
;-----------------------------------------------------------------------------------------------------
FTCash - free script for FullTilt cash players. Quote
02-17-2010 , 02:48 PM
max, that did not work for me. did i mention i use the racetrack theme? it only highlights the table when the "join waiting list" or "deal me in" buttons are present. i'm guessing its due to me having racetrack theme. i can't change to classic because i have too much setup invested in racetrack (huds etc...). i'll still ship you the $5, but if it isn't too hard could you make this work for racetrack. tell me where you want me to ship to you. thanks
FTCash - free script for FullTilt cash players. Quote
02-17-2010 , 03:11 PM
That can happen cause of hud or something, could you make screenshot of the bottom part of a table with all huds etc on please. I can check it through teamviewer also if you want. I don't want to receive money for not working script.
btw is FTCash highlighter working fine for you?
FTCash - free script for FullTilt cash players. Quote
02-17-2010 , 04:37 PM
Quote:
Originally Posted by Max1mums
johnnychimpo, there is answer at post 65
Thanks Max1mums, this is working better- when I make a slow right click (Ie hold down the button for a second then release - it works 100% of the time), but when I make a fast right click it seems to mess up and randomly select things.

I've been putting Sleep, 50 all over the place to try to fix this, where is the right location? (trying to set a delay between mouse down and mouse up for Right mouse button or the FOLD action)

I've tried this:

Code:
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%
Sleep,50
PostMessage, 0x202 , 0, ((y<<16)^x), , ahk_id%table_id%
}
Code:
fold:
If ActOnActiveTable
WinGet, Id, ID, A
else
MousegetPos,,,ID
wingetclass,class,ahk_id%id%
if class=QWidget
{
 FoldFT(id)
}
else
{
ControlGetFocus,ctrl,ahk_id%id%
Sleep,100
ControlSend,%ctrl%,%fold%,ahk_id%id%
}
settimer,check,639
return


Code:
PostLeftDoubleClick(x, y, table_id, activate=1) {
; ### Max1mums: Send the double left click, then the mouse-up messages,
; some windows can get activated on the down left click so we will use
; left doubleclick instead, don't use on objects which have any functions
; binded to doubleclick unless you want to make doubleclick on them
; 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%
critical,6
PostMessage, 0x203 , 0, ((y<<16)^x), , ahk_id%table_id% ; without 0x001 as lparam which is Lbutton down
Sleep,100
PostMessage, 0x202 , 0, ((y<<16)^x), , ahk_id%table_id%
Sleep,100
PostMessage, 0x202 , 0, ((y<<16)^x), , ahk_id%table_id%
critical,off
sleep,-1
}
return

Last edited by johnnychimpo; 02-17-2010 at 04:42 PM.
FTCash - free script for FullTilt cash players. Quote
02-17-2010 , 04:44 PM
There aren't mouse down and mouse up messages for Right mouse button being used in this script.
Try this version of fold function (try using both "send actions to active table" and "send actions to table under mouse" options)
Code:
fold:
sendmode event
If ActOnActiveTable
WinGet, Id, ID, A
else
MousegetPos,,,ID
wingetclass,class,ahk_id%id%
if class=QWidget
{
 FoldFT(id)
}
else
{
send {%fold%}
}
sendmode input
return

Last edited by Max1mums; 02-17-2010 at 04:53 PM.
FTCash - free script for FullTilt cash players. Quote
02-17-2010 , 05:25 PM
Quote:
Originally Posted by Max1mums
That can happen cause of hud or something, could you make screenshot of the bottom part of a table with all huds etc on please. I can check it through teamviewer also if you want. I don't want to receive money for not working script.
btw is FTCash highlighter working fine for you?
meant to send via pm
FTCash - free script for FullTilt cash players. Quote
02-19-2010 , 10:18 AM
Max, thanks for the great script. I tile tables and use the "activate table under mouse", "send actions to table under mouse" options. FTcash moves mouse to the next pending action table after I made a decision on the active table. I don't need that feature. How can I switch it off ?
FTCash - free script for FullTilt cash players. Quote

      
m