caoyue / windowresizer Goto Github PK
View Code? Open in Web Editor NEWSave and restore your windows size and position with hotkeys
License: MIT License
Save and restore your windows size and position with hotkeys
License: MIT License
Rewrite hotkey bind UI to support win
key
Similar to #9, but for saving.
Apologies if it already exists, I couldn't find a way to do it.
I'm on the current version, and I've seen it happen with it, but this is not a new problem. When it happens, the process (on my system, an older Core i5) takes around 15% CPU permanently (well, until you close the app and restart it). Perhaps that translates to one core, I'm not sure.
And then all is well until some random time later, usually days, when it happens again. I haven't figured out what triggers this, though I do know that it's not after any use of it, since I use it frequently (as in hotkey use).
Win11
New user here. Loving the software, thank you! I've got a problem with just one of the applications I'm trying to save the position of. It's Streamlabs Chatbot. Seems to be working great with all the other software I'm using. Thanks again!
I use rather complicated shortcut (alt+ctrl+sfit+win+s
) to save window configuration (in order to not save/overwrite accidentally). It's so complicated, that I'm not always sure, that settings was saved :) Maybe it'll be nice feature, if after such save, (optional?) notification will be shown - even better, with click action that displays settings window (in order to further tweak just saved config).
i have two user in one and Window Resizer not allow to open in two pc it once i need to close in second pc to open in the first PC etc..
what i can to do with that i want open with to pc togheter
Restoring a window that was maximised does not return it to a maximised state and does not put it in quite the right place
It thinks the window is at -11,-11 on one of my monitors.
Maximised window before restoring: https://i.imgur.com/bw3ockk.png
Restored Window: https://i.imgur.com/yq2nbyw.png
Some windows, like video players, change their sizes when video is open, etc.
Then on restore opened video gonna be resized.
Add option to move without resize.
Any ideas how to fix this? Tried running as administrator but still doesn't work.
Personally I never use windows title matching (at least so far) and delete it every time when save new window config (or edit existing one). It would be nice to have an option to not create it - maybe even better with some kind of combo with 3 options "save both, only process for all windows, only process with matching window title", for users that do opposite way ;).
Every time I open Window Resizer it says there is an update and when I click ok to download update I get an error. If that's not weird enough on its own I'm running v1.3.0 which from what I see here is the latest version. Any help would be appreciated.
My main use of this nice tool is to ease pain of messing with windows on screen DPI changes (which happen on switching from external screen to notebook one, with 125% in my case). Most programs I use cannot properly restore it's position/size in this situation. But I have to manually switch profile after such change before restoring desired window position/size. It would be great if we can bind profile to given DPI/scale (not sure it they're the same from API perspective) and app can switch it automatically. In case of multiple screens with different scales I'd use primary screen value.
store config in the root of profile folder
portable mode option
To put it simply, firstly check "WindowResizer.config.json" in app folder,
if exists, use it (Portable Mode);
if not, check it in profile folder;
both no, create it in app folder.
and add a new option to move between two place;
hope this solve the problem.
How to install this app I need tutorial
When restored all window positions, taskbar seems like not restoring before order. Could you add a functionality to save taskbar order as well as windows positions?
I'm using Windows 10 22H2 with classic taskbar look.
Hello! Thanks for this very useful tool!
Everything works perfectly for me, except for Chrome windows, which do not automatically get positioned.
They do when I press the Restore hotkey though, it's only the auto-position that is ignored, and only with Chrome windows.
Maybe this happens because Chrome windows take a while to be titled (until the website loads on that window)? If so, maybe having the option to specify in some cases a small delay before trying to auto-position would help?
Thanks!
Hi,
first of all, amazing application. Thanks a lot.
Would it be possible to add profiles ?
I'm using the application on my laptop and I have a different screen setup between the office and home.
Maybe two different "save all" & "restore all" shortcuts ?
Or a right clic on the tray icon to select "home" or "office" (or profile1/profile2).
Thanks :)
Hi,
Thank you for your very usefull application.
I've faced this problem :
I wanted to have both portable applications, main and CLI, in the same unique directory. Both versions are 1.3.4.0.
First I have the main application copied ("dezipped") in one directory. And I dezipped the CLI in that directory, all files except the already existing files (like "System.Memory.dll" and some others which are necessary in both main and CLI applications).
Main application works well. CLI doesn't. Problem with versions of some routines...
With CLI dezipped in its own directory, no problem.
Could be nice if the main (portable) application and the CLI could be in the same directory, avoiding redondant dll.
Regards.
Regis
I can't seem to get Portable Mode to work.
When I enable the check box, if I exit WindowResizer & relaunch it, the option is unchecked again.
If I enable the option & try to Export the config I get the error: "An error occurred, check the log file for more details."
Bug, or am I doing it wrong?
Thanks
I noticed an issue.
How to reproduce :
1- Save your windows setup
2- Move a window and reduce it
3- Restore the windows position with the hotkey
4- All the windows go back to their original position, except the one that is reduced.
You have to un-reduce it and then press the hotkey again to restore it to the desired position.
It would be great if pressing the hotkey would un-reduce and restore the window position directly :)
Thanks
Hi,
I want to use WindowsResizer to resize a window to a specific size because I need to take screenshots with that size. So I edited the values for Top, Left, Right, Bottom so that the differences (Bottom - Top) and Right - Left) match the desired size.
However, there is always a difference of 14 for Bottom-Top and 7 for Right-Left. Maybe these are fixed values due to the additional width of the window frame or something like that. Or is it a bug? Still, it would be nice to be able to just enter the real values without any calculations.
Possibly directly as width and height value and not as differences?
(Windows 10, WindowsResizer 1.3.4, three monitors)
Hello.
I have thought that it would be very convenient if processes that are designed to open multiple windows, like Windows Explorer, allowed users to specify the size and position of the second and subsequent windows when they are opened.
Is there a possibility that such a feature could be implemented in WindowResizer in the future?
I'm having trouble getting WindowResizer to see most of the windows. It's basically just picking up its own Setting window. It's not picking up eg. Chrome, Notepad++, Windows Explorer or WinRAR. Is there a way to manually add a window other than by editing the JSON file? I tried editing the JSON file and some windows (eg. Notepad++) started to move when pressing Ctrl+Alt+R, so WindowResizer is sensing them.
How does the window matching work? Is the process name always required? Is it matched first?
Note: I am still using Windows 7 and it may be part of the issue, so I'm not sure how much time you want to invest in fixing this.
Originally posted by ebrouen May 6, 2023
I started to use WindowResizer a short time ago and I do appreciate it a lot.
A very nice improvement would be to be able to 'resize' (in fact better said 'reorder') the taskbars.
If there is 2 or more monitor, the manual process involves
This process is necessary if you change from a multi-monitor configuration to a single monitor configuration, like taking your laptop with you, and back.
Of course, it's not a very big job, but resizing a window is not a big job and still we appreciate WindowResizer...
As discussed on the other comment, there is an issue when restoring fullscreen windows.
Windowed apps restore correctly on the correct screen while fullscreen windows do not reopen on the correct screen.
Hi,
Somehow it seems like the sensor window of HWinfo64 is not detected. When I open the main program, it is indeeed detected, but when I try to do the same to the sensor panel (which is the one I would like to resize automatically) , it just doesnt get detected at all.
Not sure if I`m missing something or if it is just not compatible..
Can you add an option to automatically restore the window position when launching the saved application?
Hi - Where can I find an exe (for Win 10) of this program?
Hello,
Your app is Amazing !!! Thanks a lot !!! :)
I use with "Chrome" and "Title", it work if I use "Hotkeys" but not in AUTO when I do "Open link in new windows".
How do that in "Auto" when I open an link in "New Windows" ?
Again thanks a lot... ! :)
Thanks for making my life easier :)
WindowReiszer.CLI.exe resize
.I noticed a function in there for getting titles, have you worked on that at all, and if not, are you interested in a pull that would add it, and a UI to manage some basic wildcard management?
Some details:
3440x1440, task bar is on top, small icons are enabled.
How to reproduce:
In my case 1/3 of the screen is window 1 and 2/3 of the screen is window 2.
After step 2 it looks like this:
And after step 4 it looks like this:
There is an extra space below the task bar, but it doesn't suppose to be here I believe.
hi
if i try to save posiotion for program "Everything v1.3.4.686 x86" then WindowResizer-1.0.2 not add it at all
hot key to restore all window active or not on desktop
Sometimes Exit leaves the exe running.
This seems to fix it:
private void OnExit(object sender, EventArgs e)
{
_settingForm?.Close();
ConfigLoader.Save();
_trayIcon.Dispose();
_hook.Dispose();
Environment.Exit(0);
}
Hi,
there seems to be a problem with saving and removing of process entries when Resize by Title is deactivated.
Deactivate this option and a newly created process entry will not be shown, only after a restart.
If there are process entries and the option is deactivated and an entry should be removed, an error message appears ("An error occurred, check the log file").
In the log, the following is shown:
[24.01.2024 11:35:07]Error: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.Collections.Generic.List`1.get_Item(Int32 index)
at WindowResizer.SettingForm.ProcessesGrid_CellFormatting(Object sender, DataGridViewCellFormattingEventArgs e)
at System.Windows.Forms.DataGridView.OnCellFormatting(DataGridViewCellFormattingEventArgs e)
at System.Windows.Forms.DataGridView.OnCellFormatting(Int32 columnIndex, Int32 rowIndex, Object val, Type formattedValueType, DataGridViewCellStyle cellStyle)
at System.Windows.Forms.DataGridViewCell.GetFormattedValue(Object value, Int32 rowIndex, DataGridViewCellStyle& cellStyle, TypeConverter valueTypeConverter, TypeConverter formattedValueTypeConverter, DataGridViewDataErrorContexts context)
at System.Windows.Forms.DataGridViewTextBoxCell.GetPreferredSize(Graphics graphics, DataGridViewCellStyle cellStyle, Int32 rowIndex, Size constraintSize)
at System.Windows.Forms.DataGridViewCell.GetPreferredWidth(Int32 rowIndex, Int32 height)
at System.Windows.Forms.DataGridViewCell.OnCellDataAreaMouseEnterInternal(Int32 rowIndex)
at System.Windows.Forms.DataGridViewCell.OnMouseMoveInternal(DataGridViewCellMouseEventArgs e)
at System.Windows.Forms.DataGridView.OnCellMouseMove(DataGridViewCellMouseEventArgs e)
at System.Windows.Forms.DataGridView.UpdateMouseEnteredCell(HitTestInfo hti, MouseEventArgs e)
at System.Windows.Forms.DataGridView.OnMouseMove(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseMove(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
After the restart, the removed entry is no longer present.
Can the program be configured to allow only one entry per process, or would that undermine some other functionality?
Inevitably I see multiples stacking up for things like Windows Explorer, a video player, browsers, etc.. This happens when I use Ctrl-Alt-S again for a new/better position. I'd rather it replace the previous one, but perhaps because the Title bar is different, it simply creates a new entry. This creates a degree of unpredictability for those who don't really care or think about titles, especially since "If you specify the title, it will be matched first," Maybe the title is the functionality that people would miss if multiples didn't accumulate, I'm not sure.
But for those who don't intentionally have, say, five identical processes with five different Titles all saving to different places, an overwrite option might be nice.
Just an idea, since I didn't already see it. Thanks!
Window does not change when in maximized state, such as vscode.
it says: {"message":"Artifact not found or access denied."}
PS: ive build it. And its worked one time(not every time. il fix it). thank u very mach !!! i will use it.
As the title says
Helllo,
First thanks for this very practical tool!
In the Status, WindowResizer has a menu with the profiles, settings, exit. It would be nice to have there also the "restore all" (which I mostly use) and "save all" functionalities.
By the way, are there functional limitations on the "portable" version?
As a user I'd like WindowResizer to automatically select profiles when the monitor setup changes and execute "Restore All", so that my saved window layout is automatically restored.
PersistentWindows could be a source for inspiration: https://github.com/kangyu-california/PersistentWindows
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.