Auto script软件(UWSC,AutoIt,WinBatch)
来源:互联网 发布:免费解压缩软件ios 编辑:程序博客网 时间:2024/06/05 22:29
Auto script软件有很多种,如UWSC,AutoIt,WinBatch等等,这篇主要以
UWSC来作说明,UWSC有record action的功能,所以通常先record一下就
有现成的script了(UWSC可以记录mouse移动在内的动作),须要的话再
修改一下,加上loop,调用一些如getstr()之类的function,加入输出名称
,调整速度即可。
UWSC来作说明,UWSC有record action的功能,所以通常先record一下就
有现成的script了(UWSC可以记录mouse移动在内的动作),须要的话再
修改一下,加上loop,调用一些如getstr()之类的function,加入输出名称
,调整速度即可。
UWSC说明如下:
第一个icon用来载入uws script
第二个icon用来存uws script
第三个icon用来播放uws script(aka alt+f1)
第四个icon用来开始记录动作(aka alt+f3)
最后一个icon用来设定
第二个icon用来存uws script
第三个icon用来播放uws script(aka alt+f1)
第四个icon用来开始记录动作(aka alt+f3)
最后一个icon用来设定
停止记录或播放用alt+f2
一般常用script/function:
a.output file 输出
//output file
file_name = "C:/dictmp.txt"
errfile_name = "C:/dic_err.txt"
a.output file 输出
//output file
file_name = "C:/dictmp.txt"
errfile_name = "C:/dic_err.txt"
b.loop
//loop start
//x is the number you wana loop
for i = 1 to x
......................................
//put your action between for and next
......................................
//next loop
next
//loop start
//x is the number you wana loop
for i = 1 to x
......................................
//put your action between for and next
......................................
//next loop
next
c.get txt from clipboard script
//Set a tag
pgbak=""
//Set a tag
pgbak=""
//get txt from clipboard
pgtext = GETSTR(0)
pgtext = GETSTR(0)
//condition loop start
//error handle one
IFB pgtext="" THEN
tf = FOPEN(errfile_name,F_READ or F_WRITE)
FPUT(tf,"**********",0)
FPUT(tf,pgbak,0)
FCLOSE(tf)
//error handle one
IFB pgtext="" THEN
tf = FOPEN(errfile_name,F_READ or F_WRITE)
FPUT(tf,"**********",0)
FPUT(tf,pgbak,0)
FCLOSE(tf)
//error handle two
ELSEIF pgtext=pgbak THEN
tf = FOPEN(errfile_name,F_READ or F_WRITE)
FPUT(tf,"**********",0)
FPUT(tf,pgtext,0)
FCLOSE(tf)
ELSEIF pgtext=pgbak THEN
tf = FOPEN(errfile_name,F_READ or F_WRITE)
FPUT(tf,"**********",0)
FPUT(tf,pgtext,0)
FCLOSE(tf)
//paste txt to file
ELSE
tf = FOPEN(file_name,F_READ or F_WRITE)
FPUT(tf,"**********",0)
FPUT(tf,pgtext,0)
FCLOSE(tf)
ELSE
tf = FOPEN(file_name,F_READ or F_WRITE)
FPUT(tf,"**********",0)
FPUT(tf,pgtext,0)
FCLOSE(tf)
ENDIF
pgbak=pgtext
d.sleep
//set a speed control to slow down
sleep(0.x)
//set a speed control to slow down
sleep(0.x)
e.mouse movement
//mouse move MMV (x,y,z),z for speed(time)
MMV(499,514,1)
//mouse move MMV (x,y,z),z for speed(time)
MMV(499,514,1)
f.bottun action
//BTN(x,y,z,w,s),s for speed(time)
//ex.release left mouse
BTN(LEFT,UP,545,474,4)
//BTN(x,y,z,w,s),s for speed(time)
//ex.release left mouse
BTN(LEFT,UP,545,474,4)
g.keyboard keystroke
//ex. press s key,KBD(VK_X,click,z),z for speed
KBD(VK_S,CLICK,1)
//ex. press s key,KBD(VK_X,click,z),z for speed
KBD(VK_S,CLICK,1)
h.get the id for active window
//get the id for active window
//ex. get the pose window active
ACW(GETID("PALM OSR EMULATOR","PalmOSEmulatorDisplay"),201,56,548,706,0)
//get the id for active window
//ex. get the pose window active
ACW(GETID("PALM OSR EMULATOR","PalmOSEmulatorDisplay"),201,56,548,706,0)
以上为uwsc转字典常用的function,如果须要用其它的function
可参考:
UWSC
可参考:
UWSC
- Auto script软件(UWSC,AutoIt,WinBatch)
- AutoIt软件说明
- auto config ip script
- Auto run script
- iptables --- auto script
- AUTOIT做的小软件
- simple auto backup ftp script
- oracle auto backup shell script
- Auto你的IT——AutoIt是啥?
- AutoIt
- AUTOIT
- AutoIt
- autoit
- autoit
- autoit
- AutoIt
- 使用AutoIT实现自动登录/退出客户端软件,删除日志
- autoit——制作自动安装软件脚本
- 简单了解htmlparser
- 微软软件开发技术二十年回顾(含.net Framework3.0)
- openfire交流
- 关于国内某些IT技术文章的真实性、原创性的思考
- 感谢、激动、回味、努力、期望--我的BEA WORLD2007之旅
- Auto script软件(UWSC,AutoIt,WinBatch)
- VC入门必备--基础知识(五)
- matlab文件操作及读txt文件
- lsforum
- 用C#设计在局域网发送短信的程序
- 卓越雇主--百度:创新巨擘
- VC#初学入门:第一个Windows程序
- 卓越雇主--腾讯:文化的力量
- java删除文件夹|文件的方法