Open Side Menu Go to the Top
Register
PlaceMint: Window Positioning Tool PlaceMint: Window Positioning Tool

04-11-2009 , 03:55 PM
Quote:
Originally Posted by TheIrishThug
If there are only a handful of tables, then yes you could make something that matched those.
Code:
(Table1|Table2|...)
I still have two more weeks before I graduate, so I can't really do more than answer some basic questions til then. Once I get that over with, I'll be able to do some real work on PlaceMint.
Nice. This seems to work via brute force. Pretty easy work around. Good luck on graduation Irishthug!!
PlaceMint: Window Positioning Tool Quote
04-13-2009 , 10:24 AM
Quote:
Originally Posted by Lyrrad
Hey. I've managed to change the code to suit my needs by checking to see if the window size has changed before sending a F5 to refresh the window after moving. This is a change to the moveAndSizeWin function in Slot.cs. This way it doesn't refresh unnecessarily after the window moves. For me, it removes all of the delay and freezing that occurs when I close a window in an early slot with ripple and F5 enabled. It only stops the refresh if the slots are the same size.

This could be useful to others, so I'm posing the code here (under GPL, of course).

Code:
        public void moveAndSizeWin(bool movable, bool sizable, bool sendF5)
        {
            bool success;
            if (sendF5)
            {
                Win32.RECT oldRect = new Win32.RECT();
                success = Win32.GetWindowRect(hWND, out oldRect);
                if (!success)
                {
                    // Get the last Win32 error code
                    int errorCode = Marshal.GetLastWin32Error();
                    string errorMessage = String.Format(Resources.setWindowPosFailureFormat, "move and size", errorCode);
                    throw new Win32Exception(errorMessage);
                }
                if ((oldRect.Right - oldRect.Left) == _shape.Width && (oldRect.Bottom - oldRect.Top) == _shape.Height)
                {
                    // Don't sendF5 if the window size has not changed
                    sendF5 = false;
                }
            }

            success = Win32.SetWindowPos(hWND, Win32.HWND_TOP, _shape.X, _shape.Y, _shape.Width, _shape.Height,
                 Win32.SWP_NOZORDER | Win32.SWP_NOACTIVATE |
                 ((movable) ? 0 : Win32.SWP_NOMOVE) | ((sizable) ? 0 : Win32.SWP_NOSIZE));
            if (!success)
            {
                // Get the last Win32 error code
                int errorCode = Marshal.GetLastWin32Error();
                string errorMessage = String.Format(Resources.setWindowPosFailureFormat, "move and size", errorCode);
                throw new Win32Exception(errorMessage);
            }
            
            if (sendF5)
            {
                //Attempt to cause redraw
                showWin();
                SendKeys.Send("{F5}");
            }
        }

Do we need a compiler to use this? Can anyone make it super-duper noob friendly for me please?
PlaceMint: Window Positioning Tool Quote
04-13-2009 , 12:13 PM
Yes the code needs to be recompiled to use this fix. When I get started working, I will put out a new version with this as a fix before I get deep and dirty working on stack support.
PlaceMint: Window Positioning Tool Quote
04-17-2009 , 09:26 AM
Ongame support please!

Tables are named

TableName, Limit/No Limit/Potlimit Texas Hold'em, Stake (Real Money) [ID=xxxxx]
PlaceMint: Window Positioning Tool Quote
04-17-2009 , 10:53 AM
Hi, thanks for this software first. I wanted to ask if you could check the Absolute Regex, because the old one, as well the new posted here don't work for me.
It would be nice, if you could add a simple feature like highlighting the active table (slot), like in one of the pokerstars betpot scripts.
PlaceMint: Window Positioning Tool Quote
04-20-2009 , 02:15 PM
my FT tables will occasionally open up and go into my Stars slots instead...

is there some way to ensure this doesn't happen?

happens maybe 10% of the time

EDIT: I only play HU, so it should be easy to get Stars/FT different b/c FT says "heads up" while Stars says "1 on 1"

Last edited by Reliant444; 04-20-2009 at 02:29 PM.
PlaceMint: Window Positioning Tool Quote
04-20-2009 , 03:41 PM
Quote:
Originally Posted by DoMeTrue
Hi, thanks for this software first. I wanted to ask if you could check the Absolute Regex, because the old one, as well the new posted here don't work for me.
It would be nice, if you could add a simple feature like highlighting the active table (slot), like in one of the pokerstars betpot scripts.
AP Still works for me.
PlaceMint: Window Positioning Tool Quote
04-20-2009 , 04:00 PM
As I am just about done with school, I will be putting my efforts into further development of PlaceMint's features. Other members of 2p2 have been helpful in writing regular expressions to be used by PlaceMint. If these, or other people, can go thru and check the regular expressions that are currently on the website, that will allow me to focus on coding and fixing bugs.
PlaceMint: Window Positioning Tool Quote
04-20-2009 , 09:01 PM
i feel like an idiot for not being able to get this working. can someone plz give me directions. ive looked on the wiki page that you say is hte directions. thanks. i am playing ub cash games and sometimes stars cash games or tourney's mixed in.
PlaceMint: Window Positioning Tool Quote
04-20-2009 , 09:11 PM
Quote:
Originally Posted by feint06
Do we need a compiler to use this? Can anyone make it super-duper noob friendly for me please?
Yeah, a compiler is needed. I installed the free version of the Microsoft C# editor and it worked.

My code isn't perfect. I'm encountering an issue where PokerStars windows aren't properly refreshed when initially placed and I have to press F5 to refresh it. I'm not sure if this is an issue with my change or whether my change reveals a problem with the underlying code.

I'd prefer that TheIrishThug integrate my change into the program himself, as he is more likely to make sure that it works properly with any other changes he is likely to make, and because there is a problem with the refreshing.

However, if you want to try it out, you would download the Microsoft Visual C# program (I used 2008), download the code from the sourceforge website, make the change to the file, and compile it, and hopefully it would work.
PlaceMint: Window Positioning Tool Quote
04-20-2009 , 09:29 PM
Quote:
Originally Posted by Lyrrad
Yeah, a compiler is needed. I installed the free version of the Microsoft C# editor and it worked.

My code isn't perfect. I'm encountering an issue where PokerStars windows aren't properly refreshed when initially placed and I have to press F5 to refresh it. I'm not sure if this is an issue with my change or whether my change reveals a problem with the underlying code.

I'd prefer that TheIrishThug integrate my change into the program himself, as he is more likely to make sure that it works properly with any other changes he is likely to make, and because there is a problem with the refreshing.

However, if you want to try it out, you would download the Microsoft Visual C# program (I used 2008), download the code from the sourceforge website, make the change to the file, and compile it, and hopefully it would work.
sounds complicated. im just a donker. like feint said. anywhere that has noob instructions to get this working. Thanks for your helps
PlaceMint: Window Positioning Tool Quote
04-22-2009 , 11:24 PM
any better instructions created by anyone? it would be greatly appreciated. thanks for your help.
PlaceMint: Window Positioning Tool Quote
04-23-2009 , 12:18 AM
You don't have to worry about any of the things Lyrrad said. If you ask specific questions, I can help you. What parts of the instructions do you not understand? Simply saying I can't get it to work doesn't give me anything to work with.
PlaceMint: Window Positioning Tool Quote
04-23-2009 , 08:28 AM
Hi, I dont know why but the program isnt working, the tables isnt showing.

What I want is for S&G:
1-2-3
4-5-6
7-8-9
All table starts in "1" in blinds 10/20, when blinds up to 15/30 then tables moves to "2" and so on, and when blinds are 200/400+ (including the rest of the blinds) tables stay in "9".

So, to do that I create 9 groups and each one with 30 slots (I dont know how many tables I will play but no more than 30 in each quadrant):

Screens:






A table when Im playing:




My regex is:
Quote:
Tournament [0-9]{9} Table [0-9]+ - No Limit Hold'em - Blinds (\$10\/\$20) - Logged In as tycussss
According to "The Regex Coach" is fine:




What am I doing wrong?

Thanks
PlaceMint: Window Positioning Tool Quote
04-23-2009 , 09:30 AM
Remove the "- logged in as tycussss" from the end. It worked for me with the first one.

Also, if 640x470 is flickering for you then try using 640x466.

Last edited by sk3lletor; 04-23-2009 at 09:35 AM.
PlaceMint: Window Positioning Tool Quote
04-23-2009 , 09:39 AM
Check your PM inbox.
PlaceMint: Window Positioning Tool Quote
04-23-2009 , 09:54 AM
The 'Tile Tables' option on absolute poker is useless if you have two monitors because it divides all your tables onto both monitors. I prefer all my tables to be nicely aligned on my first monitor and run things like HEM, browser etc on the other.

For eg: If I am playing 8 tables, the AP tile tables option puts 6 tbls on the primary monitor(30") and 2 on the second monitor(22").

Is there any way placemint can help with this problem? I do not know much about placement so pardon me if this a very basic question and something the software already does?
PlaceMint: Window Positioning Tool Quote
04-23-2009 , 10:04 AM
Quote:
Originally Posted by Thinky
Is there any way placemint can help with this problem?
Yes, that's exactly why I use placemint on AP. You make "slots" where you want each table to go, then when the tables load they automatically line up how you like them (I tile either 9 or 12 tables on one monitor, and have everything else in the other monitor)
PlaceMint: Window Positioning Tool Quote
04-23-2009 , 01:23 PM
Is the program compatible with Win Vista? I tried to run it on Vista Ultimate but I´m getting serveral error messages (such as missing files, templates or something like that). I downloaded the program via softpedia (SF redirects me) and its a .zip file with an executable and a DLL.

OP, where can I find the wiki or documentation?

Thanks!
PlaceMint: Window Positioning Tool Quote
04-23-2009 , 02:18 PM
PlaceMint will run on any Windows system with .NET 2.0 installed. Those error messages do not mean the program will not run, it means that some of the extra features are not initialized yet. If you go to the SourceForge page you will be able to download the RegEx List and Slot Template List that can be used with PlaceMint. You will have to go into the Options menu in order to tell PlaceMint where you saved those files.
Here is the Wiki page with some documentation on how to use the program.
PlaceMint: Window Positioning Tool Quote
04-23-2009 , 04:43 PM
Quote:
Originally Posted by sk3lletor
Remove the "- logged in as tycussss" from the end. It worked for me with the first one.

Also, if 640x470 is flickering for you then try using 640x466.
I have tried and nothing, then I tried with notepad and the same dimensions and it worked perfectly :s. But the regexp that I use is fine according to the regex coach.

Besides, I edit the regexp with the exact title of a single S&G table (copied with windowspy) and it didnt work and this is so weird :!

I dont know what else I can do, I guess Im doing something wrong and I dont see it :/

If you could send me your "placemint_regexList" maybe I can change a little and maybe works. If you dont have it no problem :P

Thanks.
PlaceMint: Window Positioning Tool Quote
04-23-2009 , 05:35 PM
I don't understand this program. :/ It was working, Tycus, then it suddenly stopped working and couldn't do anything to get it to snap the windows again. Re-installed, added expressions again and still didn't work. Played some SNGs, 5 min break, and now it's working again...

De-selected my expressions to see which one is causing the snap for SNGs ... after de-selecting all of them, only selecting a blank one, restarting the program, it still works! what the hell, lol
PlaceMint: Window Positioning Tool Quote
04-24-2009 , 12:43 AM
I hope that you can understand my english because this is tilting me xD.

Well, I've been fighting with the program for hours and sometimes worked and then didnt and I dont understand how it works and I've read a few times the documentation.

The program is abble to identify the window by a unique word in his title, so in my case as Im playing S&G and I want to difference windows by blind level I only need to look at the blind or antes in the title bar so apparently I dont need to do a large regexp formula.

So, what I do is create 9 window groups, each one is a quadrant. In every quadrant I set 30 slots because is the maximum tables I will play, so when I start playing S&G like all tournaments starts in blinds 10/20 all the tables will be in Q1 (quadrant 1). When blinds up they will move automatically to Q2, when blinds up again then will go to Q3 and logically if I survive all tables will end in Q9.

Say I have created "Q1" that is the title of the first window group.
The regular Expression will be: Blinds $10
The options below by default
In tab slots I create 30 slots with 640x470 and coords 0,0

Then I clone this first window group and I have "Q2":
Regexp: Blinds $15
The only thing I need to change are the coords

The same to "Q3" and "Q4,Q5.."

Then I save & exit and should work isnt it?

Here a sketch:

[IMG]http://www.*********************/uploads/3abb267b02.png[/IMG]

URL of image in case you cant see it: http://www.*********************/uploads/3abb267b02.png
PlaceMint: Window Positioning Tool Quote
04-24-2009 , 08:08 AM
TyCuS,
I haven't had time to look at the files you sent me, but what you just said will work.
PlaceMint: Window Positioning Tool Quote
04-24-2009 , 01:38 PM
I cant get this to work properly on stars. Placemint will see the table (shows it in the list), but it doesnt move the table to a slot. Anyone have any ideas?
PlaceMint: Window Positioning Tool Quote

      
m