halves the Xyplorer
halves the Xyplorer
Hello, I would like to have a button that halves the Xyplorer. If I have two panels open and then want to close one panel, I would press the button. One panel then closes and the XYPLORER halves to the size of the open panel + tree. Often I have to switch from two panels to one panel and then reduce the size of the XYPLORER to have enough space on the screen. When I press the button again, the XYPLORER should be twice as big again. This feature would be really helpful and would save time.
Re: halves the Xyplorer
First run must be with dual pane active!
Code: Select all
$tmpIni = "%TEMP%\~XY.ini";
savesettings 1, $tmpIni;
$width = getkey("WinW", "General", $tmpIni);
$height = getkey("WinH", "General", $tmpIni);
$pane2Width = getkey("Pane2Width", "Layout", $tmpIni);
if (get("#800")) {
winsize $width - $pane2Width, $height;
} else {
winsize $width + $pane2Width, $height;
}
#800;
One of my scripts helped you out? Please donate via Paypal
Re: halves the Xyplorer
wow, great, thank you so much. That's exactly what I mean. Is it also possible that the position of XYPLORER stops on the right instead of the left when minimizing? With this script it is reduced to the left. It would be great if I could also zoom out to the right.
Re: halves the Xyplorer
There is
winpos
(viewtopic.php?p=120827#p120827), move it appropriately...One of my scripts helped you out? Please donate via Paypal
Re: halves the Xyplorer
I don't understand. Unfortunately I can't write scripts. I just want XYPLORER to resize right to left instead of left to right. Do you have a suggestion how the script could look like?
Re: halves the Xyplorer
Code: Select all
$tmpIni = "%TEMP%\~XY.ini";
savesettings 1, $tmpIni;
$xPos = getkey("WinX", "General", $tmpIni);
$yPos = getkey("WinY", "General", $tmpIni);
$width = getkey("WinW", "General", $tmpIni);
$height = getkey("WinH", "General", $tmpIni);
$pane2Width = getkey("Pane2Width", "Layout", $tmpIni);
if (get("#800")) {
winsize $width - $pane2Width, $height;
winpos $xPos + $pane2Width, $yPos;
} else {
winsize $width + $pane2Width, $height;
winpos $xPos - $pane2Width, $yPos;
}
#800;
One of my scripts helped you out? Please donate via Paypal