Page 1 of 1

Recent Locations Be Gone!

Posted: 25 Jan 2018 14:41
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?

Re: Recent Locations Be Gone!

Posted: 25 Jan 2018 15:26
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

Re: Recent Locations Be Gone!

Posted: 25 Jan 2018 15:33
by highend
Probably directly possible without an external helper script, but that window needs to be opened in all cases...

Re: Recent Locations Be Gone!

Posted: 25 Jan 2018 17:06
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:

Re: Recent Locations Be Gone!

Posted: 25 Jan 2018 17:13
by highend
Ah, if wishes could only do dishes.
It can, try this instead:

Code: Select all

    sendkeys "%c{ENTER}";
    #631;

Re: Recent Locations Be Gone!

Posted: 25 Jan 2018 17:18
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.

Re: Recent Locations Be Gone!

Posted: 25 Jan 2018 19:53
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.

Re: Recent Locations Be Gone!

Posted: 25 Jan 2018 20:16
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. :)

Re: Recent Locations Be Gone!

Posted: 25 Jan 2018 21:06
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.

Re: Recent Locations Be Gone!

Posted: 25 Jan 2018 21:34
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.