我試圖建立AutoHotkey宏一些常見的任務,我想熱鍵模仿Visual Studio的「兩步走快捷方式」的行爲 - 即按Ctrl鍵 - ķ將使「微距模式」;在微距模式下,按某些鍵將運行一個宏,然後禁用「微距模式」,其他任何鍵都將禁用微距模式。如何使用Autoit/Autohotkey模仿Visual Studio的「Ctrl-K,C」兩步宏行爲?
示例 - 輸入一個文件名時,我希望能夠通過點擊Ctrl鍵插入今天的日期 - ķ,然後按d。
有沒有人有一個有狀態的AutoHotkey腳本的行爲像這樣的很好的例子?