Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dynamic Folder's content in PopUp menus.
#1
QuickMacro 2.1.6 build 1. OS is XP.

I have a popup. Upon activation I would like to be able to press "s" and to open dynamically the content of folder SOME_FOLDER in the submenu.
Next, to press let's say "f" to execute file "file_1".
The question is how to get folder's content listed dynamically, and
how to have the first character of listed files "hot".

Code:
Copy      Help
>&SOME_FOLDER
     file_1
     second_file
     <

Thanks for an outstanding product.
#2
try something like this:

search for "DynamicMenu" for more info.
it's the "&" in the 2nd to last line that puts the "_" on the first character.
Code:
Copy      Help
Dir d; str bfn afp c s
foreach(d "C:\music\*.m3u" FE_Dir 0xC)
,bfn=d.FileName
,afp=d.FileName(1)
,c=afp
,c.findreplace("C:\music\" "")
,s.formata("&%s :run ''%s''[]" c afp)
DynamicMenu(s)
#3
Currently you cannot create such menus based on QM menus. Or it would be not reliable and not effective. I hope to add this feature some day.


Forum Jump:


Users browsing this thread: 1 Guest(s)