找回密码
 加入
搜索
查看: 2963|回复: 0

[AU3基础] 怎么对AU3Record录制的键鼠代码批量进行轨迹化和录入延迟处理

[复制链接]
发表于 2011-12-3 08:15:31 | 显示全部楼层 |阅读模式
因本人的工作性质,常常要给朋友做录制些演示,为了使演示不拖沓,我常用AU3Record先录制键鼠的操作,然后稍微再回放并录制演示,这样演示非常“精炼”,演示视频文件也小,但是鼠标的跳跃非常大(没有鼠标轨迹,只有点击或拖动操作),键盘录入也是非常快(一晃就出来了一行字)。不知道可否用AU3代码对这些录制的键鼠操作代码进行批处理:
1.给鼠标的移动加些“过程”,使得可以看到移动的“轨迹”,轨迹可直线,也可光滑的曲线,看起来舒服就行;
2.关于键盘操作的Send函数,能否对它分解一下,使得每个按键之间加点延时(用参数调整延时大小);
3.在鼠标单击的位置搞点特殊效果,比如产生个透明的绿色光圈,双击的位置也搞点特殊效果;

有劳高手帮帮我!在此先谢谢啦!

下面是一段录制的代码:
_WinWaitActivate("高职教育的挑战.doc (受保护的视图) - Microsoft Word","高职教育的挑战.doc (受保护的视图)")
MouseClick("left",529,77,1)
MouseClick("left",529,77,1)
_WinWaitActivate("高职教育的挑战.doc [兼容模式] - Microsoft Word","MSO Generic Control ")
Send("{CTRLDOWN}{CTRLUP}")
MouseClick("left",615,456,2)
MouseClick("right",857,440,1)
_WinWaitActivate("classname=Net UI Tool Window","")
MouseClick("left",52,150,1)
_WinWaitActivate("字体","")
MouseClick("left",121,201,1)
_WinWaitActivate("classname=Net UI Tool Window","")
MouseClick("left",66,187,1)
_WinWaitActivate("颜色","")
MouseClick("left",167,161,1)
MouseClick("left",261,41,1)
_WinWaitActivate("字体","")
MouseClick("left",317,455,1)
_WinWaitActivate("高职教育的挑战.doc [兼容模式] - Microsoft Word","MSO Generic Control ")
Send("{PGDN}")
MouseClick("left",616,341,1)
MouseClick("left",83,123,1)
MouseClick("left",83,123,1)
MouseMove(854,826)
MouseDown("left")
MouseMove(640,828)
MouseUp("left")
MouseClick("left",1596,714,1)
MouseMove(852,437)
MouseDown("left")
MouseMove(657,440)
MouseUp("left")
MouseClick("left",78,123,1)
MouseClick("left",623,652,1)
MouseClick("left",342,119,1)
_WinWaitActivate("classname=Net UI Tool Window","")
MouseClick("left",14,49,1)
_WinWaitActivate("高职教育的挑战.doc [兼容模式] - Microsoft Word","MSO Generic Control ")
MouseClick("left",682,184,1)
Send("{CTRLDOWN}")
MouseClick("left",742,617,1)
Send("{CTRLUP}")
MouseClick("left",1593,769,1)
Send("{SHIFTDOWN}")
MouseClick("left",906,525,1)
Send("{SHIFTUP}{CTRLDOWN}")
MouseClick("left",686,605,1)
MouseMove(742,800)
MouseDown("left")
MouseMove(681,608)
MouseUp("left")
Send("{CTRLUP}")
MouseClick("left",358,115,1)
MouseClick("left",257,82,1)
MouseClick("left",230,169,1)
MouseClick("left",1596,691,1)
MouseMove(1599,629)
MouseDown("left")
MouseMove(1587,248)
MouseUp("left")
MouseClick("left",839,554,1)
Send("{CTRLDOWN}{CTRLUP}qianqiuwandai{SPACE}Ⰰyongbumingji{SPACE}")
MouseClick("left",681,385,1)
MouseClick("left",1598,744,1)
Send("{SHIFTDOWN}")
MouseClick("left",940,793,1)
Send("{SHIFTUP}")
MouseMove(278,79)
MouseDown("left")
MouseMove(279,78)
MouseUp("left")
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-11-15 09:27 , Processed in 0.078534 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表