Quote:
Originally Posted by Max1mums
The Insomniac, so do you want to add separate timer for every table? It is not that easy as you think and will work for active table only, i'll think what can be done about it.
I looked at the code and thought of an easier way. I messed around for a while and got it working. It's working perfectly now...
I added some code to clickwaitbb() function. It's been hard coded for Hypersimple which is what I use;
Code:
clickwaitbb()
{
global HyperSimpleTheme,ClassicTheme,SlickTheme,BlackTheme
;waitx1:=0.7105
waitx1:=0.7035
waity1:=0.9116
if ClassicTheme
w=4182010
else
if HyperSimpleTheme
w=-0-
else
if SlickTheme ;or BlackTheme
{
w=16777215
waitx1:=0.6763
waity1:=0.9002
}
else
if BlackTheme
{
w=16777215
waitx1:=0.6763
waity1:=0.9002
}
winget,list,list,Logged In ahk_class PokerStarsTableFrameClass
loop %list%
{
id:=list%A_index%
wingettitle,title,ahk_id%id%
ControlGet,vis,Visible,,PokerStarsSliderClass1,ahk_id%id%
if (!instr(title,"fast") & (vis!=1))
{
waitx:=0.6962
waity:=0.9747
waitx2:=0.6962
waity2:=0.9908
v:=40
col:=PixelColorA(waitx,waity,id,0,waitx2,waity2,0)
stringsplit,col,col,-
if comparecolors(col1,col2,v)=0
{
wingetpos,,,width,,ahk_id%id%
if width<640
col:=PixelColorA(waitx1,waity1,id,1,0,0,0,1)
else
col:=PixelColorA(waitx1,waity1,id,1)
if instr(col,w)
PostclickStars(waitx1,waity1,id,0)
sleep, 100 ; <--- Added code. Found this was needed
}
;--------------------------
;Start of additional code
;--------------------------
Else
{
click_x :=0.0142
click_y :=0.7075
postbbx:=0.5378
postbby:=0.9747
postbbx1:=0.5450
postbby1:=0.9116
postbbx2:=0.5378
postbby2:=0.9908
v:=40
col:=PixelColorA(postbbx,postbby,id,0,postbbx2,postbby2,0)
stringsplit,col,col,-
if comparecolors(col1,col2,v)=0
{
wingetpos,,,width,,ahk_id%id%
if width<640
col:=PixelColorA(postbbx1,postbby1,id,1,0,0,0,1)
else
col:=PixelColorA(postbbx1,postbby1,id,1)
if instr(col,w)
PostclickStars(click_x,click_y,id,0)
}
}
;--------------------------
;End of additional code
;--------------------------
}
}
}
return
Last edited by The Insomniac; 05-20-2010 at 11:08 AM.
Reason: fixed bug