Skip to forum
ManageMyWindows(Til...
 
Notifications
Clear all

ManageMyWindows(Tile/Cascade/RemoveTitleBars)

17 Posts
6 Users
4 Reactions
6,154 Views

Even if the thread title is obvious i'm sharing with the communauty an Autoit Script i made in order to Tile / Cascade Windows(Poker Tables as well) over screen(s) with also the possibility to remove the title bar and borders of poker tables (Pstars).The script detects automatically your monitor(s) setup and allow you to choose on wich screen or screens you want to tile specific window(s) using their title bar names.
Normally i should code it in C++ or C# to make it more efficient but it would be less easy accessible for everyone also AutoIT is License Free. I do not use any DLL injection or Hooking and my script won't modify any file of your poker clients , neither the setup or the Theme.

Little ScreenShots to show how it looks like:

Spoiler

How to install :( TwitchVideo )

- Download the file i provide and unzip it on your desktop or any other place you want.
- Use your favorite Web Search Engine and look for "Autoit"
- Once on the official autoit web page go to the download section click on download Autoit (The one including Autoit, Autoit2Exe and Basic SciTE editor)
- Run the installation and use the default install options (Don't try to improvise unless you know what you doing)
- Once installed reboot your computer
- Then open the folder you decompressed and right click on ManageMyWindow.au3
- Run Script(x86) to run it directly or CompileScript(x86) if you want an executable file.
- That's it ! Enjoy!

Note :

If your Poker Client Run with Admin Rights, You have to Compile the Script and run it As Admin.

How to use it :
- Open a window or a poker table and resize it the way you want it to be
- Click on Get Size button and type partially the name of the window (exemple: no limit or play money) then OK button
- If the window was well detected you will see The Window size and client size input boxes with the size in pixel of your window
- Then replace the Title Bar(s) input box text by the partial name of your window (same name you used for the size detection)
- Click on Tile or Cascade radio button
- Select one screen or the different screen you wanna use by clicking on the checkboxes
- If your Win10 taskbar is in auto hide mode click on Win Taskbar is auto Hidden
- If you want to remove the titlebard of Pstars poker tables click on Use Container GUI
- If you want next time you use the script to remember the setup of the windows/client size and title bar partial name click on Save Setup
- To just try once the setup and layout click on RunOnce, To Tile every window and futur opened windows click on AutoMode

There's few more options you can use:
- H Space Btw Tiles
- V Space Btw Tiles
Names are obvious but i'll explain. It's a way to add Horizontal or Vertical Space in Pixel between Tiled windows
-Cascade Inc is the Space in Pixel between Windows
-Space_Btw_Cascade_Rows is the Space in Pixel between Rows of Cascade

Important Note : If you Remove TitleBar&Borders and click on RunOnce , before to use Auto Mode close the poker tables else they will overlap with the new ones and since you cannot move a table that has no titlebar/borders you might get in troubles by not following my advice.

Futur updates :
- Keyboard Shortcuts (Those who can't wait can look at HotKeySet in AutoIT help File)
- Slots to Stack Tables and to move them from one to an other one with keyboard shortcuts
- There's also plenty code optimisation to do (i see atleast 5 of them possible to do)

Will i do upgrades/updates ? Can't say , i might or might not do. But actual functions will work no matter poker client updates
since i use windows api to manage the windows / poker tables.

For a little more advanced users, you can use the classname of a window instead of the text if you write it that way (ex: [CLASS:Notepad] )
For even more advanced users, you can use regular expressions to select specific windows. edit ManageMyWindows.au3 and WinManager.au3
and set Opt("WinTitleMatchMode",-2) to Opt("WinTitleMatchMode",-4) . Even if you manage Regex , read AutoIT help file before to do it.

If in some part of my scripts you see lot of vars into brackets it's not coz i've got high on meds but coordinates on screen can be negative
and if we want to tile windows and make them overlap we can use negative values in V or H space between tiles...

Pieces of wisdom : Always try poker related tools (source code or not) on play money tables first.
Also always look into source code provided online, no matter the source even if from me.To check if there is anything suspicious.
I wrote that tool for my own use (Poker and Non Poker related) but share it so others can profit from it.

Feel free to tweak it, improve it, share it but be nice to not steal the credit for it.
Last Thing, If you don't get the Turtle Logo on the main screen it's not a bug. I don't share my turtles with everyone :f_p::f_p::f_p:

ManageMyWindows Link File

Update : (01/01/2019)

ManageMyWindows v1.10 Gdrive
ManageMyWindows GitHub

Also i prefer to add this, just in case :

Important: please note that PokerStrategy.com does not take any responsibility for the software advertised in this thread.
We were not involved in the development and thus cannot guarantee the reliability or proper functionality of this software.
You use the software described in this thread at your own risk.


Reply
Quote
16 replies

Just made a github repository if anyone want to look at the source code or work on it. GitHub Link
I will probably make a video on how to use it after next updates i'll publish on twitch or youtube or both.


Reply
Quote
Super Moderator
VorpalF2F
Joined: 02.09.2010

Cool,
I do much the same thing with AutoHotKey, plus I have a bunch of hotstrings and hotkeys that do various formatting tasks

Cheers,
VS


Reply
Quote

@VorpalF2F Yes AHK is also the same kind of Scripting Language but tought it would be easier for beginners to deal with AutoIT Since there is also a pretty easy to use helpfile coming with it and a bit more visual. Personally both are fine to me.
I could also do it in Python or to be more efficient C++/C# but not anyone would be able to tweak it or use it.
Mostly i do it for the fun and to distract myself but also coz i'm a bit tired to see plenty licensed software that cost an arm with monthly subscriptions (one day they will start to do it with daily subsriptions) so i tought it could be of plenty use for micro stake players.
To add Keyboard Shortcuts it's also pretty easy just couldn't spend time on it due to health and it wasn't much challenging neither lol To do it there is pre made functions for it with even exemples in the helpfile if i recall but i'm not sure micro stake players do need it.
What i think was interesting is the window management under win10 compared to previous OS. To just use coordinates and sizing wouldn't do it correctly since on win10 there is also invisible borders so you have to make calls to get the system metrics ...
Also to remove the title bar and borders of Pstars was interesting because standard way won't give a nice looking result using scripting tools so we have to use a container as a new parent of the window, the other way is to use GDI and fully redraw the window with a mix of validate / invalidate client region but not efficient unless in a real programming language IMO.
i'm also making a video to help to install it even if it's not really my thing to make and upload videos :sifflote:

Kind regards,
OldSchoolPapa.


Reply
Quote

How to install Autoit and Run the script with a little demo of use.
TwitchVideo


Reply
Quote
Super Moderator
VorpalF2F
Joined: 02.09.2010

Originally posted by OldSchoolPapa
I could also do it in Python or to be more efficient C++/C# but not anyone would be able to tweak it or use it.

I've no idea how to create the necessary GUI elements using Python, and I no longer have access to a C++ compiler, otherwise I'd live to try either of those.

Originally posted by OldSchoolPapa
Mostly i do it for the fun and to distract myself but also coz i'm a bit tired to see plenty licensed software that cost an arm with monthly subscriptions (one day they will start to do it with daily subsriptions) so i tought it could be of plenty use for micro stake players.

Same here -- I've never taken the extra step and released my tools to the general public. I'm always worried that I'll get bogged down in support. In the olden days I wrote custom spreadsheets -- remember Visicalc? Support was the biggest problem -- everyone wants something a little different, or a new feature.

Originally posted by OldSchoolPapa
What i think was interesting is the window management under win10 compared to previous OS. To just use coordinates and sizing wouldn't do it correctly since on win10 there is also invisible borders so you have to make calls to get the system metrics ...

And the invisible borders aren't necessarily the same size in one program as they are in another -- or so it seems to me.

Originally posted by OldSchoolPapa
Also to remove the title bar and borders of Pstars was interesting because standard way won't give a nice looking result using scripting tools so we have to use a container as a new parent of the window, the other way is to use GDI and fully redraw the window with a mix of validate / invalidate client region but not efficient unless in a real programming language IMO.

I've never tried that...

I'll have a look at the video a bit later...
VS


Reply
Quote

Concerning Python GUI there is many ways to do but for simplicity and most common use there you can find the most used ways Python GUI
For myself i almost never use GUI since i know exactly what i need before i start coding, even concerning the source code i share here , i added way more lines and options for the GUI interface and extra options that i actually use for myself. Just run a script way shorter to do what i need to manage the tables or other windows.
Python , Lua , Java are very interesting to know not only for Win OS but for every kind of OS including Embedded OS.
Worked a bit to write some Linux Set Top Box Plugins for IPTV when i was in a better shape that was pretty fun and a kind of mind game.

I've never taken the extra step and released my tools to the general public. I'm always worried that I'll get bogged down in support

I fully understand. When i was often writting Open Source Plugins for public and Private programs for companies it was very time consuming in support & updates, Bug Correction.
That's also why when i share a source code here or even a simple Worksheet i make sure everyone understand that those are basic lines they can improve by themselves just by little researches online and i make it as easy as possible.

In the olden days I wrote custom spreadsheets -- remember Visicalc? Support was the biggest problem -- everyone wants something a little different, or a new feature

If i recall it was the first or one of the first spreadsheet program for computers. Reminds me of Atari , Commodore and DOS. You successfully make me feel way older Congratulations Hehe :f_p::f_p::f_p:

And the invisible borders aren't necessarily the same size in one program as they are in another -- or so it seems to me.

You are totally right, It depends of the system Theme and can also be programmed independantly plus WIN10 are doing plenty upgrades touching the Windows Management. For customized Themes and Apps there is DWM ("Desktop Window Manager")
Micro$oft Dev Center informations about it ---> DWM Functions

I've never tried that...

What's funny about programming is that we have plenty ways to achieve a single Task.


Reply
Quote

Else lately i'm getting interested in ICM. (Not the Poker Tools coz for micros i really don't care out of an intellectual sight but the Algorithms and Fomulas about ICM) I might try to do some computations on MAPLE or MATLAB about it. But from what i saw i think it is only efficient from the Bubble to the ITM places.
Before and After there is some huge variations on simulations i saw around the net in some thesis.
Calculations of Range on most ICM Tools assume the ranges are static i guess and that's also not great unless you can setup yourself the ranges of each position of average players for the pool of players you face. They also use FGS but it's not really an evolutive algorithm ...


Reply
Quote

Little Update should come during the week depending on my own agenda.
Instead to attach a container as a parent gui for each poker tables when removing the titlebars & borders , the script will simply kind of redraw the window using GDI+. Result it will be less buggy and less ressource consuming even if &|when mass tabling.
Tought they didn't integrate GDI+ to Autoit so i was a bit lazy to code it at start but since it is, it's gonna be pretty fast to implement i think.

Best of Skills & Luck @ Tables,
OldSchoolPapa.


Reply
Quote

Happy New Year !!!


Got a little time this evening so i updated ManageMyWindows.(Links are in the first post)
Changes are relative to my previous post so won't repeat it all.

Only things i care to repeat are :
- Always look into the source code before to run it no matter wich source or wich tool.
- Never run a pre-compiled version from any third part
- Always try it on play money tables first

Best of Skills & Luck @ Tables,
OldSchoolPapa.


Reply
Quote
CptJokerFish
Joined: 06.06.2017

Seems to be an interesting tool. In the past I had developed my own tool in C++ but I cant find my source code anymore and Im to lazy to develope a new tool. :-D

So this thread came right in time. :)


Reply
Quote

@CptJokerFish Indeed that kind of tool would be much better in C++ in my opinion but in same time less accessible to most players. Autoit as a scripting language has the advantage to be easily accessible to anyone with or without coding background (anyone can tweak it , improve it or tune it to their own taste) , a good well written help file for those who never coded & no license needed too. Hope you gonna have fun looking into it :f_drink:
Happy New Year !!! :f_thumbsup:

Best of Skills & Luck @ Tables,
OldSchoolPapa.


Reply
Quote

i just register on this forum to thank you man :) this tool helped me veeeeery much thank you


Reply
Quote

@intact188 You are very welcome and i'm glad it could help :f_drink:

Best of Skills & Luck @ Tables,
OldSchoolPapa.


Reply
Quote

thank you oldschoolpapa for the work ! was going to buy tableninja.
life saving tool. worked smoothly. good job !

regards


Reply
Quote

@BloodyLea Glad it could help and :welcome: on the forum. :f_drink:

Best of Skills & Luck @ Tables,
OldSchoolPapa.


Reply
Quote