CN108628512A - 一种自动遍历点击应用程序列表控件的方法 - Google Patents

一种自动遍历点击应用程序列表控件的方法 Download PDF

Info

Publication number
CN108628512A
CN108628512A CN201710151787.5A CN201710151787A CN108628512A CN 108628512 A CN108628512 A CN 108628512A CN 201710151787 A CN201710151787 A CN 201710151787A CN 108628512 A CN108628512 A CN 108628512A
Authority
CN
China
Prior art keywords
list control
scroll bar
clicks
control
click
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710151787.5A
Other languages
English (en)
Inventor
梁威
罗隽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changsha Biovision Software Technology Co Ltd
Original Assignee
Changsha Biovision Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changsha Biovision Software Technology Co Ltd filed Critical Changsha Biovision Software Technology Co Ltd
Priority to CN201710151787.5A priority Critical patent/CN108628512A/zh
Publication of CN108628512A publication Critical patent/CN108628512A/zh
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • G06F3/04855Interaction with scrollbars

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明提供了一种自动遍历点击应用程序列表控件的方法,该方法包括步骤获取列表控件句柄;根据控件句柄获取列表控件窗口视图尺寸信息以及判断列表控件有无滚动条;采用有无滚动条算法程序,生成点击坐标,执行点击操作。该发明方法不管应用程序动态生成的列表控件中有多少项内容,并且无论应用程序中的列表控件有无滚动条,它的每项内容都可以被遍历点击。

Description

一种自动遍历点击应用程序列表控件的方法
技术领域
本发明属于Windows应用开发技术领域,特别涉及一种自动遍历点击应用程序列表控件的方法。
背景技术
随着人类进入信息化时代,人们很多日常工作在电脑上进行,同时越来越多的重复性劳动也在电脑上产生,比如某人需要在某一个管理软件上重复性的点击鼠标或者在键盘上按键,又如在很多情况下,人们需要遍历点击应用程序列表控件中每项内容,如果控件中只有少量内容的话,人们可以很轻松的完成遍历点击。但是如果列表控件中含有成千上万条内容,那么遍历点击列表控件中的每项内容将会是一庞大且极易出错的工作。所以遍历点击应用程序列表控件是件非常有意义的事情。
应用程序列表控件中的内容是动态加载的,其内容大小是不可预知,并且内容的多寡会使列表控件出现两种状态,即含有滚动条的列表控件和不含有滚动条的列表控件。如果列表控件加载的内容较少,可以在列表控件的窗口视图内完全呈现出来,那么列表控件将不含有滚动条;如果列表控件加载内容很多,超出了列表控件窗口视图,那么列表控件将含有系统自动产生的标准滚动条。所以在列表控件含有多种状态,且未知其处于哪种状态的情况下遍历点击列表控件的每项内容是有一定难度的。
发明内容
本发明就是致力于解决以上问题。本发明采用了Windows控件窗口技术、模拟鼠标点击技术。
具体实现步骤如下:
a)利用Windows中相应的API函数获取列表控件句柄。
b)根据控件句柄获取列表控件窗口视图尺寸信息以及判断列表控件有无滚动条。
c)根据列表控件有滚动条或列表控件无滚动条,采用有无滚动条算法程序。
d)生成点击坐标。
e)执行点击操作。
进一步地,所述步骤a)中使用控件句柄对控件进行定位。
进一步地,所述步骤b)中根据列表控件句柄动态分析列表控件窗口视图尺寸大小以及判断有无滚动条。
进一步地,所述步骤c)所述列表控件有滚动条,那么根据滚动条滑动块与滑动轨道的比例关系,可以得到有滚动条算法,再加上列表控件的窗口视图信息,就可以自动生成点击坐标,然后模拟鼠标顺序点击那些点击坐标。
进一步地,所述步骤c)所述列表控件没有滚动条,那么通过已知的列表控件尺寸信息和对应的无滚动条算法,自动生成点击坐标,然后模拟鼠标顺序点击那些点击坐标。
进一步地,所述步骤e)中使用模拟鼠标点击技术,实现点击操作。
本发明的有益效果在于:
不管应用程序动态生成的列表控件中有多少项内容,它的每项内容都可以被遍历点击。无论应用程序中的列表控件有无滚动条,它的每项内容都可以被遍历点击。
附图说明
图1 本发明方法流程示意图。
图2 本发明实施例示意图。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚,下面对本发明实施方式作进一步地详细描述,假设说明附图中列表控件为我们需要遍历点击的列表控件。
(1)首先根据列表控件句柄得到滚动条滑动块长度L以及滑动轨道J。
(2)使用测量工具测出说明附图中高度D以及列表控件窗口视图高度H。
(3)由于滚动条滑动块长度对应着控件窗口视图高度,滚动条轨道长度对应着列表控件的全部内容长度,所以已知滚动条滑动块长度L、滚动条轨道J以及列表控件窗口视图高度H,就能得到列表控件全部内容的长度。
(4)得到列表控件全部内容的长度后,再结合每条内容的高度D,就可以得到每条内容的点击坐标。
(5)通过模拟鼠标点击技术遍历点击得到的点击坐标。
(6)如果列表控件没有滚动条,那么就可以直接得到列表控件全部内容的长度,再结合(4)、(5)步骤,即可完成对无滚动条列表控件的遍历点击。

Claims (6)

1.一种自动遍历点击应用程序列表控件的方法,其特征在于,实现步骤如下:
a)利用Windows中相应的API函数获取列表控件句柄;
b)根据控件句柄获取列表控件窗口视图尺寸信息以及判断列表控件有无滚动条;
c)根据列表控件有滚动条或列表控件无滚动条,采用有无滚动条算法程序;
d)生成点击坐标;
e)执行点击操作。
2.如权利要求1所述自动遍历点击应用程序列表控件的方法,其特征在于:所述步骤a)中使用控件句柄对控件进行定位。
3.如权利要求1所述自动遍历点击应用程序列表控件的方法,其特征在于:所述步骤b)中根据列表控件句柄动态分析列表控件窗口视图尺寸大小以及判断有无滚动条。
4.如权利要求1所述自动遍历点击应用程序列表控件的方法,其特征在于:所述步骤c)所述列表控件有滚动条,那么根据滚动条滑动块与滑动轨道的比例关系,可以得到有滚动条算法,再加上列表控件的窗口视图信息,就可以自动生成点击坐标,然后模拟鼠标顺序点击那些点击坐标。
5.如权利要求1所述自动遍历点击应用程序列表控件的方法,其特征在于:所述步骤c)所述列表控件没有滚动条,那么通过已知的列表控件尺寸信息和对应的无滚动条算法,自动生成点击坐标,然后模拟鼠标顺序点击那些点击坐标。
6.如权利要求1所述自动遍历点击应用程序列表控件的方法,其特征在于:所述步骤e)中使用模拟鼠标点击技术,实现点击操作。
CN201710151787.5A 2017-03-15 2017-03-15 一种自动遍历点击应用程序列表控件的方法 Pending CN108628512A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710151787.5A CN108628512A (zh) 2017-03-15 2017-03-15 一种自动遍历点击应用程序列表控件的方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710151787.5A CN108628512A (zh) 2017-03-15 2017-03-15 一种自动遍历点击应用程序列表控件的方法

Publications (1)

Publication Number Publication Date
CN108628512A true CN108628512A (zh) 2018-10-09

Family

ID=63686289

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710151787.5A Pending CN108628512A (zh) 2017-03-15 2017-03-15 一种自动遍历点击应用程序列表控件的方法

Country Status (1)

Country Link
CN (1) CN108628512A (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111857930A (zh) * 2020-07-24 2020-10-30 青岛海尔科技有限公司 用于设置滚动条的方法及装置、设备

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101796477A (zh) * 2007-09-07 2010-08-04 国际商业机器公司 滚动条控制
CN104142793A (zh) * 2014-07-26 2014-11-12 珠海市君天电子科技有限公司 一种模拟点击终端控件的方法及装置

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101796477A (zh) * 2007-09-07 2010-08-04 国际商业机器公司 滚动条控制
CN104142793A (zh) * 2014-07-26 2014-11-12 珠海市君天电子科技有限公司 一种模拟点击终端控件的方法及装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JSJLIUYUN: "屏幕坐标、设备坐标以及逻辑坐标的区别", 《HTTPS://BLOG.CSDN.NET/COMPUTER_LIUYUN/ARTICLE/DETAILS/23700455》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111857930A (zh) * 2020-07-24 2020-10-30 青岛海尔科技有限公司 用于设置滚动条的方法及装置、设备

Similar Documents

Publication Publication Date Title
CN104252410B (zh) 一种对页面中的控件进行测试的方法和设备
Goring et al. Novel and lost forests in the upper Midwestern United States, from new estimates of settlement-era composition, stem density, and biomass
JP2012519918A (ja) ユーザーがウェブページをブラウズする挙動を視覚化するための方法、装置、およびシステム
Blumenstein et al. Evaluating information visualization on mobile devices: Gaps and challenges in the empirical evaluation design space
US10586358B1 (en) System and method for visualization of beacon clusters on the web
Jiang et al. What makes a great mobile app? A quantitative study using a new mobile crawler
Zheng et al. The slope modeling method with GIS support for rockfall analysis using 3D DDA
Hertzum et al. The effect of target precuing on pointing with mouse and touchpad
Stenholt Efficient selection of multiple objects on a large scale
Huang et al. Advancing the application of a model-independent open-source geospatial tool for national-scale spatiotemporal simulations
WO2016173223A1 (zh) 用于确定用户体验及辅助确定用户体验的方法和装置
CN108628512A (zh) 一种自动遍历点击应用程序列表控件的方法
Albert et al. Testing geodesign in landscape planning–first results
Zhou et al. A user-driven sampling model for large-scale geographical point data visualization via convolutional neural networks
Kopeć et al. WebGL based visualisation and analysis of stratigraphic data for the purposes of the mining industry
CN111125564A (zh) 热力图生成方法、装置、计算机设备及存储介质
CN105094511A (zh) 测试例生成方法和测试例生成设备
Doherty et al. A spatial query & analysis tool for architects
CN107832203B (zh) 一种移动终端渲染性能诊断方法
Phipps Three Applications of V. 3 Google Maps: Just for Display of Data, or Analysis as Well?
Sharma et al. E-COCOMO: An effort estimation model for cleanroom software development approach
Pansanato et al. An evaluation with web developers of capturing user interaction with rich internet applications for usability evaluation
Maddumage et al. R programming for Social Network Analysis-A Review
Yamanaka Utility of Crowdsourced User Experiments for Measuring the Central Tendency of User Performance: A Case of Error-Rate Model Evaluation in a Pointing Task
Long et al. Visual-VM: A social network visualization tool for viral marketing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20181009

WD01 Invention patent application deemed withdrawn after publication