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)
-   -   Table Highlighter (New AHK Script) (http://archives1.twoplustwo.com/showthread.php?t=144101)

Adde 06-21-2006 04:37 PM

Table Highlighter (New AHK Script)
 
Add a Highlight Bar on all Partypoker tables that need your attention.

http://overcards.com/wiki/moin.cgi/TableHighlighter

You can configure the Highlight Bar to show only when (A) action buttons are present, or when (B) action or advance action buttons are present.

You can choose to have a red bar over the window title bar, or anywhere on the table, for instance a larger blue at the bottom, over the chat box area. Here's a screenshot that shows how both of these would look (note that you can only use one Highlight Bar at a time; the image is "faked" to show an example of both).

http://img479.imageshack.us/img479/3484/thsmall20ot.jpg

Adde

photojake 06-21-2006 04:44 PM

Re: Table Highlighter (New AHK Script)
 
Thats great. Can this be modified to let you know which table is selected. I use a mouseless AHK script to go from table to table. Sometime, I think that I have one table active and tell it to fold, when really I have another table active. How would you go about modifing the script to be used to highlight the window that is currently active. Thanks for all the great work.

Jacob

Adde 06-21-2006 05:05 PM

Re: Table Highlighter (New AHK Script)
 
[ QUOTE ]
Thats great. Can this be modified to let you know which table is selected. I use a mouseless AHK script to go from table to table. Sometime, I think that I have one table active and tell it to fold, when really I have another table active. How would you go about modifing the script to be used to highlight the window that is currently active. Thanks for all the great work.

Jacob

[/ QUOTE ]

Sure, no problem to add this, but instead of doing a quick fix I think the way to go is to make a more general framework that can handle infinite number of bars; say one for Action Buttons, one for Advance Action Buttons, one for Active Table, etc.

Might take some time though, so don't expect it overnight. [img]/images/graemlins/wink.gif[/img]

Adde

Adde 06-21-2006 05:10 PM

Re: Table Highlighter (New AHK Script)
 
Hmm, perhaps I misunderstood your post. Did you mean modifying the script to ONLY highlight the active table (and thus don't highlight tables that need your attention)?

Adde

Adde 06-21-2006 05:40 PM

Re: Table Highlighter (New AHK Script)
 
UPDATE

*** You can now choose to only highlight the active table by configuring this setting:

th_only_active_table = 1

http://overcards.com/wiki/moin.cgi/TableHighlighter

Adde

Jehaim 06-21-2006 06:36 PM

Re: Table Highlighter (New AHK Script)
 
Another very helpfull program, ty!

jukofyork 06-21-2006 07:33 PM

Re: Table Highlighter (New AHK Script)
 
Perhaps one thing that could also help, would be to have the bar flash when you are running very low on time at a table (I have a new version of AR which kinda does this in a different way [and it was very helpful], but it still has a small bug, so I've not released it yet).

I set the threshold for flashing to be about 7-8 seconds remaining and found this was a good balance between too much flashing, and too little time to get to the table to act.

Juk [img]/images/graemlins/smile.gif[/img]

Adde 06-21-2006 07:40 PM

Re: Table Highlighter (New AHK Script)
 
[ QUOTE ]
Perhaps one thing that could also help, would be to have the bar flash when you are running very low on time at a table (I have a new version of AR which kinda does this in a different way [and it was very helpful], but it still has a small bug, so I've not released it yet).

I set the threshold for flashing to be about 7-8 seconds remaining and found this was a good balance between too much flashing, and too little time to get to the table to act.

Juk [img]/images/graemlins/smile.gif[/img]

[/ QUOTE ]

Good points. I'll try and see how it looks. I hope the flashing experience won't be too overwhelming though, since the PA stats are quite flashy for me now, at least some time into a multitable session.

Adde

Mogobu The Fool 06-21-2006 11:20 PM

Re: Table Highlighter (New AHK Script)
 
Nice script. I noticed you're doing it with graphic checks instead of looking for action buttons. Don't you find that slower than checking for the windows?

On flashing: Set the script up so that anyone who likes/doesn't like the flashing can toggle it easily in the script code, and let them choose.

Nice job.

photojake 06-22-2006 02:53 AM

Re: Table Highlighter (New AHK Script)
 
Thanks Adde,

Is there a way to make it to work more generally. Like for any active window? Right now I believe it only works for Party and their skins. Thanks.

Jacob

Adde 06-22-2006 09:43 AM

Re: Table Highlighter (New AHK Script)
 
[ QUOTE ]
Nice script. I noticed you're doing it with graphic checks instead of looking for action buttons. Don't you find that slower than checking for the windows?

On flashing: Set the script up so that anyone who likes/doesn't like the flashing can toggle it easily in the script code, and let them choose.

Nice job.

[/ QUOTE ]

Thanks Mogobu. As for grapic checks, that's the only way to see if the advance action button is checked or not. If already checked, no highlight bar should be shown.

Adde

Adde 06-22-2006 09:44 AM

Re: Table Highlighter (New AHK Script)
 
[ QUOTE ]
Thanks Adde,

Is there a way to make it to work more generally. Like for any active window? Right now I believe it only works for Party and their skins. Thanks.

Jacob

[/ QUOTE ]

Yes, no probs. I'll add this later on.

Adde

Back In Black 06-22-2006 01:20 PM

Re: Table Highlighter (New AHK Script)
 
How do you change the bar location, size and color? I couldn't find anything useful on OC.com...maybe I'm just retarded though.

Adde 06-22-2006 02:34 PM

Re: Table Highlighter (New AHK Script)
 
[ QUOTE ]
How do you change the bar location, size and color? I couldn't find anything useful on OC.com...maybe I'm just retarded though.

[/ QUOTE ]

; Define width and height of Highlight Bar.
; Bar will be drawn at (x,y) coordinates (0+th_bar_left,0+th_bar_top) of active window.
; Default values 26 and 0 for Height and Top will mimic the window title bar.
; Default values of 65 and 510 will create a larger bar over the chat box area.
; Try wich one suits you best.

th_bar_width = 795
th_bar_height = 26 ;65
th_bar_left = 0
th_bar_top = 0 ;510

; Define color and transparancy of Highlight Bar.

th_bar_color = FF0000
th_bar_trans = 150

george w 06-22-2006 02:40 PM

Re: Table Highlighter (New AHK Script)
 
if someone could make a script that puts flames all around the table after you win 3 pots in a row like in the old nba live games i'd be much obliged.

Back In Black 06-22-2006 03:59 PM

Re: Table Highlighter (New AHK Script)
 
Lol...looks like I need to get over my fear of AHK code and actually look at them before asking stupid questions.

aflaba 06-29-2006 02:48 PM

Re: Table Highlighter (New AHK Script)
 
I like your table mod Adde. Do you know where I can find it?

_dave_ 06-30-2006 01:45 AM

Re: Table Highlighter (New AHK Script)
 
Hi Adde,

this is a great script - very useful.

I have made a small modification on my script, maybe you would want to incorperate it in to the version on overcards.com?

Lines to prevent word-wrap below [img]/images/graemlins/frown.gif[/img]
__________________________________________________ _____________________________________

On line 158, instead of:
<font color="blue">
WinGet, idList, List, Good Luck ahk_class #32770, , PartyPoker.com:, You have chosen to sit out
</font>
I changed it to:
<font color="blue">
WinGet, idList, List, Good Luck ahk_class #32770, , , You have chosen to sit out
</font>
(Allows it to work with Empire when sitting out, I think)

Also, more importantly:

On line 244, instead of:
<font color="blue">
Gui, %guiNum%: Show, w%th_bar_width% h%th_bar_height% x%px% y%py% NoActivate
</font>
I chenged it to:
<font color="blue">
Gui, %guiNum%: Show, w%w% h%th_bar_height% x%px% y%py% NoActivate
</font>

This makes the highlight bar automatically resize (width) with the tables - for those of us using the Party/Empire shrunken table mode [img]/images/graemlins/smile.gif[/img] Height is not so important, but the same alteration could me made I suppose. On overly tall highlight bar isn't a bother, if anything it helps draw attenrion to the table needing action, but the highlight bar extending over the right side of the table across the neighboring table was a bit confusing with the tables at minimum size.

I hope this is useful to you,


This is a really handy script, far above my n00b ability [img]/images/graemlins/smile.gif[/img]

Many thanks,

dave.

Adde 07-04-2006 12:55 PM

Re: Table Highlighter (New AHK Script)
 
[ QUOTE ]
I like your table mod Adde. Do you know where I can find it?

[/ QUOTE ]

Back from vacation...

Ifx (here at 2+2) made it a year ago or so. Don't know where to download it now, and I've made some own changes too. PM me with your email and I can send it to you.

Adde

Adde 07-04-2006 12:59 PM

Re: Table Highlighter (New AHK Script)
 
[ QUOTE ]
I have made a small modification on my script, maybe you would want to incorperate it in to the version on overcards.com?

[/ QUOTE ]

Hey Dave, that is some nice modifications. I've updated the script webpage to include them now. Thanks.

http://overcards.com/wiki/moin.cgi/TableHighlighter

Adde

_dave_ 07-05-2006 01:18 AM

Re: Table Highlighter (New AHK Script)
 
Hi Adde,

I am glad you like my alterations to this script - let me re-state, I am now finding this script an essential part of my Party multi-tabling aresenal [img]/images/graemlins/smile.gif[/img] Many thanks.

I have actually made a few more modifications now. I have changed the <font color="blue">TH_DoHighlight:</font> function to this - (new parts in <font color="blue">blue</font>, I think):

Basically, this retrieves the countdown timer from "static3" (if it is visible), and makes the highlight bar cycle through varying colours depending upon the urgency of action required - it starts off cyan, then green, if it gets to less than 6 seconds, it goes red and also beeps the PC speaker [img]/images/graemlins/smile.gif[/img]


--------------------------------------------------------------------------
TH_DoHighlight:
<font color="blue"> th_bar_color = 00FFFF ;cyan

ControlGet, s3vis, Visible, , Static3, ahk_id%tableID%
if (s3vis)
{
ControlGetText, remaining, Static3, ahk_id%tableID%
If( InStr(remaining, "You have") AND InStr(remaining, "secs to respond"))
{
StringMid, remaining, remaining, InStr(remaining, "You have")+9
StringMid, remaining, remaining, InStr(remaining, "secs to respond")-2,, L
;MsgBox %remaining%
If(remaining &lt;= 6)
{
th_bar_color = FF0000 ;red

SoundBeep, 1500, 20
Sleep, 30

}
Else If(remaining &lt;= 9)
{
th_bar_color = FF8000 ;orange
}
Else If(remaining &lt; 12)
{
th_bar_color = FFFF00 ;yellow
}
Else If(remaining &lt; 16)
{
th_bar_color = 00FF00 ;green
}

}
}
</font> CoordMode, Pixel, Relative
if (th_tables_arr%indexThis%2 = TRUE)
{
<font color="blue"> Gui, %guiNum%: Color, %th_bar_color%</font>
continue
}
WinGetPos, x, y, w, h, ahk_id%tableID%
px := x + th_bar_left
py := y + th_bar_top

Gui, %guiNum%: +Alwaysontop +Lastfound +Owner
Gui, %guiNum%: Color, %th_bar_color%
WinSet, Transparent, %th_bar_trans%
Gui, %guiNum%: -Caption
Gui, %guiNum%: Show, w%w% h%th_bar_height% x%px% y%py% NoActivate

th_tables_arr%indexThis%2 := TRUE
}

--------------------------------------------------------------------------

There must be a more elegant way of doing this, but I am somewhat new to this AHK business...


With this I can now play 8+ table of 6-max no problem... it is excellent, again, many thanks.

My modifications I think are very crude, and surely there is a cleaner way of doing this? Is there an equivalent of the switch/case construct in AHK or must these things be done with many else/if statements?

Many thanks,

dave.

Adde 07-05-2006 09:33 AM

Re: Table Highlighter (New AHK Script)
 
Hey, glad you like it. [img]/images/graemlins/smile.gif[/img]

I've also thought about the changes you made, but haven't got my thumbs out yet. I'll add them soon, and make them optional by using a setting like pst_enable_color_cycle or something.

Adde

Jehaim 07-05-2006 09:39 AM

Re: Table Highlighter (New AHK Script)
 
Was just gonna ask if it could be made that it changes color depending on time left.

Awesome. Ty adde and dave. [img]/images/graemlins/grin.gif[/img]

tizim 07-06-2006 09:10 AM

Re: Table Highlighter (New AHK Script)
 
I can already tell in a glance which tables have the action buttons popped up. This program would be most useful to me if it flashed a different color indicating that I only have 15 or so seconds left to act.

_dave_ 07-06-2006 09:49 PM

Re: Table Highlighter (New AHK Script)
 
[ QUOTE ]
I can already tell in a glance which tables have the action buttons popped up. This program would be most useful to me if it flashed a different color indicating that I only have 15 or so seconds left to act.

[/ QUOTE ]

Hi Tizim,

did you miss my last post in this thread? (3 posts up in flat mode).

Implement the changes I posted, and the highlight changes from cyan through green, yellow, orange as time decreases, then goes red and beeps maniacly when you have &gt;6 seconds to act on a table.

I think this is what you are requesting, no?

Enjoy,

dave.

tizim 07-07-2006 05:39 AM

Re: Table Highlighter (New AHK Script)
 
Actually dave, your modifications sound like exactly what I'm looking for. But, I'm having trouble getting the default TableHighlighter to work.

When the bar begins to flash, it flashes at the center of my computer screen rather than at the title bar of the table. How can I fix this?

cassolete 07-08-2006 10:15 PM

Re: Table Highlighter (New AHK Script)
 
Very nice script !! Thanks all of you guys for making multitabling easier.
<font color="blue"> These images will make it possible to recognize when advance action buttons are present on a table. This functionality may not work if you are using a different table background. If that is the case, try to open them with a image editor and crop them slightly. </font> It's my case and I can't understand what should i do with this two images to make highlighting work with advance buttons. The problem is with a word "CROP". My dictionary translates it incorrectly (or just im so dumb that can't get sense). Could you please tell me what to do in another words? THANKS !

jukofyork 07-08-2006 11:17 PM

Re: Table Highlighter (New AHK Script)
 
[ QUOTE ]
Very nice script !! Thanks all of you guys for making multitabling easier.
<font color="blue"> These images will make it possible to recognize when advance action buttons are present on a table. This functionality may not work if you are using a different table background. If that is the case, try to open them with a image editor and crop them slightly. </font> It's my case and I can't understand what should i do with this two images to make highlighting work with advance buttons. The problem is with a word "CROP". My dictionary translates it incorrectly (or just im so dumb that can't get sense). Could you please tell me what to do in another words? THANKS !

[/ QUOTE ]To crop an image simply means to cut some of the edges off (so if the original image was say 1000x1000, you might "crop" it down to be 900x900 by cutting the edges off).

Hope my definition makes sense - Juk [img]/images/graemlins/smile.gif[/img]

cassolete 07-08-2006 11:51 PM

Re: Table Highlighter (New AHK Script)
 
Yes !! Thanks. Just as i thought. I think i understood the problem. It was not with my background, but with my table size: i use party tilling (yes, i am a poor russian with only 17' monitors [img]/images/graemlins/smile.gif[/img] ). So i suppose i need to decrease the size of images to allow script recognize them at the table when it needs.
A have a request. Could anybody teach this script not to hightlight if the table is active ? I mean if I present at this table. I use TweakUI that allows me to make table active if my mouse pointer is situated on it. At first, i don't really need hightlight if i am at THIS current table now. Second, if highlight bar is on the top of the table it doesn't allow me to move this table(i use PartyPlanner to do it); if it's on the bottom of the table, i can't switch muck lossing\uncalled hands option, can't type anything in chat window and can't view last hands results to know how active was the guy which is trying to steal my blind now.
Thanks and excuse my awful english.

cassolete 07-09-2006 01:44 AM

Re: Table Highlighter (New AHK Script)
 
Have just tried to cut this image from a screenshot with my resized table (with advanced buttons) and then to convert it to a .gif using ACDSee. Highlighter can recognize it when i view it with ACDSee(highlight bar appears), but can't when it appears on a table. Any suggestions?

cassolete 07-09-2006 09:30 PM

Re: Table Highlighter (New AHK Script)
 
I suppose that since my table size changes with Party tile (becomes 641x471 instead of standart 797x580), i should change some coordinates in the script.
<font color="blue"> ImageSearch, outx, outy, x+150, y+350, x+700, y+520, %th_image_name_checked%
if (ErrorLevel = 0)
goto TH_DontHighlight

ImageSearch, outx, outy, x+150, y+350, x+700, y+520, %th_image_name_unchecked%
if (ErrorLevel = 0)
goto TH_DoHighlight </font>
I tried to do it myself by decreasing it proportionally (x+120 instead of x+150, x+600 instead of x+700; y+280 instead of y+350 and y+420 instead of y+520) but nothing has happened. Maybe I should change them in another way? Or maybe i should change something is the scrip also?
Please HELP ME , GUYS, to find my problem... This highlight feature is too important for me. Thanks.

tizim 07-12-2006 10:02 PM

Re: Table Highlighter (New AHK Script)
 
Bump for this:

[ QUOTE ]
When the bar begins to flash, it flashes at the center of my computer screen rather than at the title bar of the table. How can I fix this?

[/ QUOTE ]

Schizo 07-14-2006 03:50 PM

Re: Table Highlighter (New AHK Script)
 
http://img47.imageshack.us/img47/944/error7mr.jpg

help??? [img]/images/graemlins/confused.gif[/img]

cassolete 07-16-2006 11:24 PM

Re: Table Highlighter (New AHK Script)
 
guys,help, pleeeease

Mogobu The Fool 07-20-2006 06:03 PM

Re: Table Highlighter (New AHK Script)
 
[ QUOTE ]
http://img47.imageshack.us/img47/944/error7mr.jpg

help??? [img]/images/graemlins/confused.gif[/img]

[/ QUOTE ]

You probably need to download a newer version of AutoHotkey.

Adde 07-23-2006 04:16 PM

Re: Table Highlighter (New AHK Script)
 
[ QUOTE ]
Actually dave, your modifications sound like exactly what I'm looking for. But, I'm having trouble getting the default TableHighlighter to work.

When the bar begins to flash, it flashes at the center of my computer screen rather than at the title bar of the table. How can I fix this?

[/ QUOTE ]

With "default", you mean the version on IC, and not daves modifications?

You run any other applications that could cause this (Partyplanner, etc)? Try closing everything but Partypoker and TableHighlighter.ahk. Still the same problem?

Adde

Adde 07-23-2006 04:17 PM

Re: Table Highlighter (New AHK Script)
 
[ QUOTE ]

A have a request. Could anybody teach this script not to hightlight if the table is active ? I mean if I present at this table. I use TweakUI that allows me to make table active if my mouse pointer is situated on it. At first, i don't really need hightlight if i am at THIS current table now. Second, if highlight bar is on the top of the table it doesn't allow me to move this table(i use PartyPlanner to do it); if it's on the bottom of the table, i can't switch muck lossing\uncalled hands option, can't type anything in chat window and can't view last hands results to know how active was the guy which is trying to steal my blind now.
Thanks and excuse my awful english.

[/ QUOTE ]

I'll look into this, and table resize problems.

Adde

Roland 07-23-2006 04:44 PM

Re: Table Highlighter (New AHK Script)
 
[ QUOTE ]
and table resize problems.


[/ QUOTE ]

Hey Adde, I wrote some code for the AttentionQueue in TableNavigator that can handle resized tables and doesn't need images. If you want me to I can throw together the funtions you'll need and you should be able to use it as is.

Adde 07-23-2006 04:59 PM

Re: Table Highlighter (New AHK Script)
 
[ QUOTE ]
[ QUOTE ]
and table resize problems.


[/ QUOTE ]

Hey Adde, I wrote some code for the AttentionQueue in TableNavigator that can handle resized tables and doesn't need images. If you want me to I can throw together the funtions you'll need and you should be able to use it as is.

[/ QUOTE ]

Heya, that would be super! I'm struggling with imageSearch and scaling right now, with little success. No success.

Adde

Roland 07-23-2006 05:03 PM

Re: Table Highlighter (New AHK Script)
 
[ QUOTE ]
with little success. No success.


[/ QUOTE ]

Yeah, I know, I tried that for Stars and failed too. I'll send it over in a few.


All times are GMT -4. The time now is 11:21 PM.

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