检测Alt + LeftMouse单击并在Autohotkey中发送延迟双击

时间:2018-05-29 00:21:18

标签: autohotkey

我想检测Autohotkey中的组合键(Alt + LeftMouse点击)。检测到后,Autohotkey将模拟双击动作,并在点击之间延迟。

这是我的Autohotkey代码。这是行不通的。这有什么问题?

<body>
<p>This is IFrame</p>
    <button onclick="displayIframe()">Click me</button>
  <div id="iframeDisplay"></div>  

<script>
    function displayIframe() {
        document.getElementById("iframeDisplay").innerHTML = "<iframe src=\"../HtmlPage1.html\" height=\"200\" width=\"300\" ></iframe>";

    }
</script>
</body>

1 个答案:

答案 0 :(得分:2)

#IfWinActive Outlook

    !LButton:: ;Alt-LeftMouseClick
        ; Click ; uncommend this line if you want to click a second time after Alt+LeftMouseClick
        Sleep, 200 
        Click
    return

#IfWinActive    ; turn off context sensitivity

https://autohotkey.com/docs/commands/_IfWinActive.htm