Two Plus Two Publishing LLC Two Plus Two Publishing LLC
 

Go Back   Two Plus Two Poker Forums > >

Notices

Commercial Software Discussion of commercial gambling-related / poker software & commercial graphics modifications

Reply
 
Thread Tools Display Modes
Old 12-17-2009, 06:42 AM   #76
mister x
newbie
 
Join Date: Aug 2009
Posts: 16
Re: StackAndTile - new ahk script

Quote:
Originally Posted by greg nice View Post
"move to grid on flop only" is a bigger job than i thought.

currently, with StackAndTile, you dont play at all in the stack. its just a placeholder. in fact, the reason why i added custom coords for the stack, is so you could place it partially off the screen, since its of no use. that way you save screen real estate that can be used for an extra slot.

with this, you would be playing all preflop in the stack. with one site, you run into the trouble of keeping the stack updated. if stars pops up a table in slot2 that is most urgent, no stack tables will pop to the top of the stack until you act on the table in slot2. you can potentially time out in the stack.

but when you throw two sites in the mix, you encounter yet another problem: you'll have both sites popping up in the stack. if youre playing both stars and fulltilt, in the stack stars table auto pops up, 27o, you are about to click Fold. but fulltilt has its own pop up feature, so a fulltilt table with AA becomes urgent and pops up on top of your stars table, causing you to potentially misclick fold.
just make the active tabel Always on Top and if it dont need atantion anymore remove the alway on top atribute,that wil solf the stacking popping up
mister x is offline   Reply With Quote
Old 12-17-2009, 07:11 AM   #77
greg nice
Carpal \'Tunnel
 
greg nice's Avatar
 
Join Date: Aug 2004
Posts: 9,107
Re: StackAndTile - new ahk script

perhaps, but im not sure i like setting always on top. then you cant use other windows
greg nice is offline   Reply With Quote
Old 12-17-2009, 07:47 AM   #78
mister x
newbie
 
Join Date: Aug 2009
Posts: 16
Re: StackAndTile - new ahk script

There are 3 ways to solf that poblem
1E : handel the popping up your self,Turning of the auto popup by the poker clients
2E : The always on top
3E : different Main Stack fore Ps and Full Tilt
mister x is offline   Reply With Quote
Old 12-17-2009, 08:24 AM   #79
malloc
grinder
 
Join Date: Aug 2008
Posts: 629
Re: StackAndTile - new ahk script

Greg: Have you (or anyone else you know of) considered watching the pokerstars.log.0 file instead of trying to pixelread? It has every mouseclick event (even if hotkey routed through TN) with the coordinates in it. The only problem I see with using it is whether it's updated quickly enough.
malloc is offline   Reply With Quote
Old 12-17-2009, 11:13 AM   #80
greg nice
Carpal \'Tunnel
 
greg nice's Avatar
 
Join Date: Aug 2004
Posts: 9,107
Re: StackAndTile - new ahk script

Quote:
Originally Posted by malloc View Post
Greg: Have you (or anyone else you know of) considered watching the pokerstars.log.0 file instead of trying to pixelread? It has every mouseclick event (even if hotkey routed through TN) with the coordinates in it. The only problem I see with using it is whether it's updated quickly enough.
no, i never knew this. sounds interesting. if you find any examples, let me know
greg nice is offline   Reply With Quote
Old 12-17-2009, 11:28 AM   #81
Max1mums
old hand
 
Join Date: Aug 2009
Location: From Russia with code
Posts: 1,658
Re: StackAndTile - new ahk script

Yes, there is update rate issue and it also might be hard to determind when action is on hero.
Max1mums is offline   Reply With Quote
Old 12-17-2009, 12:48 PM   #82
greg nice
Carpal \'Tunnel
 
greg nice's Avatar
 
Join Date: Aug 2004
Posts: 9,107
Re: StackAndTile - new ahk script

Quote:
Originally Posted by NeedAJoker View Post
Not really sure, it just doesnt want to fold.
i dont think the full tilt buttons scale well with different table sizes. i found myself having the same problem as you during testing tonight, it just wouldn't fold. i'm gonna spam some different coordinates, next version should be better
greg nice is offline   Reply With Quote
Old 12-17-2009, 12:57 PM   #83
Max1mums
old hand
 
Join Date: Aug 2009
Location: From Russia with code
Posts: 1,658
Re: StackAndTile - new ahk script

Yeah, noticed that too, buttons are being changed with different table sizes so it should be better to make comparison with background color.
Max1mums is offline   Reply With Quote
Old 12-17-2009, 03:12 PM   #84
NeedAJoker
centurion
 
NeedAJoker's Avatar
 
Join Date: May 2005
Location: NW
Posts: 178
Re: StackAndTile - new ahk script

Quote:
Originally Posted by greg nice View Post
i dont think the full tilt buttons scale well with different table sizes. i found myself having the same problem as you during testing tonight, it just wouldn't fold. i'm gonna spam some different coordinates, next version should be better
Cool, do u still want me to try the PM'd version or just hold off?
NeedAJoker is offline   Reply With Quote
Old 12-17-2009, 05:36 PM   #85
Dread Wings
journeyman
 
Dread Wings's Avatar
 
Join Date: May 2007
Location: Michigan
Posts: 318
Re: StackAndTile - new ahk script

What about moving the table out of the stack only when the bet/raise button is pressed? Of course the table would stay in the stack when a you check your BB in a limped pot but that's not a big deal.

It wouldn't be a problem to move a table back to the stack by pressing the fold button if everyone else folded to your bet.
Dread Wings is offline   Reply With Quote
Old 12-17-2009, 08:06 PM   #86
greg nice
Carpal \'Tunnel
 
greg nice's Avatar
 
Join Date: Aug 2004
Posts: 9,107
Re: StackAndTile - new ahk script

Quote:
Originally Posted by Dread Wings View Post
What about moving the table out of the stack only when the bet/raise button is pressed? Of course the table would stay in the stack when a you check your BB in a limped pot but that's not a big deal.

It wouldn't be a problem to move a table back to the stack by pressing the fold button if everyone else folded to your bet.
this was talked about starting at post #32 in this thread

this method is the alternative to doing flop detection. it obviously can be done, but then i would have to handle more hotkeys (ugh, seems the biggest bug report is 'Fold' button problems), and it starts to be a halfway Table Ninja replacement. but i guess its only two more hotkeys, Check/Call and Bet/Raise.

the alternative i chose was flop card detection. it is most certainly slower than the method above. should be ready soon for ppl to try and give feedback
greg nice is offline   Reply With Quote
Old 12-17-2009, 08:48 PM   #87
greg nice
Carpal \'Tunnel
 
greg nice's Avatar
 
Join Date: Aug 2004
Posts: 9,107
Re: StackAndTile - new ahk script

is there any value to adding a "Manually move table out of stack into next open grid slot" hotkey?
greg nice is offline   Reply With Quote
Old 12-18-2009, 12:24 AM   #88
greg nice
Carpal \'Tunnel
 
greg nice's Avatar
 
Join Date: Aug 2004
Posts: 9,107
Re: StackAndTile - new ahk script

v 1.10
- adds flop detection
- fixes Fold hotkey problems (hopefully)
- otherstuff

you will be able to get the latest at overcards

http://www.overcards.com/wiki/moin.cgi/StackAndTile
greg nice is offline   Reply With Quote
Old 12-18-2009, 07:12 AM   #89
Max1mums
old hand
 
Join Date: Aug 2009
Location: From Russia with code
Posts: 1,658
Re: New Free Software: StackAndTile - table layout script for Stars + FTP

Windows 7/Vista users, have in mind that pixel detection function works about 2x faster with aero theme turned off.
Max1mums is offline   Reply With Quote
Old 12-18-2009, 08:47 AM   #90
greg nice
Carpal \'Tunnel
 
greg nice's Avatar
 
Join Date: Aug 2004
Posts: 9,107
Re: New Free Software: StackAndTile - table layout script for Stars + FTP

does CreateCompatibleBitmap work better with aero on?
greg nice is offline   Reply With Quote
Old 12-18-2009, 09:08 AM   #91
Max1mums
old hand
 
Join Date: Aug 2009
Location: From Russia with code
Posts: 1,658
Re: New Free Software: StackAndTile - table layout script for Stars + FTP

Didn't check it there, but i get flickering while running your script even on XP.
You should use RedrawWindow function for visible controls only and not for all.
Max1mums is offline   Reply With Quote
Old 12-18-2009, 07:59 PM   #92
greg nice
Carpal \'Tunnel
 
greg nice's Avatar
 
Join Date: Aug 2004
Posts: 9,107
Re: New Free Software: StackAndTile - table layout script for Stars + FTP

hrm, will look into it
greg nice is offline   Reply With Quote
Old 12-18-2009, 09:18 PM   #93
xK1nGeNx
newbie
 
xK1nGeNx's Avatar
 
Join Date: Dec 2008
Location: Countdown 'til busto
Posts: 31
Re: New Free Software: StackAndTile - table layout script for Stars + FTP

Hello, I have a little problem setting this up. I'm using 2 screens and want both the stack and tile on my left screen. When I'm setting this up right now I get the stack to be positioned upper left corner of left screen but then when it tiles it shows up on my right screen (upper left corner[slot1?] how can I change this?

Tank you!
xK1nGeNx is offline   Reply With Quote
Old 12-19-2009, 05:33 AM   #94
greg nice
Carpal \'Tunnel
 
greg nice's Avatar
 
Join Date: Aug 2004
Posts: 9,107
Re: New Free Software: StackAndTile - table layout script for Stars + FTP

Quote:
Originally Posted by xK1nGeNx View Post
Hello, I have a little problem setting this up. I'm using 2 screens and want both the stack and tile on my left screen. When I'm setting this up right now I get the stack to be positioned upper left corner of left screen but then when it tiles it shows up on my right screen (upper left corner[slot1?] how can I change this?

Tank you!
so when you press Start, the stack is positioned in the upperleft corner of the left monitor. and when tables start to be tiled, they start in the upperleft of the right monitor? is that right?

i dont have 2 monitors right now to test on. can you copy and paste all the lines from the StackAndTile.ini file ?
greg nice is offline   Reply With Quote
Old 12-19-2009, 06:05 AM   #95
Sorrybadbeat
banned
 
Sorrybadbeat's Avatar
 
Join Date: Mar 2008
Location: New Brunswick
Posts: 1,062
Re: New Free Software: StackAndTile - table layout script for Stars + FTP

nice program I cant play more then 14 tables without it lagging pretty bad but it definitely has some potential
Sorrybadbeat is offline   Reply With Quote
Old 12-19-2009, 06:26 AM   #96
Max1mums
old hand
 
Join Date: Aug 2009
Location: From Russia with code
Posts: 1,658
Re: New Free Software: StackAndTile - table layout script for Stars + FTP

And did you try turning aero off (for Vista/W7)?
Max1mums is offline   Reply With Quote
Old 12-19-2009, 06:53 AM   #97
Sorrybadbeat
banned
 
Sorrybadbeat's Avatar
 
Join Date: Mar 2008
Location: New Brunswick
Posts: 1,062
Re: New Free Software: StackAndTile - table layout script for Stars + FTP

Quote:
Originally Posted by Max1mums View Post
And did you try turning aero off (for Vista/W7)?
I have Aero disabled as well as UAC.Pokerstars is running at high priority so is Autohotkey and TableNinja.I have no firewall or av running and the services that are running are identical to the "Windows Vista 'Safe' Settings" from http://www.speedyvista.com/registry.php except that I also have my wireless service running.I am running the 64bit version of Windows Vista Home Premium SP2.My screen resolution is 1280 - 800 and as such I am only running 4 tiled slots.My computer specs are listed below.It may be my ****ty ass video card who knows.
  • Processor:Intel(R) Core(TM) 2 Duo CPU T6400 @ 2.00GHz (2 CPUs),~2.00GHz
    Ram:4GIGS DDR
    On board Intel 4 series for video
Sorrybadbeat is offline   Reply With Quote
Old 12-19-2009, 07:14 AM   #98
Max1mums
old hand
 
Join Date: Aug 2009
Location: From Russia with code
Posts: 1,658
Re: New Free Software: StackAndTile - table layout script for Stars + FTP

Hmm try setting processes priority to normal. Don't really know whether getpixel procedure should work slower/faster under x64 OS.
Max1mums is offline   Reply With Quote
Old 12-19-2009, 07:39 AM   #99
Max1mums
old hand
 
Join Date: Aug 2009
Location: From Russia with code
Posts: 1,658
Re: New Free Software: StackAndTile - table layout script for Stars + FTP

Try running this speed test, just open any 20 PS/FT tables (Playmoney cash easiest), press f12 several times, how much will it be for you?
Code:
#NoEnv
#SingleInstance, Force
Settitlematchmode, 2


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


f12::
StartTime:=A_TickCount
WinGet, listst, List, ahk_class PokerStarsTableFrameClass
WinGet, listft, List, ahk_class QWidget,,Full Tilt
Loop, %listst%
{
win:=listst%A_index%
col%A_index%:=PixelColorA(0.5,0.5,win)
}
Loop, %listft%
{
win:=listft%A_index%
col%A_index%:=PixelColorA(0.5,0.5,win)
}
ElapsedTime:=A_TickCount - StartTime
Gui, 2:Add, Text,,%ElapsedTime% milliseconds have elapsed
Gui, 2:+ToolWindow
Gui, 2:Show, w180 h40
Sleep, 1000
Gui, 2:Destroy
return




CreateDIBSection(hDC, nW, nH, bpp = 32, ByRef pBits = "") {
   NumPut(VarSetCapacity(bi, 40, 0), bi)
   NumPut(nW, bi, 4)
   NumPut(nH, bi, 8)
   NumPut(bpp, NumPut(1, bi, 12, "UShort"), 0, "Ushort")
   NumPut(0,  bi,16)
   Return DllCall("gdi32\CreateDIBSection", "Uint", hDC, "Uint", &bi, "Uint", 0, "UintP", pBits, "Uint", 0, "Uint", 0)
}

PixelColorA(colxa,colya,id)
{
critical ;speed up
global xbord,ybord,cap
hdc_frame := DllCall( "GetDC", "UInt", id)
hdc_buffer := DllCall("gdi32.dll\CreateCompatibleDC", "UInt",  hdc_frame)
WinGetPos, X, Y, W, H, ahk_id %id%
hbm_buffer := CreateDIBSection(hdc_frame, w, h)
DllCall( "gdi32.dll\SelectObject", UInt,hdc_buffer, UInt,hbm_buffer)
DllCall( "PrintWindow", "UInt" , id , "UInt" , hdc_buffer , "UInt" , 0 )
WinGetPos, X, Y, W, H, ahk_id %id%
DllCall("RedrawWindow",uint,id,uint,0,uint,0,uint, 1|16|32|128|256|1024) ; with all children windows
w := w - (2*xbord)
h := h - (2*ybord) - cap
Transform, X, Floor, W*colxa
Transform, Y, Floor, H*colya
pixel_x := x + xbord
pixel_y := y + ybord + cap
pix := DllCall("GetPixel", "UInt", hdc_buffer, "Int", pixel_x , "Int", pixel_y) 
SetFormat, IntegerFast, hex
pix += 0  ; Sets Var (which previously contained 11) to be 0xb.
pix .= ""  ; Necessary due to the "fast" mode.
SetFormat, IntegerFast, d
DllCall( "gdi32.dll\DeleteObject", "uint", hbm_buffer )
DllCall( "gdi32.dll\ReleaseDC"    , "uint", hdc_frame )
DllCall( "gdi32.dll\DeleteDC"    , "uint", hdc_frame )
DllCall( "gdi32.dll\DeleteDC"    , "uint", hdc_buffer )
return pix
}
Max1mums is offline   Reply With Quote
Old 12-19-2009, 08:20 AM   #100
fsvo
newbie
 
Join Date: Dec 2009
Posts: 15
Re: New Free Software: StackAndTile - table layout script for Stars + FTP

Quote:
Originally Posted by Max1mums View Post
Try running this speed test, just open any 20 PS/FT tables (Playmoney cash easiest), press f12 several times, how much will it be for you?
[/CODE]
If you want samples of speed I'm getting 175ms on a Core2duo 3ghz (E8400). 20 tables


Thanks greg for stack and tile btw. It works pretty good
fsvo is offline   Reply With Quote

Reply
      

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Forum Jump


All times are GMT -4. The time now is 03:23 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Search Engine Optimisation provided by DragonByte SEO v2.0.33 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Copyright ę 2008-2010, Two Plus Two Interactive
 
Poker Players - Streaming Live Online