CN104899088B - A kind of message treatment method and device - Google Patents

A kind of message treatment method and device Download PDF

Info

Publication number
CN104899088B
CN104899088B CN201410075643.2A CN201410075643A CN104899088B CN 104899088 B CN104899088 B CN 104899088B CN 201410075643 A CN201410075643 A CN 201410075643A CN 104899088 B CN104899088 B CN 104899088B
Authority
CN
China
Prior art keywords
message
window
assistant
timing
simulated operation
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.)
Active
Application number
CN201410075643.2A
Other languages
Chinese (zh)
Other versions
CN104899088A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410075643.2A priority Critical patent/CN104899088B/en
Publication of CN104899088A publication Critical patent/CN104899088A/en
Application granted granted Critical
Publication of CN104899088B publication Critical patent/CN104899088B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention discloses a kind of message treatment method and device, it is related to information technology field, " stuck " phenomenon occurred due to allowing to solve the simulation program corresponding process caused by " stuck " phenomenon occurs in target window, and solve to lead to influence the case where corresponding process of simulation program handles next simulated operation when the state of target window changes.The present invention sends the corresponding message of simulated operation to target window in a manner of sending;The assistant window that timing message is created to the target window is sent in a manner of sending, the assistant window and the target window are in the same process, and assistant window message queue corresponding with the target window is identical;Setting preset time continues to execute next simulated operation when knowing that the assistant window receives the timing message in the preset time.The present invention is suitable for using when handling message.

Description

A kind of message treatment method and device
Technical field
The present invention relates to information technology field more particularly to a kind of message treatment methods and device.
Background technique
The message mode of Windows can be divided into two kinds: one kind is the method for synchronization, that is, passes through calling After SendMessage function transmits the message to target window, after target window has handled the message, response message is returned Give simulation program corresponding process, so that the corresponding process of simulation program executes next simulated operation;One kind is asynchronous system, After transmitting the message to target window by calling PostMessage, the corresponding process of simulation program directly executes next Simulated operation.For example, first menu bar has had been displayed in target window, it is contemplated that effect are as follows: when user is in target window In and first menu bar other than white space right-click when, in blank area of the target window other than first menu bar The second menu bar is established in domain.However, the prior art, when using asynchronous system, it is above-mentioned that simulation program is not to wait for target window processing The click message for clicking sending by right key just removes the second menu bar of operation.The popup menu found at this time may be the first menu bar, May also just encounter the first menu disappear and the second menu does not occur, cause to can not find the first menu or the second menu.This two Kind situation is not simulation program expected effect.
When therefore, using the message of method of synchronization processing Windows, when " stuck " phenomenon occurs in target window, it can lead Cause the corresponding process of simulation program also " stuck " phenomenon can occur because waiting target window processing message;At asynchronous system When managing the message of Windows, simulation program is not to wait for target window and has handled message executing next simulated operation, thus shadow Ring the effect after next simulated operation executes.
Summary of the invention
The embodiment of the present invention provides a kind of message treatment method and device, is able to solve because " stuck " occurs in target window The corresponding process of simulation program caused by phenomenon and there is " stuck " problem, and solve when the not equal target windows of simulation program It has handled message and has just executed next simulated operation, caused because executing the effect after the too fast next simulated operation of influence executes Problem.
In a first aspect, the embodiment of the present invention provides a kind of message treatment method, comprising:
The corresponding message of simulated operation is sent in a manner of sending to target window, so that the target window receives and processes The message;
Send the assistant window that timing message is created to the target window in a manner of sending, the assistant window with it is described Target window is in the same process, and assistant window message queue corresponding with the target window is identical;
Preset time is set, when knowing that the assistant window receives the timing message in the preset time, Continue to execute next simulated operation.
Second aspect, the embodiment of the present invention provide a kind of message processing apparatus, comprising:
Transmission unit, for sending the corresponding message of simulated operation in a manner of sending to target window, so as to the target Window reception simultaneously handles the message;
Setting unit, for preset time to be arranged;
The transmission unit is also used to send the auxiliary window that timing message is created to the target window in a manner of sending Mouthful, the assistant window and the target window are in the same process, and the assistant window and the target window pair The message queue answered is identical;
First processing units know the assistant window in the preset time that the setting unit is arranged for working as When receiving the timing message, next simulated operation is continued to execute.
Message treatment method and device provided by the invention, can simulated operation is corresponding to disappear by being sent in a manner of sending Cease target window;The assistant window that timing message is created to the target window, the assistant window are sent in a manner of sending With the target window in the same process, and assistant window message queue phase corresponding with the target window Together;Setting preset time continues to hold when knowing that the assistant window receives the timing message in the preset time The next simulated operation of row.Since the priority of timing message in system setting is lower than the corresponding message of simulated operation, lead to It crosses and knows that assistant window receives the lower timing message of processing priority and allows to thereby executing next simulated operation " stuck " phenomenon occurred due to solving the simulation program corresponding process caused by " stuck " phenomenon occurs in target window, and solution Certainly just execute next simulated operation when simulation program not equal target windows handles message, cause because execution it is too fast under the influence of one A simulated operation execute after effect the problem of
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art To obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of message treatment method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another message treatment method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of another message treatment method provided in an embodiment of the present invention;
Fig. 4 is a kind of block diagram of message processing apparatus provided in an embodiment of the present invention;
Fig. 5 is the block diagram of another message processing apparatus provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of message treatment method, and the executing subject of this method can be corresponding for simulation program Process, as shown in Figure 1, this method comprises:
Step 101, the corresponding message of simulated operation is sent in a manner of sending to target window, so that the target window connects It receives and handles the message.
Optionally, before this step, the corresponding process of simulation program can make mesh by the technical solution of the prior art It marks window and creates an assistant window, this assistant window is used to receive and handle from the corresponding process transmission of simulation program Message.Certainly it can also realize that the present embodiment does not limit the technology of use, can target window be created using other technologies Build the technology of assistant window.
Optionally, the corresponding message of simulated operation is sent in a manner of sending to target window, that is, passes through calling The corresponding message of simulated operation is sent to target window by PostMessage function.
Optionally, for example, simulated operation is simulation clicking operation, then the corresponding message of simulated operation can disappear to click Breath.
Step 102, the assistant window that timing message is created to the target window, the auxiliary window are sent in a manner of sending Mouth and the target window are in the same process, and assistant window message queue phase corresponding with the target window Together.
Optionally, the assistant window that timing message is created to the target window is sent in a manner of sending, that is, passes through calling Timing message is sent to assistant window by PostMessage function.
Optionally, the processing priority of the corresponding message of simulated operation is higher than the processing priority of timing message, therefore works as There are the corresponding message of simulated operation and timing message in assistant window message queue corresponding with the target window When, the corresponding message of priority processing simulated operation.
Further alternative, assistant window process corresponding with the target window can be read by one section of loop code Each message in message queue is taken, and transmits the message to corresponding window, for example, the corresponding message of simulated operation is sent To target window, timing message is sent to assistant window.
Step 103, preset time is set, when knowing that the assistant window receives the timing in the preset time When message, next simulated operation is continued to execute.
Optionally, since the processing priority of the corresponding message of simulated operation is higher than the processing priority of timing message, because When the corresponding process of this simulation program knows that the assistant window receives the timing message, illustrate that target window is received To the corresponding message of simulated operation, alternatively, it is corresponding to illustrate that target window has received and processed the completion simulated operation Message, alternatively, illustrating other message that target window generates in handling the corresponding message process of the simulated operation also It is received and processed by other correlation windows, therefore, the corresponding process of simulation program can continue to execute next simulated operation.
In preset time in setting, the corresponding process of simulation program is not known by the assistant window and receives the meter When message when, also continue to execute next simulated operation, i.e. the corresponding process of simulation program is no longer waiting for the assistant window and connects Receive the timing message.
Message treatment method provided by the invention, can be by sending the corresponding message of simulated operation to mesh in a manner of sending Mark window;Send the assistant window that timing message is created to the target window in a manner of sending, the assistant window with it is described Target window is in the same process, and assistant window message queue corresponding with the target window is identical;Setting Preset time continues to execute next when knowing that the assistant window receives the timing message in the preset time A simulated operation.Since the priority of timing message in system setting is lower than the corresponding message of simulated operation, by knowing Assistant window receives the lower timing message of processing priority, thereby executing next simulated operation, allow to solve because There is the corresponding process of simulation program caused by " stuck " phenomenon and " stuck " phenomenon occurs in target window, and solves to work as mould The not equal target windows of quasi- program have handled message and have just executed next simulated operation, cause because executing the too fast next simulation of influence The problem of operating the effect after executing.
The embodiment of the present invention provides another message treatment method, as shown in Fig. 2, this method comprises:
Step 201, the corresponding process of simulation program makes the process wound where the target window by prior art Build the assistant window.
Step 202, the corresponding process of simulation program sends the corresponding message of simulated operation to target window in a manner of sending, So that the target window receives and processes the message.
Optionally, the corresponding process of simulation program is corresponding by simulated operation in a manner of calling PostMessage function Message is sent in the corresponding message queue of target window.
Optionally, after target window receives the corresponding message of simulated operation, this message is handled.It should be noted that such as Some and target window is generated with other windows message to be treated in a process in fruit processing message process, then is operated The message of generation can be addressed in the message queue of process by system, be handled by other windows.
Step 203, the corresponding process creation system signal of simulation program, and the value that the system signal is arranged is first Value;Alternatively, the value that the system signal is arranged is the first value.
Optionally, system signal is for the target window and the corresponding process of the assistant window and the simulation program Communication mode between corresponding process, so that the corresponding process of the simulation program knows that the assistant window has received institute State timing message.
Optionally, when the corresponding process of simulation program does not create system signal, then need first to create a system signal, Then the value of the system signal of creation is set to the first value.Optionally, the first value can be 0, and certain first value can also be it His value, as long as the first value of setting receives the value difference of the system signal changed after timely message i.e. with subsequent assistant window It can.Such as first value can be 1.
Optionally, it when the corresponding process of simulation program has created system signal, is only needed at this time by the value of system signal It is set as the first value.
Step 204, preset time is arranged in simulation program.
Optionally, the processing priority of the corresponding message of simulated operation is higher than the processing priority of timing message, therefore works as There are the corresponding message of simulated operation and timing message in assistant window message queue corresponding with the target window When, the corresponding message of priority processing simulated operation.
Step 205, the corresponding process of simulation program sends what timing message was created to the target window in a manner of sending Assistant window.
The assistant window and the target window are in the same process, and the assistant window and the target window The corresponding message queue of mouth is identical.
Specifically, the corresponding process of simulation program is sent timing message in a manner of calling PostMessage function The message queue of process where the assistant window of the target window creation.
Optionally, the corresponding process of simulation program sent in a manner of sending timing message created to the target window it is auxiliary It helps after window, the value of the corresponding process waiting system signal of simulation program is modified.
Step 206, after assistant window receives timing message, the value that system signal is arranged is second value.
Optionally, second value be the value different from the first value, such as the first value be 0 when, second value can be 1.First value When being 1, second value can be 0.
It should be noted that due to processing priority of the corresponding message of simulated operation in process than timing message into Processing priority in journey wants high, therefore when assistant window receives timing message, is sent to the simulated operation of target window Corresponding message can be determined having been received by target window, and bright target window has received and processed described in completion in other words The corresponding message of simulated operation, alternatively, illustrating what target window generated in handling the corresponding message process of the simulated operation Other message have also been received and processed by other correlation windows, and therefore, current operating effect is fine in target window Ground is realized, that is, reaches ideal operation synchronous effect, and the corresponding process of simulation program can continue to execute next simulated operation.
Step 207, within a preset time, the value of the corresponding monitoring the process of simulation program to the system signal is second value When, continue to execute next simulated operation.
Optionally, the corresponding process of simulation program can be with the process where periodic monitoring assistant window, so as to timely It monitors that the value of system signal is modified, executes next simulated operation in time.
Further alternative, in the preset time in setting, the corresponding process of simulation program is not known by the auxiliary window When mouth receives the timing message, next simulated operation is also continued to execute, i.e. the corresponding process of simulation program is no longer waiting for The assistant window receives the timing message.
It should be noted that the corresponding process of simulation program is judged whether under execution in the present embodiment with the value of system signal One simulated operation, can also be executed by the way of shared drive, i.e. the corresponding process of simulation program is also interior to be stored in The value of parameter in depositing judges whether to execute next simulated operation, and executive mode is identical as the present embodiment, herein no longer one by one It repeats.
Message treatment method provided by the invention, can be by sending the corresponding message of simulated operation to mesh in a manner of sending Mark window;Send the assistant window that timing message is created to the target window in a manner of sending, the assistant window with it is described Target window is in the same process, and assistant window message queue corresponding with the target window is identical;Setting Preset time continues to execute next when knowing that the assistant window receives the timing message in the preset time A simulated operation.Since the priority of timing message in system setting is lower than the corresponding message of simulated operation, by knowing Assistant window receives the lower timing message of processing priority, thereby executing next simulated operation, allow to solve because There is the corresponding process of simulation program caused by " stuck " phenomenon and " stuck " phenomenon occurs in target window, and solves to work as mould The not equal target windows of quasi- program have handled message and have just executed next simulated operation, cause because executing the too fast next simulation of influence The problem of operating the effect after executing.
The embodiment of the present invention provides a kind of message treatment method, as shown in figure 3, this method comprises:
Step 301, the corresponding process of simulation program makes the process wound where the target window by prior art Build the assistant window.
Step 302, the corresponding process of simulation program sends the corresponding message of simulated operation to target window in a manner of sending, So that the target window receives and processes the message.
Step 301, step 302 are identical as step 201, step 202 in attached drawing 2, and this is no longer going to repeat them.
Step 303, the corresponding process of simulation program sends system message to assistant window.
The system message is described for notifying the assistant window to receive the timing message and feeds back response message Response message is the message that the assistant window is fed back because receiving the timing message.
Step 304, preset time is arranged in the corresponding process of simulation program.
Step 305, the corresponding process of simulation program sends what timing message was created to the target window in a manner of sending Assistant window.
Step 306, after assistant window receives timing message, the corresponding process of Xiang Suoshu simulation program sends response and disappears Breath.
The response message is the message that the assistant window is fed back because receiving the timing message.It needs to illustrate It is, since processing priority of the corresponding message of simulated operation in process is than processing priority of the timing message in process Height, therefore when assistant window receives timing message, the corresponding message of simulated operation for being sent to target window can be determined It is received by target window, bright target window, which has received and processed, in other words completes that the simulated operation is corresponding to disappear Breath, alternatively, illustrate other message that target window generates in handling the corresponding message process of the simulated operation also by Other correlation windows receive and process, and therefore, current operating effect has been realized well in target window, that is, reach ideal Operation synchronous effect, the corresponding process of simulation program can continue to execute next simulated operation.
Step 307, when in the preset time the corresponding process of simulation program receive what the assistant window was sent When the response message, next simulated operation is continued to execute.
Further alternative, in the preset time in setting, the corresponding process of simulation program does not receive the auxiliary When the response message that window is sent, next simulated operation is also continued to execute, i.e. the corresponding process of simulation program is no longer waiting for institute It states assistant window and receives the timing message.
It should be noted that the corresponding process of simulation program is determined whether in a manner of system message transmitting in the present embodiment Next simulated operation is executed, it can also be using Socket (socket), Pipe (pipeline) or remote procedure call (Remote Procedure Call Protocol, RPC) mode execute, i.e., the corresponding process of simulation program is also the side with message transmission Formula judges whether to execute next simulated operation, and executive mode is identical as the present embodiment, and this is no longer going to repeat them.
Message treatment method provided by the invention, can be by sending the corresponding message of simulated operation to mesh in a manner of sending Mark window;Send the assistant window that timing message is created to the target window in a manner of sending, the assistant window with it is described Target window is in the same process, and assistant window message queue corresponding with the target window is identical;Setting Preset time continues to execute next when knowing that the assistant window receives the timing message in the preset time A simulated operation.Since the priority of timing message in system setting is lower than the corresponding message of simulated operation, by knowing Assistant window receives the lower timing message of processing priority, thereby executing next simulated operation, allow to solve because There is the corresponding process of simulation program caused by " stuck " phenomenon and " stuck " phenomenon occurs in target window, and solves to work as mould The not equal target windows of quasi- program have handled message and have just executed next simulated operation, cause because executing the too fast next simulation of influence The problem of operating the effect after executing.
The embodiment of the present invention provides a kind of message processing subtraction unit, described device can for simulation program it is corresponding into Journey, as shown in figure 4, described device includes: transmission unit 401, setting unit 402, first processing units 403;
Transmission unit 401, for sending the corresponding message of simulated operation in a manner of sending to target window, so as to the mesh Mark window reception simultaneously handles the message;
Setting unit 402, for preset time to be arranged;
The transmission unit 401 is also used to send the auxiliary that timing message is created to the target window in a manner of sending Window, the assistant window and the target window are in the same process, and the assistant window and the target window Corresponding message queue is identical;
First processing units 403, for described auxiliary when knowing in the preset time that the setting unit 402 is arranged When helping window reception to the timing message, next simulated operation is continued to execute.
It is further alternative, timing message is sent to the target window in a manner of sending described in the transmission unit 401 Before the assistant window of mouth creation, the setting unit 402, is also used to be arranged the target window and the assistant window is corresponding Process process corresponding with the simulation program between communication mode, so that the corresponding process of the simulation program knows institute It states assistant window and has received the timing message.
Further alternative, the communication mode, which is included at least, to carry out interprocess communication by system signal, passes through system Message carries out interprocess communication.
It is further alternative, as shown in figure 5, the setting unit 402, comprising: creation module 4021, setup module 4022。
Creation module 4021, for creating the system signal, setup module 4022, for the system signal to be arranged Value is the first value;Alternatively,
Setup module 4022, the value for the system signal to be arranged are the first value;Alternatively,
The transmission unit 401, for sending system message, the system message is for notifying the assistant window to receive To the timing message and feeds back response message, the response message is the assistant window due to receiving the timing message The message of feedback.
Further alternative, the processing unit 401 is used for:
When the value for monitoring the system signal in the preset time is second value, next simulation is continued to execute Operation.
Further alternative, the processing unit 401 is used for:
When receiving the response message that the assistant window is sent in the preset time, continue to execute next A simulated operation.
It should be noted that in 5 shown device of attached drawing 4 or attached drawing, the specific implementation process of modules and each The contents such as the information exchange between a module, due to embodiment of the present invention method based on the same inventive concept, the side of may refer to Method embodiment, will not repeat them here.
Message processing apparatus provided by the invention, can be by sending the corresponding message of simulated operation to mesh in a manner of sending Mark window;Send the assistant window that timing message is created to the target window in a manner of sending, the assistant window with it is described Target window is in the same process, and assistant window message queue corresponding with the target window is identical;Setting Preset time continues to execute next when knowing that the assistant window receives the timing message in the preset time A simulated operation.Since the priority of timing message in system setting is lower than the corresponding message of simulated operation, by knowing Assistant window receives the lower timing message of processing priority, thereby executing next simulated operation, allow to solve because There is the corresponding process of simulation program caused by " stuck " phenomenon and " stuck " phenomenon occurs in target window, and solves to work as mould The not equal target windows of quasi- program have handled message and have just executed next simulated operation, cause because executing the too fast next simulation of influence The problem of operating the effect after executing.
It should be noted that the apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual It needs that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not In the case where making the creative labor, it can understand and implement.
Through the above description of the embodiments, it is apparent to those skilled in the art that the present invention can borrow Help software that the mode of required common hardware is added to realize, naturally it is also possible to by specialized hardware include specific integrated circuit, specially It is realized with CPU, private memory, special components and parts etc., but the former is more preferably embodiment in many cases.Based in this way Understanding, substantially the part that contributes to existing technology can be with the shape of software product in other words for technical solution of the present invention Formula embodies, which stores in a readable storage medium, and such as the floppy disk of computer, USB flash disk, movement are hard Disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), Magnetic or disk etc., including some instructions are used so that computer equipment (it can be personal computer, server, or Person's network equipment etc.) execute method described in each embodiment of the present invention.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device and For system embodiment, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to method The part of embodiment illustrates.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (12)

1. a kind of message treatment method characterized by comprising
The corresponding message of simulated operation is sent in a manner of sending to target window, so as to the target window receive and process it is described Message;
The assistant window that timing message is created to the target window, the assistant window and the target are sent in a manner of sending Window is in the same process, and assistant window message queue corresponding with the target window is identical;
Preset time is set, when knowing that the assistant window receives the timing message in the preset time, is continued Execute next simulated operation.
2. the method according to claim 1, wherein in the timing message that sent in a manner of sending to the mesh Before the assistant window for marking window creation, further includes:
Communication party between the target window and the corresponding process of assistant window process corresponding with simulation program is set Formula, so that the corresponding process of the simulation program knows that the assistant window has received the timing message.
3. according to the method described in claim 2, it is characterized in that, the communication mode is included at least through system signal progress Interprocess communication and interprocess communication is carried out by system message.
4. according to the method described in claim 3, it is characterized in that, the setting target window and the assistant window pair Communication mode between the process answered process corresponding with simulation program, comprising:
The value for creating the system signal, and the system signal being arranged is the first value;Alternatively,
The value that the system signal is arranged is the first value;Alternatively,
System message is sent, the system message is for notifying the assistant window to receive the timing message and feeds back response Message, the response message are the message that the assistant window is fed back because receiving the timing message.
5. according to the method described in claim 4, it is characterized in that, described ought know the auxiliary window in the preset time When mouth receives the timing message, next simulated operation is continued to execute, comprising:
When the value for monitoring the system signal in the preset time is second value, next simulation behaviour is continued to execute Make.
6. according to the method described in claim 3, it is characterized in that, the setting target window and the assistant window pair Communication mode between the process answered process corresponding with simulation program, comprising:
System message is sent, the system message is for notifying the assistant window to receive the timing message and feeds back response Message, the response message are the message that the assistant window is fed back because receiving the timing message;
It is described when knowing that the assistant window receives the timing message in the preset time, continue to execute next Simulated operation, comprising:
When receiving the response message that the assistant window is sent in the preset time, next mould is continued to execute Quasi- operation.
7. a kind of message processing apparatus characterized by comprising
Transmission unit, for sending the corresponding message of simulated operation in a manner of sending to target window, so as to the target window Receive and process the message;
Setting unit, for preset time to be arranged;
The transmission unit is also used to send the assistant window that timing message is created to the target window, institute in a manner of sending Assistant window and the target window are stated in the same process, and the assistant window is corresponding with the target window disappears It is identical to cease queue;
Processing unit knows that the assistant window receives institute in the preset time that the setting unit is arranged for working as When stating timing message, next simulated operation is continued to execute.
8. device according to claim 7, which is characterized in that
The setting unit, is also used to be arranged the target window and the corresponding process of the assistant window is corresponding with simulation program Process between communication mode, so that the corresponding process of the simulation program knows that the assistant window has received the meter When message.
9. device according to claim 8, which is characterized in that the communication mode is included at least to be carried out by system signal Interprocess communication and interprocess communication is carried out by system message.
10. device according to claim 9, which is characterized in that the setting unit, comprising:
Creation module, for creating the system signal, setup module, the value for the system signal to be arranged is the first value; Alternatively,
Setup module, the value for the system signal to be arranged are the first value;Alternatively,
The transmission unit, for sending system message, the system message is for notifying that it is described that the assistant window receives Timing message and feeds back response message, the response message assistant window are fed back because receiving the timing message Message.
11. device according to claim 10, which is characterized in that the processing unit is used for:
When the value for monitoring the system signal in the preset time is second value, next simulation behaviour is continued to execute Make.
12. device according to claim 9, which is characterized in that the transmission unit, it is described for sending system message For system message for notifying the assistant window to receive the timing message and feeds back response message, the response message is institute State the message that assistant window is fed back because receiving the timing message;
The processing unit, is used for: when the response message for receiving the assistant window transmission in the preset time When, continue to execute next simulated operation.
CN201410075643.2A 2014-03-03 2014-03-03 A kind of message treatment method and device Active CN104899088B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410075643.2A CN104899088B (en) 2014-03-03 2014-03-03 A kind of message treatment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410075643.2A CN104899088B (en) 2014-03-03 2014-03-03 A kind of message treatment method and device

Publications (2)

Publication Number Publication Date
CN104899088A CN104899088A (en) 2015-09-09
CN104899088B true CN104899088B (en) 2019-04-12

Family

ID=54031766

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410075643.2A Active CN104899088B (en) 2014-03-03 2014-03-03 A kind of message treatment method and device

Country Status (1)

Country Link
CN (1) CN104899088B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105528257B (en) * 2016-01-08 2021-01-05 腾讯科技(深圳)有限公司 Single-process data processing method and device
CN105740326B (en) * 2016-01-21 2021-01-15 腾讯科技(深圳)有限公司 Thread state monitoring method and device for browser
CN107396029B (en) * 2017-08-30 2020-04-10 武汉斗鱼网络科技有限公司 Duration non-face early warning method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090210876A1 (en) * 2008-02-20 2009-08-20 Jinmei Shen Pull-model Workload Management with Synchronous-Asynchronous-Synchronous Bridge
CN101504658B (en) * 2009-01-23 2011-09-28 北京搜狗科技发展有限公司 Method and system for implementing message interaction in multi-tag application program

Also Published As

Publication number Publication date
CN104899088A (en) 2015-09-09

Similar Documents

Publication Publication Date Title
US10009303B2 (en) Message push method and apparatus
EP3852077B1 (en) Robot control method, device, and remote control system
JP2018037978A5 (en)
CN104899088B (en) A kind of message treatment method and device
JP2016525736A5 (en)
CN106664584A (en) Synthetic transactions between communication endpoints
EP2485452A3 (en) Systems and methods for establishing a communication session between communication devices
EP1286254A3 (en) Image forming apparatus associating with other apparatuses through network
RU2007149277A (en) DATA-Oriented Workflows
JP2012069113A5 (en)
CN104168203A (en) Processing method and system based on flow table
CN108057249A (en) A kind of business data processing method and device
JP2013246447A5 (en)
CN107637052A (en) A kind of business data processing method, client, service end and system
CN103490984B (en) A kind of method and apparatus obtaining user profile
WO2014180396A1 (en) Code coverage rate processing method and device
JP5545846B2 (en) Sequence test apparatus and sequence test method
JP2014120117A (en) Work information management system, work information management program, and work information management device
CN106168794B (en) Remote control method and device for mixing station
JP5506729B2 (en) Engineering equipment
JP2015141644A (en) Data collection apparatus
JP2014060636A (en) Communication interface conversion device
JP6318223B2 (en) Serial communication frame reception monitoring method
JP2011259076A (en) Sequence test apparatus and sequence test method
CN106603128A (en) Method and electronic device for generating the configuration items of main codebook

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant