Autohotkey 有人能帮我一个自动热键脚本吗?

Autohotkey 有人能帮我一个自动热键脚本吗?,autohotkey,Autohotkey,我已经阅读了它的帮助和指南,但我就是想不出来。我所要做的就是创建一个热键,按下该热键时将移动鼠标,直到再次按下该热键。谁能告诉我怎么做?它应该非常简单,但显然我遗漏了一些东西。这几乎是有史以来最烦人的热键,但这里的热键是Ctrl+Alt+C 我将提出我的解决办法 pause:: If (Toggle := !Toggle) ; Toggle the value True/False { ToolTip Mouse Mover,A_ScreenWidth/2,0 ; Sho

我已经阅读了它的帮助和指南,但我就是想不出来。我所要做的就是创建一个热键,按下该热键时将移动鼠标,直到再次按下该热键。谁能告诉我怎么做?它应该非常简单,但显然我遗漏了一些东西。

这几乎是有史以来最烦人的热键,但这里的热键是Ctrl+Alt+C


我将提出我的解决办法

pause::
If (Toggle := !Toggle) ; Toggle the value True/False
    {
        ToolTip Mouse Mover,A_ScreenWidth/2,0 ; Show that Mouse Mover is active
        SetTimer MoveMouse, 1000 ; 1000 ms = 1 sec. Every minute (60000 ms) is probably enough.
    }
Else
    {
        Tooltip ;  Turn Mouse Mover alert window off
        SetTimer MoveMouse, Off ; Turn the timer off
    }
return

MoveMouse:
    MouseMove, 1, 0, 1, R ;Move the mouse one pixel to the right
    Sleep, 50 ; Wait 50 ms. Not realy required, but makes the move visible
    MouseMove, -1, 0, 1, R ;Move the mouse back one pixel
return

你有什么有用的东西吗?到目前为止,你能展示你的脚本吗?不确定你想做什么,但我可以想象你想阻止你的屏幕保护程序通过这个脚本激活。如果是这样的话,我建议您根据计时器每隔一分钟左右上下移动鼠标1个像素,您可以打开/关闭计时器。如果这是你想要的,我可以提供一个脚本。
pause::
If (Toggle := !Toggle) ; Toggle the value True/False
    {
        ToolTip Mouse Mover,A_ScreenWidth/2,0 ; Show that Mouse Mover is active
        SetTimer MoveMouse, 1000 ; 1000 ms = 1 sec. Every minute (60000 ms) is probably enough.
    }
Else
    {
        Tooltip ;  Turn Mouse Mover alert window off
        SetTimer MoveMouse, Off ; Turn the timer off
    }
return

MoveMouse:
    MouseMove, 1, 0, 1, R ;Move the mouse one pixel to the right
    Sleep, 50 ; Wait 50 ms. Not realy required, but makes the move visible
    MouseMove, -1, 0, 1, R ;Move the mouse back one pixel
return