How can I mimic Visual Studio's “Ctrl-K, C” two-step macro behaviour using Autoit / Autohotkey?

后端 未结 2 418
南方客
南方客 2021-02-05 13:11

I\'m trying to set up AutoHotkey macros for some common tasks, and I want the hotkeys to mimic Visual Studio\'s \"two-step shortcut\" behaviour - i.e. pressing Ctrl-<

2条回答
  •  甜味超标
    2021-02-05 13:42

    This Autohotkey script, when you press ctrl+k, will wait for you to press a key and if you press d, it will input the current date.

    ^k::
    Input Key, L1
    FormatTime, Time, , yyyy-MM-dd
    if Key = d
        Send %Time%
    return
    

提交回复
热议问题