Just one thing.. Could you post the ahk source?
So that other people can learn with your expertise
-jgpaiva
Of course ! I always hesitate before posting my sources because i feel that my code is quite messy.
Here it is :
; FileDraft
#NoTrayIcon
if 0 < 2
ExitApp
WorkRep = %1%
StringCaseSense off
StringReplace WorkRep, Workrep, <desktop>, %A_Desktop%
StringReplace WorkRep, Workrep, <user>, %UserProfile%
StringReplace WorkRep, Workrep, <windir>, %A_Windir%
StringReplace WorkRep, Workrep, <mydocs>, %A_MyDocuments%
NFiles = %2%
Loop, %WorkRep%\*.*, 0
FileList = %FileList%%A_LoopFileTimeModified%`t%A_LoopFileName%`n
Sort, FileList, R ; Sort by date.
z = 1
Loop, parse, FileList, `n
{
StringSplit, FileItem, A_LoopField, %A_Tab% ; Split into two parts at the tab char.
Menu, Fichiers, Add, %FileItem2%, LaunchFile
if z = %NFiles%
break
z++
}
Menu, Fichiers, Show
return
LaunchFile:
run %WorkRep%\%A_ThisMenuItem%
ExitApp
return