|
**
Creating DYNAMIC SUBMENUS thru AutoHotkey **
Desktop Captures of i-Keys Tray Menu (images in 1024x768x16M Resolution) Click on the image to enlarge it (or) Right click & Open in New Window |
|
The above Desktop Capture shows the listing
of E:\Home Videos\*.MPG (MPEG downloaded from my Digital Camera).
It had 125+ Files which has been broken down to submenus (Volumes)
containing 25 files each. It was a bit tough scripting (for me!) to
arrange the list in descending order and inserting a seperator for different
dates. The Script checks its "Settings.ini" file for a Keyvalue
"RELOAD" from a timer and when found reloads the Script. |
|
A Different Kind of Dynamic Submenu: The Sub Menu Items between the two seperators (Windows Explorer Menu) has been generated from FOLDERS.LST (The contents of the file can also be seen). The Submenu Explore Drive lists the Available Drives. This is generated from a Timer which uses the following lines of code schr=67 The Drives A:\ and B:\ are
static items because accessing it from a Timer keeps the drive light always
flickering (and slows down the script). The Drive Y:\ (DVD ROM)
and Z:\ (CD-Writer) does not show on the list because it does not
contain Media. Also Drive G:\ (Digital Camera - Removable Drive Shows
Instantly when it is plugged and switched on) I hate using WIN+E. Most of the time it is slow to show up owing to the media in CD/DVD drives.But opening a "CabinetWClass" (Single Pane) Explorer Window is much faster. Also the following lines in my script gives me instant access to the drives. I had to include the shift modifier because of Windows reserves hotkeys (#D #E #F #M #R) +#A::Gosub,ExploreDrive
; Explore Drive A: ExploreDrive: Download the above script as a Zip file (or) copy/paste and save the code to .AHK file |
|
Arian N Suresh Kumar |