博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
autoit3 ie.au3 函数之——_IEAction
阅读量:4052 次
发布时间:2019-05-25

本文共 1717 字,大约阅读时间需要 5 分钟。

_IEAction: Perform any of a set of simple actions on the Browser.

即: 查找第一个存在的符合查找字串子串的IE例子,查找方式基于选择的模式.

#include <IE.au3>

_IEAction ( ByRef $o_object, $s_action )

例子:

$oIE = _IECreate ("www.baidu.com")

Sleep(1000)
$oSubmit = _IEGetObjById ($oIE, "su")
Send("中国")
Sleep(1000)
_IEAction ($oSubmit, "click")

_IELoadWait ($oIE)

Remarks

Action Description
"back" Navigates backward one item in the history list.
"blur" Causes the element to lose focus, but does not set focus on the next element in the tab order.
"click" Simulates a click on the specified element.
"copy" Copies the current selection to the clipboard.
"cut" Copies the current selection to the clipboard and then deletes it.
"delete" Deletes the current selection.
"disable" Disables the specified element.
"enable" Enables the specified element.
"focus" Causes the element to receive focus.
"forward" Navigates forward one item in the history list.
"home" Navigates to the current home or start page.
"invisible" Sets an object state to hidden.
"paste" Overwrites the contents of the clipboard on the current selection.
"print" Opens the print dialog box so the user can print the current page.
"printdefault" Print directly to default printer (no dialog)
"quit" Closes the object.
"refresh" Refreshes the current document.
"saveas" Opens a dialog box to save the current Web page to a file.
"search" Navigates to the current search page.
"selectall" Selects the entire document.
"stop" Cancels any pending navigation or download operation and stops any dynamic page elements, such as background sounds and animations.
"unselect" Clears the current selection.
"visible" Sets an object state to visible.

PS: 这个里面的内容有点多, 需要时间来积累经验, 所以就先了解下简单的, 以后有用到的再来补充。

转载地址:http://lgcci.baihongyu.com/

你可能感兴趣的文章
JVM并发机制探讨—内存模型、内存可见性和指令重排序
查看>>
持续可用与CAP理论 – 一个系统开发者的观点
查看>>
nginx+tomcat+memcached (msm)实现 session同步复制
查看>>
c++字符数组和字符指针区别以及str***函数
查看>>
c++类的操作符重载注意事项
查看>>
c++模板与泛型编程
查看>>
WAV文件解析
查看>>
WPF中PATH使用AI导出SVG的方法
查看>>
WPF UI&控件免费开源库
查看>>
QT打开项目提示no valid settings file could be found
查看>>
Win10+VS+ESP32环境搭建
查看>>
android 代码实现圆角
查看>>
flutter-解析json
查看>>
android中shader的使用
查看>>
java LinkedList与ArrayList迭代器遍历和for遍历对比
查看>>
drat中构造方法
查看>>
JavaScript的一些基础-数据类型
查看>>
JavaScript基础知识(2)
查看>>
转载一个webview开车指南以及实际项目中的使用
查看>>
android中对于非属性动画的整理
查看>>