For the Desktop folder, you can always use the %A_Desktop% path. On my work computer, it has my profile folder which includes a bunch of spaces and commas which can be a pain to have to try to find and escape. Using this built in variable works nicely with this. In addition to modifying your wildcard for the search, you can also create an array to hold a blacklist of filenames. You can create an if statement just above the initial menu add which would check for a match and if it matches run a continue command to skip to the next iteration in the loop.
Very interesting idea. I especially like how easy it is to choose what type of files to display in the results. I wonder if it's possible to separate the menu into several submenus, in order to group different types of files? Example: Menu 1 = .pdf files - Menu 2 = .xls files Menu 3 = .txt files - Menu 4 = .doc files - And so on. I know this would require multiple loops, in order to make this script more versatile in terms of file types to search.
I found a 2 year old video (roblox autoclicker) but unfortunately your script doesnt work. When i try to convert it into a executeable it says syntax error :/
yep not working for me, why u are still using a script v1 while we are all using v2 ? the converter dont fix all the problems... so its not usable...sadly
Almost no body is using v2 yet or plan to move to v2. I use both but v1 is used way more still for it's simpleness and support still. The script works for in the video so idk.l with no info to help
@ionAutomation oh ok thanks for that information :) sorry for the confusion ;) i will use V1 then, i read than V2 was better but i did some more research i found interesting topic .. thanks!
@@Frank-rh5nh the thing is most languages as new version come out they are better and can still support old code. While I like v2 I think the naming can be misleading as it's more of a total new style of the language that does not support the old stuff. V1 is simple and easy. While v2 is more just a new style that matches into more popular languages. V1 is best for simpleness while v2 is nice for pass coders coming from a high level lang
hmmm, I tried this but it doesn't have a submenu for any folders. Thus it doesn't show what's inside the folder too. Also if I click on a text file it won't open it, just takes me to the main folder. Windows 11. +d:: TopMenu := "C:\Users\Mylo\Documents\HARD_DRIVES\" LastMenu := TopMenu Loop Files, %TopMenu%\*.*, DFR { Menu, %A_LoopFileDir%, Add, %A_LoopFileName%, Action If (A_LoopFileDir != LastMenu) and (LastMenu != TopMenu) AddMenu (LastMenu)
CODE 2 from Penchanter= github.com/PENchanter/AutoHotkey/blob/main/TAB's%20Live%20Updating%20Menus%20v1.5
For the Desktop folder, you can always use the %A_Desktop% path. On my work computer, it has my profile folder which includes a bunch of spaces and commas which can be a pain to have to try to find and escape. Using this built in variable works nicely with this.
In addition to modifying your wildcard for the search, you can also create an array to hold a blacklist of filenames. You can create an if statement just above the initial menu add which would check for a match and if it matches run a continue command to skip to the next iteration in the loop.
Very interesting idea. I especially like how easy it is to choose what type of files to display in the results.
I wonder if it's possible to separate the menu into several submenus, in order to group different types of files? Example:
Menu 1 = .pdf files - Menu 2 = .xls files
Menu 3 = .txt files - Menu 4 = .doc files - And so on.
I know this would require multiple loops, in order to make this script more versatile in terms of file types to search.
Great idea. Should be able to just have one loop if some IFs in it to sort it out
This is really cool thank you
Where can I get this great script?
nice one...thank you for sharing
I found a 2 year old video (roblox autoclicker) but unfortunately your script doesnt work. When i try to convert it into a executeable it says syntax error :/
I just want a script that if toggled o clicks the tab-button every 3 minutes, nothing else
very useful
The path in %topmenu% includes a trailing \backslash... you also include one in your Loop... dir\\subdir ?? :)
yep not working for me, why u are still using a script v1 while we are all using v2 ?
the converter dont fix all the problems...
so its not usable...sadly
Almost no body is using v2 yet or plan to move to v2. I use both but v1 is used way more still for it's simpleness and support still. The script works for in the video so idk.l with no info to help
@ionAutomation oh ok thanks for that information :)
sorry for the confusion ;) i will use V1 then, i read than V2 was better but i did some more research i found interesting topic ..
thanks!
@@Frank-rh5nh the thing is most languages as new version come out they are better and can still support old code. While I like v2 I think the naming can be misleading as it's more of a total new style of the language that does not support the old stuff. V1 is simple and easy. While v2 is more just a new style that matches into more popular languages. V1 is best for simpleness while v2 is nice for pass coders coming from a high level lang
@@TABNationAutomation thanks for explanation, im a beginner ! thanks !
Cool! But the link is not working
says the site is down. try again later
It still down. Can i get the code somewere else? Love your channel and keep up the good work 👌
@@TABNationAutomation Still down. Any link for the ahk scrip ? // Patrik
hmmm, I tried this but it doesn't have a submenu for any folders. Thus it doesn't show what's inside the folder too. Also if I click on a text file it won't open it, just takes me to the main folder. Windows 11.
+d::
TopMenu := "C:\Users\Mylo\Documents\HARD_DRIVES\"
LastMenu := TopMenu
Loop Files, %TopMenu%\*.*, DFR
{
Menu, %A_LoopFileDir%, Add, %A_LoopFileName%, Action
If (A_LoopFileDir != LastMenu)
and (LastMenu != TopMenu)
AddMenu (LastMenu)
LastMenu := A_LoopFileDir
}
AddMenu (LastMenu)
Menu, %TopMenu%, Show
Return
Action:
Run, % A_ThisMenu . "\" . A_ThisMenultem
Return
AddMenu (MenuName)
{
SplitPath, MenuName , DirName, OutDir
Menu, %OutDir%, Add, %DirName%, :%MenuName%
}