CN101000574A - Information input method and device for computer terminal window - Google Patents

Information input method and device for computer terminal window Download PDF

Info

Publication number
CN101000574A
CN101000574A CN 200710002465 CN200710002465A CN101000574A CN 101000574 A CN101000574 A CN 101000574A CN 200710002465 CN200710002465 CN 200710002465 CN 200710002465 A CN200710002465 A CN 200710002465A CN 101000574 A CN101000574 A CN 101000574A
Authority
CN
China
Prior art keywords
target window
window
script
command character
data
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.)
Granted
Application number
CN 200710002465
Other languages
Chinese (zh)
Other versions
CN101000574B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2007100024650A priority Critical patent/CN101000574B/en
Publication of CN101000574A publication Critical patent/CN101000574A/en
Application granted granted Critical
Publication of CN101000574B publication Critical patent/CN101000574B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

A method for inputting information into window of computer terminal includes analyzing script and outputting command character sequence and control information to corresponding object window sending queue (OWSQ) in sequence, converting command character sequence in OWSQ to be key message sequence according to object window identification information corresponding to OWSQ and sending said message sequence to corresponding object window, executing control operation on control information in (OWSQ) according to control command and control command parameter. The device for realizing said method is also disclosed.

Description

A kind of data inputting method and input media that is used for computer terminal window
Technical field
The present invention relates to a kind of computerized information input method and input media, relate in particular to a kind of data inputting method and input media that is used for computer terminal window.
Background technology
In process, need to use various tool terminals to be connected with equipment usually and test by network or alternate manner to digital testing equipment.Traditional mode is to test or the user of configuration operation manually input test or configuration order in terminal window, checks the return results of equipment then.Make in this way, when the user need carry out large batch of test or configuration operation, as dispose a large amount of sub-interface information, when adding a large amount of static routing informations, work efficiency is very low, and occurs mistake easily.Often need the test item of repeated configuration, deletion for some, all need the user to do a configuration and deletion action again at every turn, wasted a large amount of time and efforts.
There are some tool terminals to support the recording function of input command, can realize repeated test to a certain extent, but because the information of recording lacks the logic control ability, can not carry out strict control to the time-delay between each order, therefore wrong configuration, the test result that leads to errors appear easily.
Also have some tool terminals, as SecreCRT, the function that sends configuration order with the VB script to self subwindow is provided, and in the reality test, because all there are the relative merits of himself various test terminals, the user often need use different tool terminals that different digital devices is tested, in this case, existing instrument can not satisfy the demand that the user sends test command for any terminal window, and the user still needs to carry out the manual configuration operation.
Summary of the invention
Technical matters to be solved by this invention is, overcome in the prior art when needs use various terminal windows to carry out a large amount of configurations, test command input operation, the manual deficiency that the user need repeat in a large number, a kind of various terminal windows that are applicable to are proposed, based on the order automated input methodology and the input media of script.
In order to address the above problem, the invention provides a kind of data inputting method that is used for computer terminal window, it is characterized in that the method includes the steps of:
Step a: script data is resolved and exported in regular turn its command character sequence that comprises and control information to corresponding target window transmit queue;
Step b: in regular turn in the target window transmit queue first carried out following operation to last data cell:
Step b1: for the command character sequence, convert thereof into the press key message sequence, and be sent to corresponding target window according to the target window identification information of target window transmit queue correspondence;
Step b2: for control information, the steering order and the executivecontrol function of steering order parameter that comprise according to this information.
In addition, before described step a, also comprise following steps:
Step 1): configuration target window and the corresponding relation that need be input to the script file of this window;
Step 2): read the script data in the script file.
In addition, also be the identical script files of a plurality of target window configurations, or be that a target window disposes a plurality of script files.
The present invention also provides a kind of message input device that is used for computer terminal window, comprises the script load module, is used to obtain and the output pin notebook data; Interpreter module is used to resolve the script data that above-mentioned script load module is exported; It is characterized in that described interpreter module also is used for command character sequence and the control information that the output pin notebook data comprises; This device also comprises:
The target window administration module is used to dispose and safeguards target window sign and corresponding script file thereof; Receive command character sequence and control information that described interpreter module sends, in regular turn output command character string and carry out the pairing control operation of described control information;
The target window load module is used for command character sequence and corresponding target window identification information thereof that receiving target window management module sends, the command character sequence is changed into press key message be sent to corresponding target window.
In addition, described target window administration module also comprises one or more target window transmit queues, is used for depositing in regular turn the command character sequence that is sent to one or more target windows and pending control information.
In addition, described target window administration module also is used for sending to described script load module the instruction of the script file data of obtaining and export appointment.
The present invention changes into command character sequence and steering order by script command that will be to be imported, and in conjunction with the execution of steering order, mode with press key message is sent to the target terminal window with the command character sequence, various terminal windows have been realized being applicable to, and can carry out the automatic input of the configuration/test command of strict control to the time interval between each bar order, reduce user's test duration and mistake, improved testing efficiency.
Description of drawings
Fig. 1 is the system architecture synoptic diagram of the present invention's message input device of being used for computer terminal window;
Fig. 2 is the process flow diagram that the present invention is used for the data inputting method of computer terminal window.
Embodiment
Basic ideas of the present invention are, script command to be imported is changed into command character sequence and steering order, in conjunction with the execution of steering order, in the mode of press key message the command character sequence is sent in the target terminal window, import automatically for the order of various terminal windows realizing.
Below in conjunction with drawings and Examples the present invention is described in detail.
Fig. 1 is the system architecture synoptic diagram of the present invention's message input device of being used for computer terminal window.
As shown in Figure 1, message input device of the present invention comprises:
The script load module is used for the editor and the management of script file, and output is through editor's script data.Can comprise the script command character string that needs typing in the script data and be used to control the control information that script command sends.Wherein, one or more configuration/test commands that command character sequence correspondence once sends in terminal window.Can cut apart command character sequence and/or control information by character strings such as " r n " or character, be about to script data and be divided into a plurality of script data bags that comprise a command character sequence or a control information.Above-mentioned control information can comprise script default configuration information and command configuration information.Command configuration information can be included in after the command character sequence in the script/before, represent this command character sequence input back/preceding steering order that needs execution, for example, terminal postpones to send next bar script command again after the certain time interval after sending the script command of this command character sequence correspondence; Default configuration information can be used for specifying in the information such as acquiescence transmission time interval between each order after this information appearance in the script file, can not adopt default configuration information to handle when having control information between the command character sequence of following in the script after default configuration information.In addition, the script load module also can comprise the target window identification information when the output pin notebook data.
Interpreter module is used for the script data that the script load module sends is resolved, and extracts and export command character sequence and the control information that comprises in the script.Interpreter module can be that resolve the unit with the script data bag to script, and output command character string and control information in regular turn respectively.For control information, can export steering order and steering order parameter thereof respectively.In addition, interpreter module can comprise the target window identification information when output command character string and control information.
The target window administration module is used to dispose and safeguard target window sign and corresponding script file tabulation thereof; Send the instruction of the script file data of obtaining appointment to the script load module; Receive command character sequence and control information that interpreter module sends, in regular turn output command character string and carry out the pairing control operation of control information.In addition, when target window administration module output command character string, need comprise the target window identification information.
The user can register target window by the target window administration module, promptly disposes the corresponding relation of target window and script file.Can be a window and dispose a plurality of script files, and specify the input sequence of each script file, also a script file can be configured to a plurality of windows of the current existence of system.The target window identification information is generally the unique identification of this window in operating system, and information such as the window title that this sign can be by user's appointment, window class name or alternate manner obtain.For example, in form (Windows) operating system, can use the identification information of window handle, and obtain the window handle of this position window pointed according to the current mouse position of user as window.
In addition, the target window administration module also comprises one or more target window transmit queues, is used for depositing in regular turn command character sequence and control information to be sent.
The target window load module is used for command character sequence and corresponding target window identification information thereof that receiving target window management module sends, the command character sequence is changed into press key message be sent in the target window.
Fig. 2 is the process flow diagram that the present invention is used for the data inputting method of computer terminal window, and as shown in Figure 2, data inputting method of the present invention comprises following steps:
Step 1: target window is registered, promptly the user by target window administration module intended target window with need be input to the corresponding relation of the script file of this window, and send the script input instruction to the script load module and begin to read data in the script file; The filename and the target window identification information that can comprise script file in the script input instruction;
Step 2: the script load module reads the script file data of appointment according to the script input instruction, and script file data and target window identification information are sent to interpreter module;
Step 3: interpreter module is resolved the script file data that receive, and exports command character sequence and control information to the target window administration module in regular turn, until the script file ED; In addition, interpreter module also needs mentioned order character string and the pairing target window identification information of control information are sent to the target window administration module;
Step 4: the target window administration module is put into separately target window transmit queue with the command character sequence that receives and control information respectively according to the terminal window identification information; Wherein, corresponding command character sequence of each data cell of target window transmit queue or control information.
Can arrange different target window transmit queues for different target window identification informations; When the simultaneously corresponding a plurality of target window of script file, a plurality of target windows also can a shared transmit queue.
But, in order to guarantee the continuity of process of transmitting, be generally thread of each target window arrangement and carry out following operation:
Step 5: read a data unit from the reference position of target window transmit queue;
Step 6: if this data cell is the command character sequence, the target window administration module is sent to the target window load module with this command character sequence and target window identification information; The target window load module converts this command character sequence to the corresponding key message sequence according to the target window identification information and is sent to corresponding target window;
If data block is control information, then carry out corresponding operating according to steering order that comprises in the control information and steering order parameter thereof;
Step 7: if the target window transmit queue does not have follow-up data cell, this method finishes; Otherwise, read next data cell, and jump to step 6.

Claims (6)

1, a kind of data inputting method that is used for computer terminal window is characterized in that the method includes the steps of:
Step a: script data is resolved and exported in regular turn its command character sequence that comprises and control information to corresponding target window transmit queue;
Step b: in regular turn in the target window transmit queue first carried out following operation to last data cell:
Step b1: for the command character sequence, convert thereof into the press key message sequence, and be sent to corresponding target window according to the target window identification information of target window transmit queue correspondence;
Step b2: for control information, the steering order and the executivecontrol function of steering order parameter that comprise according to this information.
2, the data inputting method that is used for computer terminal window as claimed in claim 1 is characterized in that, also comprises following steps before described step a:
Step 1): configuration target window and the corresponding relation that need be input to the script file of this window;
Step 2): read the script data in the script file.
3, the data inputting method that is used for computer terminal window as claimed in claim 2 is characterized in that, is the identical script file of a plurality of target window configurations, or is that a target window disposes a plurality of script files.
4, a kind of message input device that is used for computer terminal window comprises the script load module, is used to obtain and the output pin notebook data; Interpreter module is used to resolve the script data that above-mentioned script load module is exported; It is characterized in that described interpreter module also is used for command character sequence and the control information that the output pin notebook data comprises; This device also comprises:
The target window administration module is used to dispose and safeguards target window sign and corresponding script file thereof; Receive command character sequence and control information that described interpreter module sends, in regular turn output command character string and carry out the pairing control operation of described control information;
The target window load module is used for command character sequence and corresponding target window identification information thereof that receiving target window management module sends, the command character sequence is changed into press key message be sent to corresponding target window.
5, the message input device that is used for computer terminal window as claimed in claim 4, it is characterized in that, described target window administration module also comprises one or more target window transmit queues, is used for depositing in regular turn the command character sequence that is sent to one or more target windows and pending control information.
6, the message input device that is used for computer terminal window as claimed in claim 4 is characterized in that, described target window administration module also is used for sending to described script load module the instruction of the script file data of obtaining and export appointment.
CN2007100024650A 2007-01-24 2007-01-24 Information input method and device for computer terminal window Active CN101000574B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007100024650A CN101000574B (en) 2007-01-24 2007-01-24 Information input method and device for computer terminal window

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007100024650A CN101000574B (en) 2007-01-24 2007-01-24 Information input method and device for computer terminal window

Publications (2)

Publication Number Publication Date
CN101000574A true CN101000574A (en) 2007-07-18
CN101000574B CN101000574B (en) 2010-08-18

Family

ID=38692554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007100024650A Active CN101000574B (en) 2007-01-24 2007-01-24 Information input method and device for computer terminal window

Country Status (1)

Country Link
CN (1) CN101000574B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101738550B (en) * 2008-11-14 2013-03-20 鸿富锦精密工业(深圳)有限公司 Electronic device test device and test method
WO2015067052A1 (en) * 2013-11-11 2015-05-14 中兴通讯股份有限公司 Method, device, and system for transmitting test command
CN110113403A (en) * 2019-04-28 2019-08-09 深圳市创维群欣安防科技股份有限公司 A kind of processing method, device and the computer equipment of AT instruction

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101738550B (en) * 2008-11-14 2013-03-20 鸿富锦精密工业(深圳)有限公司 Electronic device test device and test method
WO2015067052A1 (en) * 2013-11-11 2015-05-14 中兴通讯股份有限公司 Method, device, and system for transmitting test command
CN104639384A (en) * 2013-11-11 2015-05-20 中兴通讯股份有限公司 Method, device and system for transmitting test commands
CN104639384B (en) * 2013-11-11 2019-03-15 中兴通讯股份有限公司 Test command sending method, apparatus and system
CN110113403A (en) * 2019-04-28 2019-08-09 深圳市创维群欣安防科技股份有限公司 A kind of processing method, device and the computer equipment of AT instruction
CN110113403B (en) * 2019-04-28 2021-12-28 深圳创维数字技术有限公司 AT instruction processing method and device and computer equipment

Also Published As

Publication number Publication date
CN101000574B (en) 2010-08-18

Similar Documents

Publication Publication Date Title
CN110493079B (en) Production automation test method of industrial Ethernet switch
CN100395724C (en) Graphic user interface test method and system
CN102257487B (en) Analyzing events
CN101795270A (en) Server control method based on serial port
CN107038118B (en) Universal processing method for testing different electronic equipment assemblies
CN108536435A (en) A method of automatically generating CAN communication code
CN103905410A (en) Multi-channel communication protocol converter capable of converting user-defined protocol to Modbus protocol
CN110347709A (en) A kind of construction method and system of regulation engine
CN101000574B (en) Information input method and device for computer terminal window
CN110769002A (en) LabVIEW-based message analysis method, system, electronic device and medium
CN109726020A (en) System docking method, system docking equipment, storage medium and device
US10417836B2 (en) Device maintenance apparatus, device maintenance method, device maintenance program, and recording medium
Sunehra et al. Attendance recording and consolidation system using Arduino and Raspberry Pi
CN112787895A (en) Network inspection method, device and equipment
CN111464350B (en) Method and system for managing heterogeneous brand network equipment
CN113347060A (en) Power network fault detection method, device and system based on process automation
US8160843B2 (en) Device and method for planning a production unit
CN102609253A (en) Method and system for implementing smart card application
CN102043787A (en) System and method for performing website registration through registration information file
CN110073302A (en) Information processing unit, the control method of information processing unit and control program
CN109471383A (en) Sequential control method, controlling terminal, controlled plant and sequential control system
CN103135986B (en) A kind of operation acquisition method and system
CN103501243A (en) Device and method for page-type management of communication
CN109377072A (en) A kind of chemical sampling management-control method and device
CN102722592A (en) Universal digital information recording device and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant