|
楼主 |
发表于 2009-9-8 12:32:52
|
显示全部楼层
#NoTrayIcon
Dim $lu,$ch,$jing
$lu = "D:\Program Files\Zetronic\过滤王网吧版5.6.4.16 -CA控制台\FG_Manager.exe"
$jing = "FG_Manager.exe"
$ch = "连接服务器"
If Not ProcessExists($jing) Then
Run($lu)
WinWait($ch,"服务器地址")
WinActivate($ch,"服务器地址")
ControlSetText($ch,"服务器地址","Edit1","192.168.0.250")
ControlClick($ch,"服务器地址","TBitBtn2","left")
WinWait($ch,"操作员名称")
ControlSetText($ch,"操作员名称","TEdit2","admin")
ControlSetText($ch,"操作员名称","TEdit1","1")
ControlClick($ch,"操作员名称","TBitBtn2","left")
Exit
EndIf
MsgBox(4096,"错误","控制台正在运行!")
Exit
这个脚本放到别的目录不行` ` 现在只能改以下脚本了` `
#NoTrayIcon
Dim $lu,$ch
$lu = "FG_Manager.exe"
$ch = "连接服务器"
If Not ProcessExists($lu) Then
Run($lu)
WinWait($ch,"服务器地址")
WinActivate($ch,"服务器地址")
ControlSetText($ch,"服务器地址","Edit1","192.168.0.250")
ControlClick($ch,"服务器地址","TBitBtn2","left")
WinWait($ch,"操作员名称")
ControlSetText($ch,"操作员名称","TEdit2","admin")
ControlSetText($ch,"操作员名称","TEdit1","1")
ControlClick($ch,"操作员名称","TBitBtn2","left")
Exit
EndIf
MsgBox(4096,"错误","控制台正在运行!")
Exit
有什么方法可以让第一个脚本正常运行的吗? |
|