Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Control capture method and equipment

A technology of equipment and sub-controls, applied in the Internet field, can solve problems such as unrecognizable sub-controls

Active Publication Date: 2015-05-06
GUANGZHOU HUADUO NETWORK TECH
View PDF3 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Spy++ is a practical tool based on Win32, which can easily view the properties of Win32 program windows, sub-control structure, window messages, etc. Superimposed with QGraphicsItem, only the QWidget of the root window is a real window with a window handle, and other sub-controls QGraphicsItem do not have a window handle. Therefore, Spy++ cannot recognize the sub-controls of the Qt-based GUI

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Control capture method and equipment
  • Control capture method and equipment
  • Control capture method and equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0047] like figure 1 As shown, it is a schematic flowchart of a control capture method provided by an embodiment of the present invention, which may include the following steps:

[0048] S101. Obtain a running program.

[0049] The control capture method described in the embodiment of the present invention can be applied to a Qt interface auxiliary tool, and the Qt interface auxiliary tool can run on Windows XP or a newer version of the operating system. However,...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses a control capture method. The control capture method comprises the steps of acquiring programs in running; detecting a target program selected from the programs in running; loading a target DLL file in a running process of the target program to display a tool main window; when a window handle acquisition operation input through the tool main window is detected, acquiring a window handle of a target window corresponding to the target program and converting the window handle into a Qt pointer; if the Qt pointer is not empty, traversing all sub-controls of the target window according to the Qt pointer and outputting a control list of the target window in the tool main window; when an operation aiming at the target control in the target window is detected, outputting a control attribute of the target control in the tool main window. The embodiment of the invention further discloses control capture equipment. By adopting the control capture method and the control capture equipment, recognition aiming at controls of a graphic user interface program based on Qt can be realized.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to a control capture method and device. Background technique [0002] In the process of Graphical User Interface (GUI) programming, it is often necessary to fine-tune the interface, but every time the code is modified, it needs to be recompiled to generate a new program file. The steps are repeated and the efficiency is low. Using tools such as Spy++, the interface controls can be captured, monitored, and modified in real time, avoiding the tediousness of repeatedly viewing and modifying the source code. [0003] Spy++ is a practical tool based on Win32, which can easily view the properties of Win32 program windows, sub-control structure, window messages, etc. Superimposed with QGraphicsItem, only the QWidget of the root window is a real window with a window handle, and other sub-controls QGraphicsItem have no window handle. Therefore, Spy++ cannot recognize the sub-controls o...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445
Inventor 林刘生蔡青峰
Owner GUANGZHOU HUADUO NETWORK TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products