list Recent Items (My Recent Documents) (Start Menu)

Post your working scripts, libraries and tools
User avatar
jeeswg
Posts: 4504
Joined: 19 Dec 2016, 01:58
Location: UK

list Recent Items (My Recent Documents) (Start Menu)

04 May 2017, 03:56

List recent files from the Start Menu, tested on Windows 7.
Recent Items (Windows 7).
My Recent Documents (Windows XP).

Do notify of any issues.

[EDIT:] I fixed the VarSetCapacity issue, improved the script slightly, and made the script into a function.

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

Last edited by jeeswg on 04 May 2017, 22:11, edited 4 times in total.
sGuest

Re: list Recent Items (My Recent Documents) (Start Menu)

04 May 2017, 13:25

Hi Jeeswg,

Here's an issue on first hotkey press after which script closes because of instability:

:terms: Error: This DllCall requires a prior VarSetCapacity.
@W7 x64 - AHK 1.1.25.01

Cheers, and thanks for sharing again.
TheDewd
Posts: 905
Joined: 19 Dec 2013, 11:16
Location: USA

Re: list Recent Items (My Recent Documents) (Start Menu)

04 May 2017, 13:56

Code: [Select all] [Download] (Untitled.txt)GeSHi © Codebox Plus

An internal error has occurred in the debugger engine. Continue running the script without the debugger?
Yes/No
User avatar
jeeswg
Posts: 4504
Joined: 19 Dec 2016, 01:58
Location: UK

Re: list Recent Items (My Recent Documents) (Start Menu)

04 May 2017, 19:11

OK, I added in one line, VarSetCapacity(vDirRecent, 260*2, 0), it should work now.

Apologies for that, I've asked a question about it here:

basic DllCall + VarSetCapacity question - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=31419

Return to “Scripts and Functions”

Who is online

Users browsing this forum: arcticir and 19 guests