How do I stop an active AutoHotkey script?

前端 未结 4 1142
失恋的感觉
失恋的感觉 2021-02-01 16:43

Yesterday while debugging my AutoHotkey script, I accidentally triggered an endless loop of MouseMove and MouseClick events. Every 0.5 seconds my mouse

4条回答
  •  猫巷女王i
    2021-02-01 17:04

    If you want to close a specific window without doing a loop, I have created the following:

    DetectHiddenWindows, On
    
    path = %A_Desktop%\Test.ahk - AutoHotkey v1.1.26.01
    
    path2 = %A_Desktop%\Test2.ahk - AutoHotkey v1.1.26.01
    
    WinClose, %path%
    
    WinClose, %path2%
    

    **NOTE 1 : ** the file name + " - AutoHotKey blah blah blah" (This is the window name for hot key when you open the window hidden on your bottom right corner close to the clock)

    **NOTE 2 : ** the file names have to be case sensitivity.

提交回复
热议问题