博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
AutoIT对窗体控件进行操作的例子
阅读量:3585 次
发布时间:2019-05-20

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

#include 
;获取窗口句柄$handle = WinGetHandle(".NET Reflector 6")WinActivate($handle);获取控件句柄;$control = ControlGetHandle($handle,"","WindowsForms10.SysListView32.app.0.232467a_r11_ad11");获取列表中List数目$count = ControlListView($handle,"",$control,"GetItemCount")for $i = 1 to 10 ;获取位置信息 $x = _GUICtrlListView_GetItemPositionX($control, $i-1) $y = _GUICtrlListView_GetItemPositionY($control, $i-1) ControlClick($handle,"", $control,"right",1, $x, $y) ControlSend($handle,"",$control,"{down 2}{enter}") WinWait("Save As") WinWaitActive("Save As") $handle2 = WinGetHandle("Save As") ControlSetText($handle2,"", "Edit1", "C:\Users\chenpassion\Desktop\Autoit\pic\" & $i & ".png") ControlClick($handle2,"","Button1") WinWaitClose("Save As") ControlSend($handle,"",$control,"{down}")Next
 
 
 
autoit最好的,对窗口,控件进行操作的例子

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

你可能感兴趣的文章
Spring Security
查看>>
流式编程
查看>>
数据结构与算法(C语言版)——陈越
查看>>
HTTP抓包实战的问题与总结
查看>>
基于XML的IOC容器初始化以及循环依赖问题——Spring中的refresh()方法
查看>>
Spring组件注册、Bean生命周期、自动装配相关知识
查看>>
Spring基于注解的IOC初始化过程(较长慎入)
查看>>
《Arduino》开发 之 基于 u8g2 库 的 OLED 菜单界面
查看>>
python学习之旅
查看>>
python-00-小白,你该怎样学编程?
查看>>
py-mongdb语法
查看>>
计算机网络 | 无盘工作站的建立
查看>>
Redis基础知识
查看>>
面向对象设计的五大基本原则
查看>>
以项目为导向,助您入门python之搭建开发环境anaconda+pycharm
查看>>
以项目为导向,助您入门python之网络爬虫-爬取京东商品plus价格低于原价5折的商品(一)
查看>>
以项目为导向,助您入门python之网络爬虫-爬取京东商品plus价格低于原价5折的商品(二)
查看>>
mysql安装和配置ODBC驱动,然后tableau链接MySQL数据库
查看>>
以项目为导向,助您入门python之网络爬虫-爬取京东商品plus价格低于原价5折的商品(三)
查看>>
物联网之智能灯开发-前言
查看>>