找回密码
 加入
搜索
查看: 1267|回复: 2

请问鼠标移动与点击问题!

[复制链接]
发表于 2009-5-3 18:34:27 | 显示全部楼层 |阅读模式
#include <IE.au3>
$oIE = _IECreate ("www.baidu.com",0,0,1,0)
_IEPropertySet ($oIE, "toolbar", 0)
_IEPropertySet ($oIE, "width", 800)
_IEPropertySet ($oIE, "height", 600)
_IEPropertySet ($oIE, "resizable", 0)
_IEPropertySet ($oIE, "title","我打开的百度,我做主")
_IEPropertySet ($oIE, "statustext","欢迎访问 百度")
$oForm = _IEFormGetObjByName ($oIE, "f")
$oQuery1 = _IEFormElementGetObjByName ($oForm, "q")
_IEFormElementSetValue ($oQuery1, "与 autoit3 亲密接触")
_IEFormSubmit ($oForm,1)
_IEAction ($oIE, "visible")
Sleep(5000)
_IEAction ($oIE, "quit")

我想在打开IE之后鼠标在里面点击下!应该如何加代码!
使用ControlClick命令总是不行!
 楼主| 发表于 2009-5-3 18:36:06 | 显示全部楼层
就是在
#include <IE.au3>
$oIE = _IECreate ("www.baidu.com",0,0,1,0)
_IEPropertySet ($oIE, "toolbar", 0)
_IEPropertySet ($oIE, "width", 800)
_IEPropertySet ($oIE, "height", 600)
_IEPropertySet ($oIE, "resizable", 0)
_IEPropertySet ($oIE, "title","我打开的百度,我做主")
_IEPropertySet ($oIE, "statustext","欢迎访问 百度")
这一段是打开了IE了,创建了一个800*600的窗口,并打开了百度这个网站!
但是我要在这里面的窗口中随便哪个位置鼠标单击应该如何??哪位兄弟麻烦讲讲!
谢谢!

$oForm = _IEFormGetObjByName ($oIE, "f")
$oQuery1 = _IEFormElementGetObjByName ($oForm, "q")
_IEFormElementSetValue ($oQuery1, "与 autoit3 亲密接触")
_IEFormSubmit ($oForm,1)
_IEAction ($oIE, "visible")
Sleep(5000)
_IEAction ($oIE, "quit")
发表于 2009-5-3 20:15:28 | 显示全部楼层
MouseClick("left")
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-12-25 00:53 , Processed in 0.071119 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表