struct  gt_cl_hp_saveMaxinfo (
pathpp ="" ,
fn savemaxinfor =( DialogMonitorOPS.unRegisterNotification id:#gtMMOscenceEqualname
function callSummaryEqualname = (
---收集window句柄
windowHandle = DialogMonitorOPS.GetWindowHandle()
windowName = (UIAccessor.GetWindowText windowHandle) as String ----从窗口中找到我想要的窗口的按钮的名称
if (findstring windowName "save file as")!=undefined then (
---- 找到主窗口子控件的名称 chwindow = UIAccessor.GetChildWindows windowHandle
if chwindow !=undefined then (
for i in to chwindow.count do (
if (chwindow[i] !=) then (
kjName = (UIAccessor.GetWindowText (chwindow [i]) as String )
--- 保存配置 按下配置按钮
--print kjName
if kjName == "是(&Y)" then (
--UIAccessor.PressButtonByName WindowHandle kjName
--- 应该不错的话需要在一层监控
UIAccessor.PressButtonByName WindowHandle kjName
)
)
)
)
--print (UIAccessor.GetWindowText (chwindow [i]) as String
) false ) DialogMonitorOPS.unRegisterNotification id:#gtMMOscenceone
function callSummaryonw = (
---收集window句柄
windowHandle = DialogMonitorOPS.GetWindowHandle()
windowName = (UIAccessor.GetWindowText windowHandle) as String ----从窗口中找到我想要的窗口的按钮的名称
if (findstring windowName "Save File As")!=undefined then
(
---- 找到主窗口子控件的名称 chwindow = UIAccessor.GetChildWindows windowHandle
--print (windowName +"*****ceshi")
if chwindow !=undefined then (
for i in to chwindow.count do (
if (chwindow[i] !=) then (
kjName = (UIAccessor.GetWindowClassName chwindow[i])
--- 保存配置 按下配置按钮
--print kjName
findHandle =
if kjName == "ComboBoxEx32"then (
findHandle = chwindow[i]
---- 给手柄设置要保存的信息
savepath =pathpp ---+"\\maxinfo"
if (getDirectories savepath).count == then (
---没有路径创建路径
makeDir savepath
)
savepath += "\\"+ (getFilenameFile maxfilename)+".txt"
if findHandle != then (
UIAccessor.SetWindowText findHandle savepath
UIAccessor.PressButtonByName WindowHandle "保存(&S)" )
--- 应该不错的话需要在一层监控
---UIAccessor.PressButtonByName WindowHandle kjName
)
)
)
)
--print (UIAccessor.GetWindowText (chwindow [i]) as String
) false ---- 这里应该是最后不返回操作,可以继续的添加钩子 ) -----------------------------------------------------------------------
DialogMonitorOPS.unRegisterNotification id:#gtMMOscence function callSummary = (
---收集window句柄
windowHandle = DialogMonitorOPS.GetWindowHandle()
windowName = (UIAccessor.GetWindowText windowHandle) as String ----从窗口中找到我想要的窗口的按钮的名称
if (findstring windowName "summary Info")!=undefined then (
---- 找到主窗口子控件的名称 chwindow = UIAccessor.GetChildWindows windowHandle
if chwindow !=undefined then (
for i in to chwindow.count do (
if (chwindow[i] !=) then (
kjName = (UIAccessor.GetWindowText (chwindow [i]) as String )
--- 保存配置 按下配置按钮
if kjName == "Save to File..." then (
--UIAccessor.PressButtonByName WindowHandle kjName
--- 应该不错的话需要在一层监控
UIAccessor.PressButtonByName WindowHandle kjName
UIAccessor.PressButtonByName WindowHandle "Ok"
)
)
)
)
--print (UIAccessor.GetWindowText (chwindow [i]) as String ) true )
DialogMonitorOPS.RegisterNotification callSummaryonw id:#gtMMOscenceone
DialogMonitorOPS.RegisterNotification callSummaryEqualname id:#gtMMOscenceEqualname
DialogMonitorOPS.RegisterNotification callSummary id:#gtMMOscence DialogMonitorOPS.Enabled = true
max file summary DialogMonitorOPS.Enabled = false
DialogMonitorOPS.unRegisterNotification id:#gtMMOscence
DialogMonitorOPS.unRegisterNotification id:#gtMMOscenceone
DialogMonitorOPS.unRegisterNotification id:#gtMMOscenceEqualname
)
)---end struct op = gt_cl_hp_saveMaxinfo()
op.pathpp = "D:\pyc-tools\ms\\newdate\maxinfo"
op.savemaxinfor()

自动化ui 保存max场景信息 结构化处理比较好用的更多相关文章

  1. UI体系的本质是结构化存在

    UI体系的本质是结构化存在: UI系统的问题需要使用结构化的思维来处理.

  2. 杂项:OASIS(结构化信息标准促进组织)

    ylbtech-杂项:OASIS(结构化信息标准促进组织) 1.返回顶部 1. OASIS(结构化信息标准促进组织,Organization for the Advancement of Struct ...

  3. 探索ASP.Net Core 3.0系列六:ASP.NET Core 3.0新特性启动信息中的结构化日志

    前言:在本文中,我将聊聊在ASP.NET Core 3.0中细小的变化——启动时记录消息的方式进行小的更改. 现在,ASP.NET Core不再将消息直接记录到控制台,而是正确使用了logging 基 ...

  4. Attention-based Extraction of Structured Information from Street View Imagery:基于注意力的街景图像提取结构化信息

    基于注意力的街景图像提取结构化信息 一种用于真实图像文本提取问题的TensorFlow模型. 该文件夹包含在FSNS数据集数据集上训练新的注意OCR模型所需的代码,以在法国转录街道名称. 您还可以使用 ...

  5. 你真的了解字典(Dictionary)吗? C# Memory Cache 踩坑记录 .net 泛型 结构化CSS设计思维 WinForm POST上传与后台接收 高效实用的.NET开源项目 .net 笔试面试总结(3) .net 笔试面试总结(2) 依赖注入 C# RSA 加密 C#与Java AES 加密解密

    你真的了解字典(Dictionary)吗?   从一道亲身经历的面试题说起 半年前,我参加我现在所在公司的面试,面试官给了一道题,说有一个Y形的链表,知道起始节点,找出交叉节点.为了便于描述,我把上面 ...

  6. [翻译] Cassandra 分布式结构化存储系统

    Cassandra 分布式结构化存储系统 摘要 Cassandra 是一个分布式存储系统,用于管理分布在许多商品服务器上的大量结构化数据,同时提供无单点故障(no single point of fa ...

  7. 结构化您的Python工程

    我们对于"结构化"的定义是您关注于怎样使您的项目最好地满足它的对象性,我们 需要去考虑如何更好地利用Python的特性来创造简洁.高效的代码.在实践层面, "结构化&qu ...

  8. DataPipeline丨瓜子二手车基于Kafka的结构化数据流

    文 |彭超 瓜子大数据架构师 交流微信 | datapipeline2018 一.为什么选择Kafka   为什么选Kafka?鉴于庞大的数据量,需要将其做成分布式,这时需要将Q里面的数据分到许多机器 ...

  9. Asp.Net Core中利用Seq组件展示结构化日志功能

    在一次.Net Core小项目的开发中,掌握的不够深入,对日志记录并没有好好利用,以至于一出现异常问题,都得跑动服务器上查看,那时一度怀疑自己肯定没学好,不然这一块日志不可能需要自己扒服务器日志来查看 ...

随机推荐

  1. 《DSP using MATLAB》Problem 2.7

    1.代码: function [xe,xo,m] = evenodd_cv(x,n) % % Complex signal decomposition into even and odd parts ...

  2. 基数排序算法-python实现

    #-*- coding: UTF-8 -*- import numpy as np def RadixSort(a): i = 0 #初始为个位排序 n = 1 #最小的位数置为1(包含0) max ...

  3. 设置pip镜像源

    修改镜像源 vim ~/.pip/pip.conf windows 当前用户目录\pip\pip.ini 内容 [global] index-url=https://pypi.tuna.tsinghu ...

  4. vim之vundle

    git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle,下载到本地 gvim ~/.vimrc set nocompat ...

  5. c++中头文件与实现文件的关系

    转自:http://xiangyanglai.blog.163.com/blog/static/2047252022012715103338279/ 关于两者以前的关系,要从N年以前说起了~ long ...

  6. 智能家居入门DIY——【四、组合】

    前面几篇介绍了一些传感器和代码,这篇介绍一下把它们组合起来.之所以单独列出这部分,原因在于组合更多功能的时候发现使用软串口库驱动ESP8266时由于内存过小导致发送失败甚至整个系统无法工作的情况.所以 ...

  7. [转][Dapper]SQL 经验集

    condition.Append(" AND ChineseName like @name"); p.Add("@name", "%" + ...

  8. spring 源码如何导入到eclipse

    spring 源码如何导入到eclipse spring源码解析——spring源码导入eclipse spring framework源码下载并导入eclipse

  9. 十一.jQuery源码解析之.pushStack()

    pushStack()顾明思意,就是像桟中添加东西呗,现在看看他是如何添加东西的. 创建一个空的jQuery对象,然后把Dom元素集合放入这个jQuery对象中, 并保留对当前jQuery对象的引用. ...

  10. PackedSyncPtr

    folly/PackedSyncPtr.h A highly specialized data structure consisting of a pointer, a 1-bit spin lock ...