|
发表于 2009-11-5 14:55:39
|
显示全部楼层
Gmail邮箱
--------------------
#include <IE.au3>
dim $a="用户名",$b="密码"
$oIE = _IECreate ("http://www.gmail.com")
if $oIE Then Send("{ENTER}")
$oForm = _IEFormGetObjByName ($oIE, "gaia_loginform")
$ming = _IEFormElementGetObjByName ($oForm, "Email")
$mima = _IEFormElementGetObjByName ($oForm, "Passwd")
$an = _IEFormElementGetObjByName ($oForm, "signIn")
_IEFormElementSetValue ($ming, $a,0)
_IEFormElementSetValue ($mima, $b)
_IEAction ($an, "click")
Sleep(8000)
Send("{ENTER}")
------------------
126邮箱
=================
#include <IE.au3>
dim $a="用户名",$b="密码"
$oIE = _IECreate ("http://www.163.com/")
$oForm = _IEFormGetObjByName ($oIE, "form")
$ming = _IEFormElementGetObjByName ($oForm, "user")
$mima = _IEFormElementGetObjByName ($oForm, "pass")
$an = _IEFormElementGetObjByName ($oForm, "enter.x")
_IEFormElementSetValue ($ming, $a,0)
_IEFormElementSetValue ($mima, $b)
_IEAction ($an, "click")
===================
360安装
===============
Run("setup.exe") setup.exe 奇虎360安全卫士文件
WinWaitActive("奇虎360安全卫士 安装","欢迎使用“奇虎360安全卫士”安装向导")
ControlClick("奇虎360安全卫士 安装", "", 1)
ControlClick("奇虎360安全卫士 安装", "", "Button2")
ControlClick("奇虎360安全卫士 安装", "", "下一步(&N) >")
WinWaitActive("奇虎360安全卫士 安装","许可证协议")
ControlClick("奇虎360安全卫士 安装", "", "我接受(&I)")
ControlSetText("奇虎360安全卫士 安装", "", "Edit1", "D:\360safe")
ControlClick("奇虎360安全卫士 安装", "", "安装(&I)")
WinWaitActive("奇虎360安全卫士 安装","正在完成“奇虎360安全卫士”安装向导")
ControlCommand("奇虎360安全卫士 安装", "", "Button5", "UnCheck", "")
ControlClick("奇虎360安全卫士 安装", "", "完成(&F)")
打开脚本自身目录
ShellExecute ("盘符:\路径")
================
自动安装maxthon2:(用send)
================
这个简单,学会简单的几个按键命令就搞定了
|
|