介绍:
一个计算机系统软件,能将可执行文件、批处理文件及快捷方式作为windows系统服务,并且进行管理和监视确保100%运行。当程序崩溃、挂起、弹出错误对话框时,AlwaysUp 能自动重启程序,并运行自定义的检查功能确保程序一直可用。AlwaysUp 能发送详细的email使你清楚地了解崩溃、重启等事件。
可以运行au3脚本,下面以我写的脚本例子为例,具体au3的教程,网上有比较详细的
$handle = WinGetHandle("福禄网络财务助理及时余额 V2015.2.4.19865","")
If @error Then
$handle = WinGetHandle("福禄网络财务助理整点余额 V2015.2.4.19865","")
If @error Then
MsgBox(4096, "错误", "不能找到指定窗口")
Else
SetApp($handle)
EndIf
Else
SetApp($handle)
EndIf
Func SetApp($handle)
WinActivate($handle)
ControlCommand($handle, "", "[NAME:cmbServerAddress]", "SelectString","59.173.13.76")
ControlCommand($handle, "", "[NAME:cmbServerAddress]", "SetCurrentSelection","0")
ControlCommand($handle, "", "[NAME:c_ckZD]", "Check", "")
ControlCommand($handle, "", "[NAME:radioButton2]", "Check", "")
ControlClick($handle, "", "[NAME:btnConnect]")
ControlClick($handle, "", "[NAME:button1]")
MsgBox(4096, "提示", "已执行")
EndFunc
版权声明:本文为博主原创文章,未经博主允许不得转载。
时间: 2024-10-20 10:25:25