Of course. Here are the very first two lines of my Autohotkey.ini:
Code:
#Include c:\Program Files\AutoHotkey\Scripts\Functions.ahk
#Include c:\Program Files\AutoHotkey\Scripts\StartMenu.ahk
A couple of lines down I have this:
Code:
#a::Menu, MyMenu, Show, 0, 1024
Here is the code in StartMenu.ahk:
Code:
CoordMode, Menu, Screen
; Create submenu
Menu, Submenu1, Add, &AutoHotkey.ini, AutoHotkey
Menu, Submenu1, Add, &Start Menu, StartMenu
Menu, Submenu1, Add, U&RL Filter, URLfilter
Menu, Submenu1, Add, &Telefoonnummers, EditTelefoonnummers
; Display submenu
Menu, MyMenu, Add, &Edit files, :Submenu1
; Add separator
Menu, MyMenu, Add
Menu, MyMenu, Add, Play &DVD, PlayDVD
Menu, MyMenu, Add, &Photoshop, Photoshop
Menu, MyMenu, Add, &Illustrator, Illustrator
Menu, MyMenu, Add, &Lightroom, Lightroom
Menu, MyMenu, Add, &Writer, Writer
Menu, MyMenu, Add, &Calc, Calc
Menu, MyMenu, Add, Mnemos&yne, Mnemosyne
Menu, MyMenu, Add, Super&Memo, SuperMemo
Menu, MyMenu, Add, &Skype, Skype
Menu, MyMenu, Add, Tas&k Scheduler, TaskScheduler
Menu, MyMenu, Add, &XAMPP, StartXampp
return
Followed by all the menu handlers and nothing else.
As I said, I have tried putting the hotkey line everywhere I could think of, but I always get the same error: "Error in #Include file c:\Program Files\AutoHotkey\Scripts\StartMenu.ahk: Menu does not exist."