Recent Locations Be Gone!

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Recent Locations Be Gone!

Post by aurumdigitus »

Seek a quick and easy way to clear recent locations without having to go through Tools|List Management each time. Can this be done by a small script as a toolbar button?

jupe
Posts: 3478
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Recent Locations Be Gone!

Post by jupe »

I have an option for you (others may have more), this would create a new toolbar button that directly pops up the Recent locations list, but you would still have to press the clear button then the ok, if that is acceptable to you then you can try it out by typing:

Code: Select all

snippet;
into the XY addressbar and then pasting the below in the dialog that pops up.

Code: Select all

Snip: CTB 1
  XYplorer 18.60.0204, 26/1/18 1:20:58 AM
Action
  NewUserButton
Name
  Clear Recent Locations
Icon
  :nuke
ScriptL
  #631;
ScriptR
  
FireClick
  0

Another option is not saving them at all which you can do via,

Configuration | General | Startup & Exit | Save Settings | Include most-recently-used lists on save

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

Re: Recent Locations Be Gone!

Post by highend »

Probably directly possible without an external helper script, but that window needs to be opened in all cases...
One of my scripts helped you out? Please donate via Paypal

aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Re: Recent Locations Be Gone!

Post by aurumdigitus »

Thank you for your help everyone!

In working this on my own was able to get a Script to the Recent Locations box and that is where the impasse occurs. Greatly wish where was some kind of a script function to the effect of "Push Button Shown (Delete)".

Ah, if wishes could only do dishes. :lol:

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

Re: Recent Locations Be Gone!

Post by highend »

Ah, if wishes could only do dishes.
It can, try this instead:

Code: Select all

    sendkeys "%c{ENTER}";
    #631;
One of my scripts helped you out? Please donate via Paypal

klownboy
Posts: 4469
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: Recent Locations Be Gone!

Post by klownboy »

Take a look at the ListManagementHouseCleaning script here viewtopic.php?f=7&t=13948&hilit=listman ... secleaning. It automates the deletion of recent locations as well as most of the other LM items. The screen will flicker due to the in-your-face automation but it still works.

I have the script set to run on right click of a CTB where the normal left click is the Configuration, CID# 600.

aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Re: Recent Locations Be Gone!

Post by aurumdigitus »

@ highend -

Code: Select all

    sendkeys "%c{ENTER}";
    #631;
Maybe not the greatest thing since sliced bagels but close!

With sendkeys in the toolbox a new world to be explored opens up.

klownboy
Posts: 4469
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: Recent Locations Be Gone!

Post by klownboy »

aurumdigitus wrote:With sendkeys in the toolbox a new world to be explored opens up.
...and that's exactly how the script I referenced automates cleaning up the List Management items. :)

aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Re: Recent Locations Be Gone!

Post by aurumdigitus »

@ klownboy -
..and that's exactly how the script I referenced automates cleaning up the List Management items. :)
Yes that was understood. The 200+ lines of code was a magnum opus. What was needed was a simple laser sharp solution. Mine is rather a "less is More" approach.

That said, the script is now in the Toolbox for possible future implementation AND as a learning instrument.

klownboy
Posts: 4469
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: Recent Locations Be Gone!

Post by klownboy »

Yes, that was a lengthy script. I still use it once in a while to clean house on List Management items. They can get out of hand. Thanks.

Post Reply