找回密码
 加入
搜索
查看: 3122|回复: 3

[IE类操作] 给网页输入框赋值后,如何通过JS调出它的自动提示?

[复制链接]
发表于 2010-7-27 16:02:36 | 显示全部楼层 |阅读模式
比如在百度搜索框中输入关键词后,如果手动输入的,会出现自动提示,但是通过赋值操作输入的不会出现自动提示,如何用JS将这个自动提示调出来?

参考资料:
http://www.duxt.net/article.asp?id=100
发表于 2010-7-27 16:41:18 | 显示全部楼层
刚才去试了下
#include <ie.au3>
$oIE = _IECreate("http://www.baidu.com")
ControlSend("百度一下,你就知道 - Windows Internet Explorer","","","aaa")
#include <ie.au3>
$oIE = _IECreate("http://www.baidu.com")
Send("aaa")
都可以正常弹出输入提示

评分

参与人数 2金钱 +50 贡献 +5 收起 理由
passkalilo + 30 + 5 乐于助人
afan + 20

查看全部评分

 楼主| 发表于 2010-7-27 21:17:09 | 显示全部楼层
回复 2# Ziya

我测试了一下,Controlsend发送英文有提示,但发送中文却没有提示:
#include <ie.au3>
$key = '北京'
$oIE = _IECreate("http://www.baidu.com")
ControlSend("百度一下,你就知道 - Windows Internet Explorer","","",$key)
发表于 2010-7-28 09:09:20 | 显示全部楼层
ControlSend("百度一下,你就知道 - Windows Internet Explorer","","",$key&"a{BS}")
那就发个英文再删掉,让它显示...
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-18 18:17 , Processed in 0.086499 second(s), 28 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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