|
我用XP的remote到服务器上用cmd来修改时间。
运行成功后的脚本如下:
SystemUtil.Run "C:\WINDOWS\system32\mstsc.exe","","D:\Documents and Settings\****","open"
Dialog("Remote Desktop Connection").WinButton("Connect").Click
Window("Remote Desktop").WinObject("Input Capture Window").Type "*****"
Window("Remote Desktop").WinObject("Input Capture Window").Click 430,405
wait 3
Window("Remote Desktop").WinObject("Input Capture Window").Click 54,751
Window("Remote Desktop").WinObject("Input Capture Window").Click 272,643
Window("Remote Desktop").WinObject("Input Capture Window").Type "cmd"
Window("Remote Desktop").WinObject("Input Capture Window").Click 154,704
Window("Remote Desktop").WinObject("Input Capture Window").Type " date 07-02-02"
Window("Remote Desktop").WinObject("Input Capture Window").Type micReturn
wait 3
Window("Remote Desktop").WinObject("Input Capture Window").Type "exit"
Window("Remote Desktop").WinToolbar("ToolbarWindow32").Press 3
Window("Remote Desktop").Dialog("Disconnect Windows session").WinButton("OK").Click
希望对楼主有用。
[ 本帖最后由 风过无息 于 2007-3-23 11:02 编辑 ] |
|