求助关于在1个autohotkey的脚本修改,模拟鼠标点击。
脚本如下;#MaxThreadsPerHotkey3F10::;#MaxThreadsPerHotkey1ifKeepWinZRunning=y;Thismeansanu...
脚本如下;
#MaxThreadsPerHotkey 3
F10:: ;
#MaxThreadsPerHotkey 1
if KeepWinZRunning = y ; This means an underlying thread is already running the loop below.
{
KeepWinZRunning = ; Make it blank to signal that thread's loop to stop.
return ; End this thread so that the one underneath will resume and see the change.
}
; Otherwise:
KeepWinZRunning = y
Loop,
{
ControlSend ,,{space},魔兽世界,,, ;
Sleep, 1000 ;
if KeepWinZRunning = ; The user signaled the loop to stop by pressing Win-Z again.
break ; Break out of this loop.
}
KeepWinZRunning = ; Reset in preparation for the next press of this hotkey.
return
我想除了1秒按一次空格外,加入1秒鼠标左键单击1下屏幕坐标位置。
不行噢,按照你的方法加进去,显示The leftmost character above is illegal in an expression. The program will exit。错误行就是加的那一行 展开
#MaxThreadsPerHotkey 3
F10:: ;
#MaxThreadsPerHotkey 1
if KeepWinZRunning = y ; This means an underlying thread is already running the loop below.
{
KeepWinZRunning = ; Make it blank to signal that thread's loop to stop.
return ; End this thread so that the one underneath will resume and see the change.
}
; Otherwise:
KeepWinZRunning = y
Loop,
{
ControlSend ,,{space},魔兽世界,,, ;
Sleep, 1000 ;
if KeepWinZRunning = ; The user signaled the loop to stop by pressing Win-Z again.
break ; Break out of this loop.
}
KeepWinZRunning = ; Reset in preparation for the next press of this hotkey.
return
我想除了1秒按一次空格外,加入1秒鼠标左键单击1下屏幕坐标位置。
不行噢,按照你的方法加进去,显示The leftmost character above is illegal in an expression. The program will exit。错误行就是加的那一行 展开
展开全部
;左键单击,x,y为坐标 ,具体的数字,加入循环就可以了
Loop,
{
ControlSend ,,{space},魔兽世界,,, ;
MouseClick, left, x, y;
Sleep, 1000 ;
if KeepWinZRunning = ; The user signaled the loop to stop by pressing Win-Z again.
break ; Break out of this loop.
}
Loop,
{
ControlSend ,,{space},魔兽世界,,, ;
MouseClick, left, x, y;
Sleep, 1000 ;
if KeepWinZRunning = ; The user signaled the loop to stop by pressing Win-Z again.
break ; Break out of this loop.
}
AiPPT
2024-09-19 广告
2024-09-19 广告
随着AI技术的飞速发展,如今市面上涌现了许多实用易操作的AI生成工具1、简介:AiPPT: 这款AI工具智能理解用户输入的主题,提供“AI智能生成”和“导入本地大纲”的选项,生成的PPT内容丰富多样,可自由编辑和添加元素,图表类型包括柱状图...
点击进入详情页
本回答由AiPPT提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询