how to show recently opened files in a drop list?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

how to show recently opened files in a drop list?

Post by yusef88 »

how to show recently opened files in a drop list like recent location list? thanks

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

Re: how to show recently opened files in a drop list?

Post by highend »

Tools - List Management - Recently Opened Files...?
One of my scripts helped you out? Please donate via Paypal

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: how to show recently opened files in a drop list?

Post by yusef88 »

thanks for replay.i need it to be shown as a drop list which mean by double click i can open file directly

I hope my idea is clear

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: how to show recently opened files in a drop list?

Post by j_c_hallgren »

yusef88 wrote:.i need it to be shown as a drop list which mean by double click i can open file directly
Why isn't the built-in Windows recent files list sufficient? That's what I use.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: how to show recently opened files in a drop list?

Post by yusef88 »

j_c_hallgren wrote:
yusef88 wrote:.i need it to be shown as a drop list which mean by double click i can open file directly
Why isn't the built-in Windows recent files list sufficient? That's what I use.
yes, it leads what is needed ..just i want to make XYplorer my main work platform and not to rely on anything else :)

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: how to show recently opened files in a drop list?

Post by serendipity »

Simple script like this can do it:

Code: Select all

 #193;//Save Configuration
 $ItemCount=getkey("Count", "mruOpenedItems");
 $Count=1;
 $AllItems="";
  WHILE($Count!=$ItemCount){
        $Item=getkey($Count, "mruOpenedItems");
        $AllItems="$AllItems<crlf>$Item";
        $Count++;
  }

  $open= popupmenu ($AllItems,,,1,,,"<crlf>",,0);

  IF($open==0){
     status "nothing selected", ,"alert";
     end 1==1;
     }

  status "open $open";
  open $open;
  

admin
Site Admin
Posts: 67313
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: how to show recently opened files in a drop list?

Post by admin »

Menu File / Open... (Ctrl+O)

Filehero
Posts: 2734
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: how to show recently opened files in a drop list?

Post by Filehero »

admin wrote:Menu File / Open... (Ctrl+O)
Oh my dear, another one I'd totally missed. :oops:


Cheers,
Filehero

FluxTorpedoe
Posts: 906
Joined: 05 Oct 2011 13:15

Re: how to show recently opened files in a drop list?

Post by FluxTorpedoe »

Well, if those solutions aren't enough, here's my turn to try approximate mini-golf... 8)

Code: Select all

  open inputselect("Recent", listfolder(<get SpecialFolder 8>));
Nothing fancy (understatement), just draws info from Windows "Recent List" folder.
For files only:

Code: Select all

  open inputselect("Recent Files", regexreplace(listfolder(<get SpecialFolder 8>),"\|[^\.]+?\.[^\.]+?(?=\|)",""));

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: how to show recently opened files in a drop list?

Post by yusef88 »

gentlemen: serendipity & admin & FluxTorpedoe
i'm incapable of thanksgiving, thanks you deserve.your additions are useful and helpful :appl:

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: how to show recently opened files in a drop list?

Post by serendipity »

FluxTorpedoe wrote:Well, if those solutions aren't enough, here's my turn to try approximate mini-golf... 8)

Code: Select all

  open inputselect("Recent", listfolder(<get SpecialFolder 8>));
Nothing fancy (understatement), just draws info from Windows "Recent List" folder.
For files only:

Code: Select all

  open inputselect("Recent Files", regexreplace(listfolder(<get SpecialFolder 8>),"\|[^\.]+?\.[^\.]+?(?=\|)",""));
Haha slick! 8)

RalphM
Posts: 2145
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: how to show recently opened files in a drop list?

Post by RalphM »

FluxTorpedoe wrote:For files only:

Code: Select all

  open inputselect("Recent Files", regexreplace(listfolder(<get SpecialFolder 8>),"\|[^\.]+?\.[^\.]+?(?=\|)",""));
Very nice thanks!
Ralph :)
(OS: W11 26H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: how to show recently opened files in a drop list?

Post by yusef88 »

serendipity wrote:Simple script like this can do it:

Code: Select all

 #193;//Save Configuration
 $ItemCount=getkey("Count", "mruOpenedItems");
 $Count=1;
 $AllItems="";
  WHILE($Count!=$ItemCount){
        $Item=getkey($Count, "mruOpenedItems");
        $AllItems="$AllItems<crlf>$Item";
        $Count++;
  }

  $open= popupmenu ($AllItems,,,1,,,"<crlf>",,0);

  IF($open==0){
     status "nothing selected", ,"alert";
     end 1==1;
     }

  status "open $open";
  open $open;
  
a small note
if recently opened files is empty
[mruOpenedItems]
Count=0
the script make xyplore not responding

mikeshick
Posts: 178
Joined: 06 Jul 2020 10:28

Re: how to show recently opened files in a drop list?

Post by mikeshick »

FluxTorpedoe wrote: ↑16 Mar 2013 10:24 Well, if those solutions aren't enough, here's my turn to try approximate mini-golf... 8)

Code: Select all

  open inputselect("Recent", listfolder(<get SpecialFolder 8>));
Nothing fancy (understatement), just draws info from Windows "Recent List" folder.
For files only:

Code: Select all

  open inputselect("Recent Files", regexreplace(listfolder(<get SpecialFolder 8>),"\|[^\.]+?\.[^\.]+?(?=\|)",""));
Is there a way to have this dialog open larger by default? Further, can a tool button be made that runs this script?

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

Re: how to show recently opened files in a drop list?

Post by highend »

The help file knows the answer for both questions...
One of my scripts helped you out? Please donate via Paypal

Post Reply