Two Plus Two Newer Archives

Two Plus Two Newer Archives (http://archives1.twoplustwo.com/index.php)
-   Software (http://archives1.twoplustwo.com/forumdisplay.php?f=47)
-   -   Is there any interest in a table rotation AHK script? (http://archives1.twoplustwo.com/showthread.php?t=517895)

Xanderz 10-07-2007 10:32 PM

Is there any interest in a table rotation AHK script?
 
This would be for Full Tilt only as other sites would currently require screen reading [img]/images/graemlins/mad.gif[/img]

The idea is as follows: Image 9 grid cells on your screen, 5 of those cells are filled with small sized windows while 1 window (the one currently requiring attention) is larger and takes up 4 of the cells. As soon as action is taken on the large table, it is shrunk into one of the smaller slots and the next window requiring attention is put in the large slot.

Concept seems easy enough.. though so far it is proving a bit more intricate than first thought. Perhaps I'll be more inspired if anyone is interested in it [img]/images/graemlins/smile.gif[/img]

_dave_ 10-07-2007 10:40 PM

Re: Is there any interest in a table rotation AHK script?
 
Check out my StarsPlanner script - it already takes care of the sizing / layout etc. - all would need adding is code to switch slots based on awaiting action... Also check my UrgentTable script (which I need to upload for FTP capability - will do this tomorrow) that creates a queue of tables requiring action.

Minor adjustments (or SendMessaging) of these two scripts will accomplish this setup.

I imagine there will be some demand - MTH did similar for Party back in the day, and it certainly had some following.

dave.

catcher193 10-07-2007 10:42 PM

Re: Is there any interest in a table rotation AHK script?
 
omg yes, then it could be like MTH

_dave_ 10-07-2007 10:45 PM

Re: Is there any interest in a table rotation AHK script?
 
[ QUOTE ]
omg yes, then it could be like MTH

[/ QUOTE ]

You never replied to my PM a few weeks back about this [img]/images/graemlins/frown.gif[/img]

Did you get it? 2p2 crashed for me about 10 mins after I sent it, was a bloody long PM too!

dave.

catcher193 10-07-2007 10:48 PM

Re: Is there any interest in a table rotation AHK script?
 
[ QUOTE ]
[ QUOTE ]
omg yes, then it could be like MTH

[/ QUOTE ]

You never replied to my PM a few weeks back about this [img]/images/graemlins/frown.gif[/img]

Did you get it? 2p2 crashed for me about 10 mins after I sent it, was a bloody long PM too!

dave.

[/ QUOTE ]
yes I read it, and yes I thanked you and replied to it, and yes most of the functions of MTH are scattered in various AHK's but this was my favorite feature [img]/images/graemlins/smile.gif[/img]

catcher193 10-07-2007 10:50 PM

Re: Is there any interest in a table rotation AHK script?
 
I believe I asked if there was a way for betpot to set the cursor in the betbox amt window, for awesome mousless control.

_dave_ 10-07-2007 10:51 PM

Re: Is there any interest in a table rotation AHK script?
 
Then your reply never made it to me thanks to BBV4L crashing the server I believe [img]/images/graemlins/frown.gif[/img]

Did you request I send you my experimental scripts to do this?

If by chance you save sent PMs, please resend.

God I must have appeared so rude apparently ignoring your reply [img]/images/graemlins/frown.gif[/img]

Paul B. 10-07-2007 10:52 PM

Re: Is there any interest in a table rotation AHK script?
 
I actually love this idea but wouldn't it be really laggy?

Xanderz 10-07-2007 11:00 PM

Re: Is there any interest in a table rotation AHK script?
 
[ QUOTE ]
I actually love this idea but wouldn't it be really laggy?

[/ QUOTE ]Well obviously I haven't tested it yet, but I'd imagine it to be fast with proper optimizations. There isn't any bottlenecks that I can envision that would make it lagging on any relatively modern computer.

_dave_ 10-07-2007 11:05 PM

Re: Is there any interest in a table rotation AHK script?
 
[ QUOTE ]
[ QUOTE ]
I actually love this idea but wouldn't it be really laggy?

[/ QUOTE ]Well obviously I haven't tested it yet, but I'd imagine it to be fast with proper optimizations. There isn't any bottlenecks that I can envision that would make it lagging on any relatively modern computer.

[/ QUOTE ]

Yeah it is not laggy - I just found it a bitch to keep track of actions with the tables jumping around all the time.

It lags a lot on Stars when one has to fake-mousedrag the corner to resize on SNG/MTTs - but on cash tables or FTP / PTY lag is not a problem.

Xanderz - if you want to remake from the ground up no worries - but please feel free to contribute to the existing scripts on overcards.com if you want.

dave.

Xanderz 10-07-2007 11:09 PM

Re: Is there any interest in a table rotation AHK script?
 
[ QUOTE ]
Check out my StarsPlanner script - it already takes care of the sizing / layout etc.

[/ QUOTE ]I haven't seen that script but I already wrote the layout part my other script to tile tables of all the supported sites. That'll be in the next version.
[ QUOTE ]
all would need adding is code to switch slots based on awaiting action...

[/ QUOTE ]Yes, and keeping track of what is where, I don't want to create a script that keeps swapping windows around unnecessarily. The script is slightly more complete than I let on in the OP [img]/images/graemlins/wink.gif[/img]

Xanderz 10-07-2007 11:18 PM

Re: Is there any interest in a table rotation AHK script?
 
[ QUOTE ]
Yeah it is not laggy - I just found it a bitch to keep track of actions with the tables jumping around all the time.

[/ QUOTE ]Yes, that is what I want to prevent. I only want to swap the table requiring action with the table that goes back to mini view, but I also have to know if a table has been placed properly, that is, if I a new table is opened, it needs to go into one of the open slots.
[ QUOTE ]
It lags a lot on Stars when one has to fake-mousedrag the corner to resize on SNG/MTTs

[/ QUOTE ]I tried Redraw, Hide and Show, as well as everything under the sun and found that to be the only thing that worked as well.
[ QUOTE ]
Xanderz - if you want to remake from the ground up no worries - but please feel free to contribute to the existing scripts on overcards.com if you want.

[/ QUOTE ]Perhaps I will have to familiarize myself with what is already out there. Even then, it usually takes me twice as long to read and understand other peoples code than just writing it [img]/images/graemlins/crazy.gif[/img]

_dave_ 10-07-2007 11:33 PM

Re: Is there any interest in a table rotation AHK script?
 
[ QUOTE ]

Perhaps I will have to familiarize myself with what is already out there.


[/ QUOTE ]

Pretty much all that is out there is on overcards.com. The only exception I remember is Nanochip's stuff and Butcha's stuff - check their posts.

Roland, Adde, Jukofyork, Halvsame, Easye, SamIam, PietM and I (and probably others I forget to mention) publish on Mogobothefool's AutoHotkey Wiki there.

[ QUOTE ]

Even then, it usually takes me twice as long to read and understand other peoples code than just writing it


[/ QUOTE ]
Lol I know the feeling [img]/images/graemlins/smile.gif[/img]

[ QUOTE ]

I tried Redraw, Hide and Show, as well as everything under the sun and found that to be the only thing that worked as well.


[/ QUOTE ]
Check my StarsPlanner source. One can get away with WinMove if the user has specified a certain flag in PokerStars user.ini file, but only for ring games.

BicVicTheQuick 10-08-2007 10:30 AM

Re: Is there any interest in a table rotation AHK script?
 
Wow, that sounds great!

I always wanted to have something like this!! I would also love the possibility to move the pending table to a second monitor and show it at full size!!

I would be willing to pay for this, if it helps to motivate you [img]/images/graemlins/smile.gif[/img]

Xanderz 10-08-2007 02:35 PM

Re: Is there any interest in a table rotation AHK script?
 
[ QUOTE ]
I would also love the possibility to move the pending table to a second monitor and show it at full size!!

[/ QUOTE ]
I would think two large windows would make the tables jumping around a little too "busy". Try the script first (It'll be posted soon) and see if you still want this.

Xanderz 10-08-2007 04:15 PM

Re: Is there any interest in a table rotation AHK script?
 
The script is ready for testing. If you have any ideas for a better layout than the one provided (or if the layout doesn't seem to be working properly) let me know. Currently, the large window is in the bottom right corner of the screen.

Download: FullTiltTableRotator.ahk

BicVicTheQuick 10-08-2007 04:44 PM

Re: Is there any interest in a table rotation AHK script?
 
hey Xanderz,

Just tested the skript and it's really great!!! Nevertheless I would like to come back to my previous suggestion.

I would like to have just ONE large window and it should be the one on the extra monitor. All tables on the other monitor will remain in the small size.

This way I can see all my tables at one monitor (in case I wanna see the action at one of my tables etc.) but I can concetrate mainly on the other monitor. This way the tables would be much clearly layed out IMO....

Hope you got my point!

Thanks in advance if you could write this!!!!

Xanderz 10-08-2007 04:51 PM

Re: Is there any interest in a table rotation AHK script?
 
OK, I think I misunderstood the first time. I should be able to do that. One question though, how many small tables should there be? Possibilities include 4, 6, 9 with 4 being the largest size per table obviously.

Xanderz 10-08-2007 08:27 PM

Re: Is there any interest in a table rotation AHK script?
 
Testing for 2 monitors is ready. I cannot test if this works myself as I only have 1 monitor.

Use same download link as above, but you will have to do one edit at the very top of the script to make it support 2 monitors.

Change the Line that reads:

CreateLayout()

to:

Create2MonitorLayout(6)

which will create 6 slots, if you want more or less, use a different number. It will support up to 16 slots. 4 slots will be a 2x2 layout, 6 slots will be a 3x2 layout, 9 slots will be a 3x3 layout, 12 slots will be a 4x3 layout, 16 slots will be a 4x4 layout.

BicVicTheQuick 10-09-2007 03:50 AM

Re: Is there any interest in a table rotation AHK script?
 
You are GREAT!!!!!!

Can't wait until today evening to test this!!!!

I currently play 12 tables and didn't even know that FTP supports also 16....If this is really true, I will start playing 16 tables know as this shouldn't be a problem with your skript [img]/images/graemlins/smile.gif[/img]

Xanderz 10-09-2007 09:05 AM

Re: Is there any interest in a table rotation AHK script?
 
[ QUOTE ]
I currently play 12 tables and didn't even know that FTP supports also 16....If this is really true, I will start playing 16 tables know as this shouldn't be a problem with your skript [img]/images/graemlins/smile.gif[/img]

[/ QUOTE ]I believe they only allow you register for 12 Sit N Go's at a time. I don't know how many ring tables you are allowed to be seated at.

BicVicTheQuick 10-09-2007 09:17 AM

Re: Is there any interest in a table rotation AHK script?
 
Just checked it with FT-support!
THey allow normally just 12 tables but If you email them, they will enable you for 16 tables at once!!!

REALLY GREAT [img]/images/graemlins/smile.gif[/img]

catcher193 10-09-2007 05:57 PM

Re: Is there any interest in a table rotation AHK script?
 
can someone make 1 for stars, it would be awesome if I could choose the zones exactly as Stars planner lets me, but move them as your script does, and it would also be great if I could be playing SNGs on both sites... not a bggie if noone tackles this task

_dave_ 10-09-2007 06:06 PM

Re: Is there any interest in a table rotation AHK script?
 
On the way catcher, as I think I mentioned in the other thread yesterday - hopefully done in a few hours.

Is a bit experimental/different to this I think, but should be sweet if I can get it working as I imagine it should.

catcher193 10-09-2007 06:10 PM

Re: Is there any interest in a table rotation AHK script?
 
weeeeeeeeeeeeeeeeee

catcher193 10-09-2007 06:11 PM

Re: Is there any interest in a table rotation AHK script?
 
your PMs were full I just wanted to offer help in any way possible, most likely testing or w/e

Xanderz 10-09-2007 07:50 PM

Re: Is there any interest in a table rotation AHK script?
 
I may release a version for other sites in the future. If anyone else wants to modify it, here are a couple hints on what will need modified:

ControlGet, visible, Visible, , FTCSkinButton11, ahk_id %id%

Needs to be changed to check a certain pixel instead of the visibility of the control.

WinGet tables, List, ahk_class FTC_TableViewFull

Needs to be changed to get Stars tables

Every instance of a WinMove, such as the one that follows:

WinMove, ahk_id %id%, , X%s%, Y%s%, Width, Height

Needs to be followed by a WinActivate and then a MouseClickDrag (this will add lag to moving tables around which is why I am hesitant to support Stars)

Edit: probably need a WinWaitActive between WinActivate and MouseClickDrag as well

_dave_ 10-09-2007 08:18 PM

Re: Is there any interest in a table rotation AHK script?
 
[ QUOTE ]
your PMs were full I just wanted to offer help in any way possible, most likely testing or w/e

[/ QUOTE ]

I thought it could contain 1 more so I haven't spent the time to archive PMs yet [img]/images/graemlins/blush.gif[/img] - I'm sure I've had 211 or 212 in there before. I'll delete a couple now.

Nothing to test yet, will be soon. Running in to a few obstacles, hopefully overcoming them will be of great help for other scripts also in the future.

Catcher, what system are you running?

Because of certain techniques I am using, this will be WindowsXP and above only - but I guess that's not really an issue anymore?

Xanderz 10-09-2007 08:21 PM

Re: Is there any interest in a table rotation AHK script?
 
[ QUOTE ]
Because of certain techniques I am using, this will be WindowsXP and above only - but I guess that's not really an issue anymore?

[/ QUOTE ]
I hope not! Does this mean you found a way around the ugly MouseClickDrag?

_dave_ 10-09-2007 08:23 PM

Re: Is there any interest in a table rotation AHK script?
 
Xanders, this is straight out of StarsPlanner and does what you are describing:

<font class="small">Code:</font><hr /><pre>
win_adjustsize(id, desired_w)
{
global border
global caption
global f5redrawtable

WinGetClass, winclass, ahk_id%id%
;Msgbox, %winclass%
IfWinExist, ahk_id%id% ahk_group FullTiltTables
{
desired_h := (desired_w / 1.45155) + border + caption
WinMove, ahk_id%id%, , , , desired_w, desired_h
}
else IfWinExist, ahk_id%id% ahk_group PartyTables
{
desired_h := (desired_w / 1.45155) + border + caption
WinMove, ahk_id%id%, , , , desired_w, desired_h
}
else IfWinExist, ahk_id%id% ahk_group AbsoluteTables
{
desired_h := (desired_w / 1.45155) + border + caption
WinMove, ahk_id%id%, , , , desired_w, desired_h
}
else if (winclass = "AutoHotkeyGUI")
{
;Msgbox, AHKwin
desired_h := (desired_w / 1.45155) + border + caption
WinMove, ahk_id%id%, , , , desired_w, desired_h

}
else
{
WinGetTitle, title, ahk_id%id%
tourney := InStr(title, "Tournament")
if (f5redrawtable &amp;&amp; (tourney &lt; 1))
{
;Msgbox, in
desired_h := (desired_w / 1.45155) + border + caption
WinMove, ahk_id%id%, , , , desired_w, desired_h
Sleep, -1
ControlSend, , {F5}, ahk_id%id%
}
else
{
WinMove, ahk_id%id%, , 0, 0
WinGetPos, x, y, w, h, ahk_id%id%
x1 := x + w-4
y1 := y + h-4
amt := desired_w - w
WinActivate,ahk_id%id%
BlockInput, SendAndMouse
MouseGetPos, x, y
MouseMove, %x1%, %y1%, 0
Click, %x1%, %y1%, D
MouseMove, amt, 0, 0, R
Click, U
MouseMove, x, y, 0
BlockInput, Default
}
}
}
</pre><hr />

Obviously there are some globas set in other parts of the script not shown here, but this pretty much gives you a multi-site resize function.

dave.

_dave_ 10-09-2007 08:28 PM

Re: Is there any interest in a table rotation AHK script?
 
[ QUOTE ]
[ QUOTE ]
Because of certain techniques I am using, this will be WindowsXP and above only - but I guess that's not really an issue anymore?

[/ QUOTE ]
I hope not! Does this mean you found a way around the ugly MouseClickDrag?

[/ QUOTE ]

See above - Click/Drag still required for tournament tables, and required for all unless the user edits their pokerstars user.ini file (which the functionality of is by no means guaranteed in the future).

No, my experiments are more to do with getting ImageMatch / PixelSearch to work when widows are obscured, which cuts down on the need for resizing greatly (lol I hope, at least!). We will see if I can actually make it work tho [img]/images/graemlins/smile.gif[/img]

catcher193 10-09-2007 08:32 PM

Re: Is there any interest in a table rotation AHK script?
 
http://i53.photobucket.com/albums/g7...a/Untitled.jpg

4 monitors but I don,t think that matters

Xanderz 10-09-2007 08:42 PM

Re: Is there any interest in a table rotation AHK script?
 
Not bad, but we take two complete different approaches. I like to have my generic functions completely ignorant of any site specific information. That way when I have to change something for a site, I just go to the Site's initialization function and change the necessary things there.

So my tiling function contains this to resize tables:
<font class="small">Code:</font><hr /><pre>
WinGetClass, class, ahk_id %id%
[some code in between to determine the size and position (x, y, wh, ht)]
WinMove, ahk_id %id%, , x, y, wh, ht
if Tile_Drag%class% {
WinActivate, ahk_id %id%
MouseClickDrag, Left, wh-3, ht-3, wh-2, ht-2
}</pre><hr />
where Tile_DragPokerStarsTableFrameClass would be a variable set to true in the Poker Stars initialization function.

_dave_ 10-09-2007 10:53 PM

Re: Is there any interest in a table rotation AHK script?
 
[ QUOTE ]
http://i53.photobucket.com/albums/g7...a/Untitled.jpg

4 monitors but I don,t think that matters

[/ QUOTE ]

Monitors should not be an issue. My script is currently designed for a single monitor - you have a 30" as primary, catcher? I'm currently tesing on a 24".

Vista 64 is interesting, hopefully will not cause trouble.


Annoyingly I am done for the night [img]/images/graemlins/frown.gif[/img]

Took me a lot longer than I had hoped to figure out a few things... If you have used UrgentTable, you will know it can't spot all-ins - I needed to find a solution to that for this new script to be of any use at all. Good new is I did, bad new it took the whole night to get working properly [img]/images/graemlins/smile.gif[/img]

Not much to add before an initial release, but more than I can do now... will def. have something posted tomorrow.

Just imagine the mutant offspring of UrgentTable / TableResizer and StarsPlanner [img]/images/graemlins/smile.gif[/img]

Xanderz 10-09-2007 11:12 PM

Re: Is there any interest in a table rotation AHK script?
 
[ QUOTE ]
Just imagine the mutant offspring of UrgentTable / TableResizer and StarsPlanner [img]/images/graemlins/smile.gif[/img]

[/ QUOTE ]
Certainly intoxication is the cause of almost all mutant offspring, no?

Edit: Even though all my posts hint at intoxication, that usually isn't so (edit was for typos in that small sentence above..)

_dave_ 10-09-2007 11:22 PM

Re: Is there any interest in a table rotation AHK script?
 
Lol yes indeed [img]/images/graemlins/smile.gif[/img]

Only a drunk person would think it would be a good idea to try and write what I am trying... anyone sober would have realized the silly stunts required to actually make it work and given up before beginning [img]/images/graemlins/smile.gif[/img]

Nevertheless, I hope it will be worth it - I'd imagine you could make use of a PixelSearch function that works on non-visible windows?

Xanderz 10-09-2007 11:30 PM

Re: Is there any interest in a table rotation AHK script?
 
What do you mean? Is there a way to get the pixel that a window would contain if it were to become visible?

catcher193 10-09-2007 11:33 PM

Re: Is there any interest in a table rotation AHK script?
 
[ QUOTE ]
[ QUOTE ]
Just imagine the mutant offspring of UrgentTable / TableResizer and StarsPlanner [img]/images/graemlins/smile.gif[/img]

[/ QUOTE ]


[/ QUOTE ]
lol sick, that script will be soooooo sick if you get it out.

BicVicTheQuick 10-11-2007 03:31 AM

Re: Is there any interest in a table rotation AHK script?
 
[ QUOTE ]
Testing for 2 monitors is ready. I cannot test if this works myself as I only have 1 monitor.

Use same download link as above, but you will have to do one edit at the very top of the script to make it support 2 monitors.

Change the Line that reads:

CreateLayout()

to:

Create2MonitorLayout(6)

which will create 6 slots, if you want more or less, use a different number. It will support up to 16 slots. 4 slots will be a 2x2 layout, 6 slots will be a 3x2 layout, 9 slots will be a 3x3 layout, 12 slots will be a 4x3 layout, 16 slots will be a 4x4 layout.

[/ QUOTE ]

Ok, tested the skript yesterday in in general it works great!! Nevertheless I would like to make some suggestions (hope that's ok for you).

- Is there a possibility to make your skript work together with FullTiltPlaner: http://overcards.com/wiki/moin.cgi/FullTiltPlanner ??? It is because the slots on the primar monitor do overlap so that you can't see all tables a the same time. I tried to have both scripts open but FullTiltPLaner prevented the tables from rotating (Maybe this is something that is more addressed to Dave).

- Another thing that happened is that the large table on the 2nd monitor sometimes appeared that larg that only a 1/4 of the table was visible. When I moved it back to the 1st monitor it appeared again in the normal size. Could this be b/c I was using FullTiltShortcuts at the same time: http://overcards.com/wiki/moin.cgi/FullTiltShortcuts ??

If you could fix this two things, it would really be a power tool for every multitable with 2 monitors!

THANKS

donkraft 10-11-2007 04:39 AM

Re: Is there any interest in a table rotation AHK script?
 
This has awesome-potential written all over it

The reason I currently only play 8 tables is, that anything more is too small to view PAHUD stats.

I have 2 x 20" badboys running 1600x1200.

If I could have 4 tables on one monitor (those that require action) and then 8-9 more on my secondary monitor - that would be sick awesome!


All times are GMT -4. The time now is 01:32 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.