I'm trying to define a collection of execute hotstrings in AHK 1.1.30.01.
The hotstrings and associated Outlook paths are located in two columns of an excel workbook. When my script starts, the columns are read into an associative array, so that I have the value of column B right next to corresponding value of column A. So far so good.
Here's the general structure of the workbook:
A=hotstring trigger____B=Outlook folder path
book________________\\[email protected]\Archive\Books
it___________________\\[email protected]\Archive\IT
When in Outlook, a hotkey opens a custom gui with an edit control. When I enter e.g. the "book" hotstring there, I'd like to execute a label or function which will move the selected email(s) to the folder specified in column B. For each row of the workbook, the hotstring ends up in dat[1], and the corresponding outlook path in dat[2]. The COM-based Excel operations work just fine, but I really struggle with
a) Making the Hotstring() function work in combination with the execute (X) option.
Code: Select all
HotString(":X:"dat[1], CustomFunction(dat[2]))
Code: Select all
#IfWinActive, Move messages ahk_class AutoHotkeyGUI