halves the Xyplorer

Features wanted...
Post Reply
7iben
Posts: 74
Joined: 04 Apr 2019 18:22

halves the Xyplorer

Post by 7iben »

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.

highend
Posts: 13333
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: halves the Xyplorer

Post by highend »

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

7iben
Posts: 74
Joined: 04 Apr 2019 18:22

Re: halves the Xyplorer

Post by 7iben »

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.

highend
Posts: 13333
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: halves the Xyplorer

Post by highend »

There is winpos (viewtopic.php?p=120827#p120827), move it appropriately...
One of my scripts helped you out? Please donate via Paypal

7iben
Posts: 74
Joined: 04 Apr 2019 18:22

Re: halves the Xyplorer

Post by 7iben »

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?

highend
Posts: 13333
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: halves the Xyplorer

Post by highend »

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

7iben
Posts: 74
Joined: 04 Apr 2019 18:22

Re: halves the Xyplorer

Post by 7iben »

Perfect. Thanks very much.

Post Reply