Sign in to follow this  
Followers 0
pete1234

Tray menu: create shortcuts dynamically

3 posts in this topic

I have a pretty basic tray menu, and there's a submenu called Windows Explorer where I point to a few different locations on my drive that I navigate to frequently. Now, let's say I have a folder that contains only standard Windows shortcuts to these places. Is it possible to have my tray menu have tray items that are updated based on these shortcuts? So if I add a shortcut or delete one from this folder, the Windows Explorer submenu will automatically be updated.

I've attached my code thus far, although I'm not sure it's necessary for these purposes. But note I am using ModernMenu.

Thanks.

Tray.au3

Share this post


Link to post
Share on other sites



I have a pretty basic tray menu, and there's a submenu called Windows Explorer where I point to a few different locations on my drive that I navigate to frequently. Now, let's say I have a folder that contains only standard Windows shortcuts to these places. Is it possible to have my tray menu have tray items that are updated based on these shortcuts? So if I add a shortcut or delete one from this folder, the Windows Explorer submenu will automatically be updated.

I've attached my code thus far, although I'm not sure it's necessary for these purposes. But note I am using ModernMenu.

Thanks.

Just build the sub-menu dynamically. I think if I understood correctly, that you had a folder of frequently used shortcuts, and you wanted to populate a submenu from them? FileFindFirst () and FileFindNext () will do the trick at the start, but as for updating, that shouldn't be much harder than doing a search on the forums... :) All you want to know is when the folder is updated, check back a few topics from this, there is a topic similar- but the OP wants to find if the folder changed, I posted an example there. Then just rebuild it. muttley

Share this post


Link to post
Share on other sites

LOL. I didn't even connect the two, even though I'm just finishing up with the other one. Thanks, I will try and figure this one out tomorrow. Code make head hurt.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0