CN114153355A - Computer control method and device, storage medium and computer equipment - Google Patents
Computer control method and device, storage medium and computer equipment Download PDFInfo
- Publication number
- CN114153355A CN114153355A CN202111234780.2A CN202111234780A CN114153355A CN 114153355 A CN114153355 A CN 114153355A CN 202111234780 A CN202111234780 A CN 202111234780A CN 114153355 A CN114153355 A CN 114153355A
- Authority
- CN
- China
- Prior art keywords
- computer
- mobile phone
- client
- software
- instruction
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 238000012544 monitoring process Methods 0.000 claims abstract description 23
- 238000004590 computer program Methods 0.000 claims description 8
- 230000001360 synchronised effect Effects 0.000 description 13
- 238000010586 diagram Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000005096 rolling process Methods 0.000 description 2
- 239000003086 colorant Substances 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a computer control method, a computer control device, a storage medium and computer equipment, relates to the technical field of information, and mainly aims to save the flow and the electric quantity of a mobile phone without synchronizing a computer picture to the mobile phone, so that an operator can operate the mobile phone more simply. The method comprises the following steps: establishing connection between the computer client and the mobile phone client; monitoring whether the mobile phone client sends a computer control instruction to the computer client or not based on the connection, wherein the mobile phone client is used for generating and sending a corresponding computer control instruction according to the operation of a user on a mobile phone control interface; and if a computer control instruction sent by the mobile phone client is monitored, determining a target component controlled by a user on the computer, and executing the computer control instruction on the target component. The invention is suitable for controlling the computer.
Description
Technical Field
The present invention relates to the field of information technologies, and in particular, to a computer control method, an apparatus, a storage medium, and a computer device.
Background
In life, when people lie to watch videos in a computer, if the videos need to be paused or fast forwarded, corresponding operations need to be performed on the computer by standing up, which is troublesome, or during work, the contents such as PPT played in the computer often need to be explained before a projection screen without the computer, when PPT is needed to be paused, an explaining person needs to walk to the computer to pause and play the PPT, which affects the progress of a conference, so that how to control the computer by using a mobile phone in the same space becomes a problem to be solved urgently.
At present, a picture on a computer is usually synchronized to a mobile phone, and the picture on the mobile phone is operated to realize the control of the computer. However, synchronizing the picture in the computer to the mobile phone requires the mobile phone to play the video synchronously if the picture with large resource occupancy such as the video is synchronized to the mobile phone, which consumes the traffic of the mobile phone and increases the power consumption of the mobile phone, and synchronizing the picture of the computer to the mobile phone makes the operation of the operator on the mobile phone cumbersome.
Disclosure of Invention
The invention provides a computer control method, a computer control device, a storage medium and computer equipment, which are mainly characterized in that a computer picture does not need to be synchronized to a mobile phone, the flow and the electric quantity of the mobile phone can be saved, and the operation of an operator on the mobile phone is simpler.
According to a first aspect of the present invention, there is provided a computer control method, comprising:
responding to an automatic starting configuration instruction of the computer client, acquiring a software registry, and writing a run item corresponding to the computer client into the software registry;
establishing connection between the computer client and the mobile phone client;
monitoring whether the mobile phone client sends a computer control instruction to the computer client or not based on the connection, wherein the mobile phone client is used for generating and sending a corresponding computer control instruction according to the operation of a user on a mobile phone control interface;
and if a computer control instruction sent by the mobile phone client is monitored, determining a target component controlled by a user on the computer, and executing the computer control instruction on the target component.
According to a second aspect of the present invention, there is provided a computer control apparatus, comprising:
the acquisition unit is used for responding to an automatic starting configuration instruction of the computer client, acquiring a software registry and writing a run item corresponding to the computer client into the software registry;
the establishing unit is used for establishing the connection between the computer client and the mobile phone client;
the monitoring unit is used for monitoring whether the mobile phone client sends a computer control instruction to the computer client or not based on the connection, wherein the mobile phone client is used for generating and sending a corresponding computer control instruction according to the operation of a user on a mobile phone control interface;
and the execution unit is used for determining a target component controlled by a user on the computer and executing the computer control instruction on the target component if the computer control instruction sent by the mobile phone client is monitored.
According to a third aspect of the present invention, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
responding to an automatic starting configuration instruction of the computer client, acquiring a software registry, and writing a run item corresponding to the computer client into the software registry;
establishing connection between the computer client and the mobile phone client;
monitoring whether the mobile phone client sends a computer control instruction to the computer client or not based on the connection, wherein the mobile phone client is used for generating and sending a corresponding computer control instruction according to the operation of a user on a mobile phone control interface;
and if a computer control instruction sent by the mobile phone client is monitored, determining a target component controlled by a user on the computer, and executing the computer control instruction on the target component.
According to a fourth aspect of the present invention, there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the program:
responding to an automatic starting configuration instruction of the computer client, acquiring a software registry, and writing a run item corresponding to the computer client into the software registry;
establishing connection between the computer client and the mobile phone client;
monitoring whether the mobile phone client sends a computer control instruction to the computer client or not based on the connection, wherein the mobile phone client is used for generating and sending a corresponding computer control instruction according to the operation of a user on a mobile phone control interface;
and if a computer control instruction sent by the mobile phone client is monitored, determining a target component controlled by a user on the computer, and executing the computer control instruction on the target component.
According to the computer control method, the computer control device, the computer storage medium and the computer equipment, compared with the mode that the computer picture is synchronized to the mobile phone at present and the control of the computer is realized by operating the picture on the mobile phone, the method has the advantages that the software registry is obtained by responding to the automatic starting configuration instruction of the computer client, and the run item corresponding to the computer client is written in the software registry; establishing connection between the computer client and the mobile phone client; meanwhile, monitoring whether the mobile phone client sends a computer control instruction to the computer client or not based on the connection, wherein the mobile phone client is used for generating and sending a corresponding computer control instruction according to the operation of a user on a mobile phone control interface; finally, if a computer control instruction sent by the mobile phone client is monitored, a target component controlled by a user on the computer is determined, and the computer control instruction is executed on the target component, so that the computer control instruction sent by the mobile phone client can be executed on the computer by establishing the connection between the computer client and the mobile phone client, the situation that a computer picture is synchronized to the mobile phone for controlling the computer can be avoided, the flow and the electric quantity of the mobile phone are saved, the user can conveniently control the computer in a close-distance same-room scene, and the problem that the picture is heavy when the user looks at the mobile phone is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flowchart illustrating a computer control method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another computer control method according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a computer control apparatus according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of another computer control apparatus according to an embodiment of the present invention;
fig. 5 shows a physical structure diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
At present, the picture on the computer is synchronized to the mobile phone, the mode of controlling the computer is realized by operating the picture on the mobile phone, the flow of the mobile phone can be consumed, the power consumption of the mobile phone can be increased, meanwhile, the picture on the mobile phone is relatively heavy when the computer picture is synchronized to the mobile phone, and the operation of an operator on the mobile phone is not facilitated.
In order to solve the above problem, an embodiment of the present invention provides a computer control method, as shown in fig. 1, the method includes:
101. and responding to an automatic starting configuration instruction of the computer client, acquiring a software registry, and writing a run item corresponding to the computer client into the software registry.
The computer client is a client which is downloaded in advance on the company officer network and used for monitoring a computer control instruction.
For the embodiment of the invention, in order to overcome the problem that the mobile phone wastes the flow and the electric quantity of the mobile phone when the mobile phone is used for controlling a computer in the prior art and simultaneously overcome the problem that the picture is relatively heavy when a user looks at the mobile phone in the prior art, the embodiment of the invention can execute a computer control instruction sent by the mobile phone client on the computer by establishing the connection between the computer client and the mobile phone client, thereby avoiding synchronizing the computer picture on the mobile phone when the computer is controlled, saving the flow and the electric quantity of the mobile phone, facilitating the user to control the computer in a close-range same-room scene and simultaneously solving the problem that the picture is relatively heavy when the user looks at the mobile phone. The embodiment of the invention is mainly applied to a scene of controlling a computer, and the execution main body of the embodiment of the invention is a device or equipment capable of controlling the computer, and can be specifically arranged at one side of a client or a server.
Specifically, in order to operate a computer through a mobile phone, firstly, the computer client needs to be downloaded on a company official website, after the client is downloaded to the computer, the client does not need to be installed, the client is double-clicked to complete the starting of the computer client, after the computer client is started, a self-starting option along with the computer starting is displayed in an operation interface of the computer client, the option is selected, at the moment, the computer receives the self-starting configuration instruction, a software registration list is obtained, a run item corresponding to the computer client is written in the software registration list, namely, the computer client is set to be self-started along with the computer starting, when the computer is started next time, the computer client is self-started along with the computer starting, the operation steps of a user are simplified, and the time of the user is saved.
102. And establishing the connection between the computer client and the mobile phone client.
The mobile phone client is a client which is downloaded in advance and used for generating and sending the computer control instruction.
For the embodiment of the present invention, in order to implement the connection between the computer client and the mobile phone client, first, the computer client needs to be opened by double-clicking, a preset two-dimensional code appears in a display interface of the computer client, the preset two-dimensional code is scanned by a certain browser or a certain software in the mobile phone, the relevant information for downloading the mobile phone client is displayed in the mobile phone screen, the mobile phone client is downloaded and installed on the mobile phone based on the displayed downloading relevant information, so that the computer client and the mobile phone client can be obtained, and then the computer and the mobile phone are logged in the same local area network, so as to establish the connection between the computer client and the mobile phone client, it should be noted that the computer client and the mobile phone client can also be connected through bluetooth, the method for establishing the connection is not particularly limited.
103. And monitoring whether the mobile phone client sends a computer control instruction to the computer client or not based on the connection, wherein the mobile phone client is used for generating and sending the corresponding computer control instruction according to the operation of the user on a mobile phone control interface.
For the embodiment of the invention, after the connection between the mobile phone client and the computer client is established, if the operation such as mouse movement, character input and the like is to be executed on the computer, the operation of the computer can be realized by performing corresponding operation on the operation interface of the mobile phone client, wherein the operation interface of the mobile phone client comprises a plurality of operation marks, each operation mark corresponds to different computer operation instructions, specifically, the method for operating the computer by using the mobile phone comprises the steps of firstly clicking or moving the operation mark on the operation interface of the mobile phone client, generating a corresponding computer operation instruction by the mobile phone client based on the clicked or moved operation mark, sending the generated computer operation instruction to the computer client, and executing the computer operation instruction in the computer when the computer client receives the computer operation instruction, for example, when a mouse operation identifier is clicked on the operation interface of the mobile phone client, the mobile phone client generates a corresponding mouse control instruction, and if the computer client monitors the mouse control instruction sent by the mobile phone client, the mouse control instruction is executed in the computer.
104. And if a computer control instruction sent by the mobile phone client is monitored, determining a target component controlled by a user on the computer, and executing the computer control instruction on the target component.
The target component is a component which is required to be controlled and corresponds to the computer control instruction, and comprises a power key, a mouse, various software and the like in the computer.
For the embodiment of the present invention, the computer client is configured to monitor a computer control instruction sent by the mobile phone client, after the mobile phone client generates and sends a corresponding computer control instruction according to an operation of a user on a mobile phone control interface, if the computer client monitors the computer control instruction sent by the mobile phone client, the computer client first needs to determine a target component corresponding to the computer control instruction in the computer, and after the target component is determined, execute the computer control instruction on the target component based on the monitored computer control instruction sent by the mobile phone client, for example, when the computer client monitors that the computer control instruction sent by the mobile phone client is a mouse left button control instruction, the computer client first needs to determine operation position information of the mouse in the computer screen, and based on the operation position information, the mouse is operated by clicking a left button, so that a computer control instruction sent by a mobile phone client can be executed on a computer, a computer picture can be prevented from being synchronized to the mobile phone, the flow and the electric quantity of the mobile phone are saved, and a user can conveniently control the computer in a close-range same-room scene.
According to the computer control method provided by the invention, compared with the mode that the computer picture is synchronized to the mobile phone at present and the control of the computer is realized by operating the picture on the mobile phone, the method has the advantages that the software registry is obtained by responding to the automatic start configuration instruction of the computer client, and the run item corresponding to the computer client is written in the software registry; establishing connection between the computer client and the mobile phone client; meanwhile, monitoring whether the mobile phone client sends a computer control instruction to the computer client or not based on the connection, wherein the mobile phone client is used for generating and sending a corresponding computer control instruction according to the operation of a user on a mobile phone control interface; finally, if a computer control instruction sent by the mobile phone client is monitored, a target component controlled by a user on the computer is determined, and the computer control instruction is executed on the target component, so that the computer control instruction sent by the mobile phone client can be executed on the computer by establishing the connection between the computer client and the mobile phone client, the situation that a computer picture is synchronized to the mobile phone for controlling the computer can be avoided, the flow and the electric quantity of the mobile phone are saved, the user can conveniently control the computer in a close-distance same-room scene, and the problem that the picture is heavy when the user looks at the mobile phone is solved.
Further, in order to better describe the above process of operating the computer, as a refinement and an extension of the above embodiment, an embodiment of the present invention provides another method of operating the computer, as shown in fig. 2, the method includes:
201. and responding to an automatic starting configuration instruction of the computer client, acquiring a software registry, and writing a run item corresponding to the computer client into the software registry.
For the embodiment of the invention, in order to save the operation step of starting the computer client, after the company official website downloads the computer client, double-click starts the computer client, a display interface of the computer client is displayed, a 'start-up with computer' option is arranged at a preset position of the display interface of the computer client, and the option is selected, namely, the computer client is set to start up automatically along with the computer.
202. And establishing the connection between the computer client and the mobile phone client.
For the embodiment of the present invention, in order to implement the operation of the computer by the mobile phone, the connection between the computer client and the mobile phone client needs to be established first, and based on this, step 202 specifically includes: monitoring whether the mobile phone client sends a connection request to the computer client or not by starting the socekt; and if the connection request sent by the mobile phone client is monitored, establishing the connection between the computer client and the mobile phone client, and displaying the connection on a display interface of the computer client.
The socekt is an interface for establishing connection between the computer client and the mobile phone client, and is used for communicating information between the computer client and the mobile phone client.
For the embodiment of the invention, the mobile phone client is opened at the mobile phone client side, at the moment, a red mark is displayed at a preset position of an operation interface of the mobile phone client, which indicates that the mobile phone client is not connected with the computer client, then whether the mobile phone client is in a preset network environment is checked, if the mobile phone client is not in the preset network environment, a prompt bullet frame is popped up at the operation interface of the mobile phone client, a prompt bullet frame is displayed in the prompt bullet frame, that 'the current equipment is not in the preset network environment', if the mobile phone client is in the preset network environment, the preset network is tried to be connected, at the moment, the red mark at the preset position of the operation interface of the mobile phone client is in a flashing state, which indicates that the mobile phone client is trying to be connected with the computer client, wherein the preset network is a network connected with the computer client, and starting the socekt to monitor whether the mobile phone client sends a connection request to the computer client, if the socekt monitors that the mobile phone client sends the connection request to the computer client, establishing the connection between the mobile phone client and the computer client, and at the moment, a red mark at a preset position of an operation interface of the mobile phone client is changed into green, which indicates that the connection between the mobile phone client and the computer client is successful. It should be noted that the identifier indicating whether the connection between the mobile phone client and the computer client is successful or not displayed on the operation interface of the mobile phone client may also be represented by other colors or letters, and the embodiment of the present invention is not specifically limited, and at the same time, at the computer client, after the computer client is started, if the socekt does not monitor the connection request sent by the mobile phone client, the "unconnected" character is displayed on the display interface of the computer client, if the socekt monitors the connection request sent by the mobile phone client, the connection between the mobile phone client and the computer client is established, after the connection is successful, the "connected" character is displayed on the display interface of the computer client, and when the "connected" character is displayed on the operation interface of the computer client, the mobile phone client may send a computer control instruction to the computer client, and if the computer client monitors the computer control instruction sent by the mobile phone client, executing the computer control instruction on the computer.
203. And monitoring whether the mobile phone client sends a computer control instruction to the computer client or not based on the connection, wherein the mobile phone client is used for generating and sending the corresponding computer control instruction according to the operation of the user on a mobile phone control interface.
The computer control instruction comprises a software starting instruction, a mouse operation instruction, a text input instruction, a shutdown instruction, a sleep instruction and the like.
For the embodiment of the invention, the control interface of the mobile phone client contains a plurality of operation identifiers, the software start instruction in the computer control instruction corresponds to the software start identifier, the mouse operation instruction in the computer control instruction corresponds to the mouse operation identifier, the text input instruction in the computer control instruction corresponds to the keyboard identifier, the shutdown instruction and the sleep instruction in the computer control instruction correspond to the power key identifier, when the connection between the mobile phone client and the computer client is established, if a user wants to execute some operations on a computer, the corresponding operation identifiers on the control interface of the mobile phone client can be operated firstly, when the user operates the operation identifiers, the computer control instruction corresponding to the operation identifiers can be generated, and at this time, whether the mobile phone client sends the computer control instruction to the computer client or not is monitored, if the computer client monitors the computer control instruction sent by the mobile phone client, the computer control instruction is executed on the computer, therefore, certain operations of the user on the computer are realized, for example, the user lies on a sofa at home to watch videos on the computer, the user wants to pause the videos at the moment, the user can search a mouse operation identifier on the operation identifier of the mobile phone client control interface and based on the position information of the mouse on the computer, performing corresponding operation on the mouse identifier, generating and sending a mouse operation instruction corresponding to the mouse identifier by the mobile phone client at the moment, meanwhile, the computer client monitors the mouse control instruction sent by the mobile phone client, and if the mouse control instruction sent by the mobile phone client is monitored, the played video is paused in the computer.
204. And if the computer control instruction sent by the mobile phone client is monitored to be a software starting instruction, determining that a target component controlled on the computer by the user is target software, and executing software starting operation on the target software.
For the embodiment of the present invention, in order to execute the software start instruction in the computer control instruction on the computer, a software list obtaining instruction in the computer control instruction needs to be executed on the computer first, and the execution method of the software list obtaining instruction includes: and if the computer control instruction sent by the mobile phone client is a software list acquisition instruction, acquiring a software list in the computer, and feeding back the software list to the mobile phone client, wherein the mobile phone client is used for generating a software starting instruction corresponding to target software according to the target software selected by the user in the software list, and sending the software starting instruction to the computer client.
Specifically, at the mobile phone client side, firstly, a user clicks a software list acquisition identifier on the mobile phone client control interface, at this time, the mobile phone client generates and sends a corresponding software list acquisition instruction, if the computer client monitors that a computer control instruction sent by the mobile phone client is the software list acquisition instruction, the computer client acquires all the software in the computer, generates the software into a software list form, and then feeds back the software list to the mobile phone client, after receiving the software list, the mobile phone client needs to generate and send a software starting instruction to the computer client if opening the target software required by the user, the computer client executes a software start operation on the computer based on the software start instruction, and based on this, step 204 specifically includes: if the computer control instruction sent by the mobile phone client is monitored to be a software starting instruction, determining target software controlled by a user on the computer according to software identification information carried by the software starting instruction; executing a software boot operation on the target software.
Specifically, after the computer client feeds back the software list to the mobile phone client, the user selects a software identifier corresponding to target software to be opened in the software list of the control interface of the mobile phone client, generates and sends a software starting instruction based on the selected software identifier, and if the computer client monitors the software starting instruction sent by the mobile phone client, the target software corresponding to the software identifier is determined in the computer according to the software identifier carried by the software starting instruction, and finally the software starting operation is executed on the target software, so that the target software required by the user can be opened.
205. If the computer control instruction sent by the mobile phone client is monitored to be a mouse operation instruction, determining the operation position information of the mouse in the computer screen, and operating the mouse based on the operation position information.
The mouse operation instruction comprises a mouse middle key upward rolling operation instruction, a mouse middle key downward rolling operation instruction and a mouse sliding operation instruction.
For the embodiment of the present invention, if the user clicks the mouse middle key up-scrolling identifier or clicks the mouse middle key down-scrolling identifier on the operation interface of the mobile phone client, the mobile phone client generates and sends the mouse middle key up-scrolling operation instruction or the mouse middle key down-scrolling operation instruction, if the computer client monitors the mouse middle key up-scrolling operation instruction or the mouse middle key down-scrolling operation instruction sent by the mobile phone client, the position information of the mouse is really located in the computer screen, and the mouse middle key is up-scrolled or down-scrolled based on the position information, meanwhile, if the user slides the rocker operation identifier on the control interface of the mobile phone client, the mobile phone client generates and sends the mouse sliding operation instruction, based on the mouse sliding operation instruction, the operation process executed by the computer client is as follows: if the computer control instruction sent by the mobile phone client is a mouse sliding instruction, determining the sliding direction and the sliding distance of the mouse in the computer screen; and executing the mouse sliding operation on the mouse based on the sliding direction and the sliding distance.
The mouse sliding operation instruction comprises an operation instruction for sliding the mouse to all directions.
Specifically, the mobile phone client operation interface comprises a rocker operation identifier, the mouse sliding operation instruction is generated and sent by sliding the rocker operation identifier, if the user slides the rocker operation identifier leftwards or rightwards on the mobile phone client operation interface, the mobile phone client generates and sends the mouse leftward sliding operation instruction or the mouse rightward sliding operation instruction, if the computer client monitors the mouse leftward sliding operation instruction or the mouse rightward sliding operation instruction sent by the mobile phone client, the leftward sliding direction and the leftward sliding distance or the rightward sliding direction and the rightward sliding distance of the mouse in the computer screen are determined, and the leftward sliding operation or the rightward sliding operation is executed on the mouse in the computer based on the leftward sliding direction and the leftward sliding distance or the rightward sliding direction and the rightward sliding distance, in the same way, the mouse can slide in any direction in the computer.
Further, the mouse operation instruction further includes a left mouse button instruction and a right mouse button instruction, and after the mouse is slid, if the user wants to perform the left mouse button operation or the right mouse button operation on the mouse, the method further includes: if the computer control instruction sent by the mobile phone client is a left mouse button instruction or a right mouse button instruction, executing the left mouse button operation or the right mouse button operation on the mouse based on the mouse position information after the mouse sliding operation is executed.
Specifically, after the mouse is slid in the computer, if a user clicks a left mouse button operation identifier or a right mouse button operation identifier on the operation interface of the mobile phone client, the mobile phone client generates and sends the left mouse button operation instruction or the right mouse button operation instruction, and if the computer client monitors the left mouse button operation instruction or the right mouse button operation instruction in the mouse operation instruction sent by the mobile phone client, the mouse is operated by clicking a left mouse button or clicking a right button based on the corresponding position information of the slid mouse in the computer.
206. And if the computer control instruction sent by the mobile phone client is a text input instruction, positioning the position information of the input text in the computer screen, and executing text input operation based on the position information of the input text.
Specifically, if a user wants to input a text at a certain position in a computer, first determining position information of a mouse on the computer, executing a mouse sliding operation instruction on the computer based on the position information, sliding the mouse to the position of the input text based on the mouse sliding operation instruction, then executing a left mouse button operation instruction to enable a mouse identifier to be in a flashing state at the position of the input text, then clicking a keyboard identifier in a mobile phone client control interface, inputting the text in the keyboard identifier, and if the computer client monitors that a computer control instruction sent by the mobile phone client is a text input instruction, executing the text input operation at the position of the input text, so as to complete the text input operation in the computer.
207. If the computer control instruction sent by the mobile phone client is a shutdown instruction or a sleep instruction, determining that a target component controlled on the computer by a user is a power key, and executing shutdown operation or sleep operation on the power key.
For the embodiment of the invention, if a user wants to close a computer or execute a sleep operation on the computer, at the mobile phone client side, the user firstly clicks a power key identifier on a control interface of the mobile phone client, a pull-down menu appears, a power-off option and a sleep option are displayed in the menu, the user clicks the power-off option or the sleep option, the mobile phone client generates and sends a power-off instruction or a sleep instruction at the moment, meanwhile, if the computer client monitors the power-off instruction or the sleep instruction sent by the mobile phone client, a target component controlled by the user on the computer is determined to be the power key, and finally the power-off operation or the sleep operation is executed on the power key. It should be noted that, when a user clicks a shutdown option or a sleep option on a control interface of a mobile phone client, a pop-up box pops up on the control interface of the mobile phone client, and prompt words such as "after a shutdown instruction or a sleep instruction is executed, if the user wants to restart the computer or wake up the computer and needs to operate on the computer" are displayed in the pop-up box.
According to another computer control method, device, storage medium and computer equipment provided by the invention, compared with the mode that the computer picture is synchronized to the mobile phone at present and the control of the computer is realized by operating the picture on the mobile phone, the method responds to the automatic start configuration instruction of the computer client to obtain the software registry, and writes the run item corresponding to the computer client into the software registry; establishing connection between the computer client and the mobile phone client; meanwhile, monitoring whether the mobile phone client sends a computer control instruction to the computer client or not based on the connection, wherein the mobile phone client is used for generating and sending a corresponding computer control instruction according to the operation of a user on a mobile phone control interface; finally, if a computer control instruction sent by the mobile phone client is monitored, a target component controlled by a user on the computer is determined, and the computer control instruction is executed on the target component, so that the computer control instruction sent by the mobile phone client can be executed on the computer by establishing the connection between the computer client and the mobile phone client, the situation that a computer picture is synchronized to the mobile phone for controlling the computer can be avoided, the flow and the electric quantity of the mobile phone are saved, the user can conveniently control the computer in a close-distance same-room scene, and the problem that the picture is heavy when the user looks at the mobile phone is solved.
Further, as a specific implementation of fig. 1, an embodiment of the present invention provides a computer control apparatus, as shown in fig. 3, the apparatus includes: an acquisition unit 31, a setup unit 32, a listening unit 33 and an execution unit 34.
The obtaining unit 31 may be configured to, in response to an automatic start configuration instruction of the computer client, obtain a software registry, and write a run entry corresponding to the computer client in the software registry.
The establishing unit 32 may be configured to establish a connection between the computer client and the mobile phone client.
The monitoring unit 33 may be configured to monitor whether the mobile phone client sends a computer control instruction to the computer client based on the connection, where the mobile phone client is configured to generate and send a corresponding computer control instruction according to an operation of a user on a mobile phone control interface.
The execution unit 34 may be configured to determine a target component that is controlled by a user on the computer if a computer control instruction sent by the mobile phone client is monitored, and execute the computer control instruction on the target component.
In a specific application scenario, in order to establish a connection between a computer client and a mobile phone client, as shown in fig. 4, the establishing unit 32 includes a monitoring module 321 and an establishing module 322.
The monitoring module 321 may be configured to monitor whether the mobile phone client sends a connection request to the computer client by starting socekt.
The establishing module 322 may be configured to establish a connection between the computer client and the mobile phone client if the connection request sent by the mobile phone client is monitored, and display the connection on a display interface of the computer client.
In a specific application scenario, in order to execute a computer control instruction sent by the mobile phone client on a computer, the execution unit 34 may be specifically configured to determine that a target component controlled by a user on the computer is target software and execute a software starting operation on the target software if it is monitored that the computer control instruction sent by the mobile phone client is a software starting instruction; if the computer control instruction sent by the mobile phone client is monitored to be a mouse operation instruction, determining the operation position information of a mouse in the computer screen, and operating the mouse based on the operation position information; if the computer control instruction sent by the mobile phone client is a text input instruction, positioning the position information of the input text in the computer screen, and executing text input operation based on the position information of the input text; if the computer control instruction sent by the mobile phone client is a shutdown instruction or a sleep instruction, determining that a target component controlled on the computer by a user is a power key, and executing shutdown operation or sleep operation on the power key.
In a specific application scenario, in order to execute the software starting instruction sent by the mobile phone client on a computer, the execution unit 34 includes a determining module 341 and an executing module 342.
The determining module 341 is configured to determine, if it is monitored that the computer control instruction sent by the mobile phone client is a software start instruction, target software controlled by the user on the computer according to software identification information carried in the software start instruction.
The execution module 342 may be configured to execute a software boot operation on the target software.
In a specific application scenario, in order to execute the software starting instruction sent by the mobile phone client on the computer, the execution unit 34 further includes an obtaining module 343.
The obtaining module 343 may be configured to, if it is monitored that the computer control instruction sent by the mobile phone client is a software list obtaining instruction, obtain a software list in the computer, and feed back the software list to the mobile phone client, where the mobile phone client is configured to generate a software start instruction corresponding to target software according to the target software selected by the user in the software list, and send the software start instruction to the computer client.
In a specific application scenario, in order to execute the mouse operation instruction sent by the mobile phone client on the computer, the determining module 341 may be further configured to determine a sliding direction and a sliding distance of the mouse in the computer screen if it is monitored that the computer operation instruction sent by the mobile phone client is a mouse sliding instruction.
The executing module 342 may be further configured to execute the mouse sliding operation on the mouse based on the sliding direction and the sliding distance.
In a specific application scenario, in order to execute a left mouse button instruction and a right mouse button instruction sent by the mobile phone client in the computer client, the execution module 342 may be further configured to execute the left mouse button operation or the right mouse button operation on the mouse based on the mouse position information after the mouse sliding operation is executed if it is monitored that the computer control instruction sent by the mobile phone client is the left mouse button instruction or the right mouse button instruction.
It should be noted that, other corresponding descriptions of the functional modules related to the computer control apparatus provided in the embodiment of the present invention may refer to the corresponding description of the method shown in fig. 1, and are not described herein again.
Based on the method shown in fig. 1, correspondingly, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the following steps: responding to an automatic starting configuration instruction of the computer client, acquiring a software registry, and writing a run item corresponding to the computer client into the software registry; establishing connection between the computer client and the mobile phone client; monitoring whether the mobile phone client sends a computer control instruction to the computer client or not based on the connection, wherein the mobile phone client is used for generating and sending a corresponding computer control instruction according to the operation of a user on a mobile phone control interface; and if a computer control instruction sent by the mobile phone client is monitored, determining a target component controlled by a user on the computer, and executing the computer control instruction on the target component.
Based on the above embodiments of the method shown in fig. 1 and the apparatus shown in fig. 3, an embodiment of the present invention further provides an entity structure diagram of a computer device, as shown in fig. 5, where the computer device includes: a processor 41, a memory 42, and a computer program stored on the memory 42 and executable on the processor, wherein the memory 42 and the processor 41 are both arranged on a bus 43 such that when the processor 41 executes the program, the following steps are performed: responding to an automatic starting configuration instruction of the computer client, acquiring a software registry, and writing a run item corresponding to the computer client into the software registry; establishing connection between the computer client and the mobile phone client; monitoring whether the mobile phone client sends a computer control instruction to the computer client or not based on the connection, wherein the mobile phone client is used for generating and sending a corresponding computer control instruction according to the operation of a user on a mobile phone control interface; and if a computer control instruction sent by the mobile phone client is monitored, determining a target component controlled by a user on the computer, and executing the computer control instruction on the target component.
According to the technical scheme, the software registry is obtained by responding to the automatic starting configuration instruction of the computer client, and the run item corresponding to the computer client is written in the software registry; establishing connection between the computer client and the mobile phone client; meanwhile, monitoring whether the mobile phone client sends a computer control instruction to the computer client or not based on the connection, wherein the mobile phone client is used for generating and sending a corresponding computer control instruction according to the operation of a user on a mobile phone control interface; finally, if a computer control instruction sent by the mobile phone client is monitored, a target component controlled by a user on the computer is determined, and the computer control instruction is executed on the target component, so that the computer control instruction sent by the mobile phone client can be executed on the computer by establishing the connection between the computer client and the mobile phone client, the situation that a computer picture is synchronized to the mobile phone for controlling the computer can be avoided, the flow and the electric quantity of the mobile phone are saved, the user can conveniently control the computer in a close-distance same-room scene, and the problem that the picture is heavy when the user looks at the mobile phone is solved.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. A computer control method applied to a computer client comprises the following steps:
responding to an automatic starting configuration instruction of the computer client, acquiring a software registry, and writing a run item corresponding to the computer client into the software registry;
establishing connection between the computer client and the mobile phone client;
monitoring whether the mobile phone client sends a computer control instruction to the computer client or not based on the connection, wherein the mobile phone client is used for generating and sending a corresponding computer control instruction according to the operation of a user on a mobile phone control interface;
and if a computer control instruction sent by the mobile phone client is monitored, determining a target component controlled by a user on the computer, and executing the computer control instruction on the target component.
2. The method of claim 1, wherein establishing the connection between the computer client and the mobile phone client comprises:
monitoring whether the mobile phone client sends a connection request to the computer client or not by starting the socekt;
and if the connection request sent by the mobile phone client is monitored, establishing the connection between the computer client and the mobile phone client, and displaying the connection on a display interface of the computer client.
3. The method of claim 1, wherein if a computer manipulation instruction sent by the mobile phone client is monitored, determining a target component manipulated by a user on the computer, and executing the computer manipulation instruction on the target component comprises:
if the computer control instruction sent by the mobile phone client is monitored to be a software starting instruction, determining that a target component controlled on the computer by a user is target software, and executing software starting operation on the target software;
if the computer control instruction sent by the mobile phone client is monitored to be a mouse operation instruction, determining the operation position information of a mouse in the computer screen, and operating the mouse based on the operation position information;
if the computer control instruction sent by the mobile phone client is a text input instruction, positioning the position information of the input text in the computer screen, and executing text input operation based on the position information of the input text;
if the computer control instruction sent by the mobile phone client is a shutdown instruction or a sleep instruction, determining that a target component controlled on the computer by a user is a power key, and executing shutdown operation or sleep operation on the power key.
4. The method according to claim 3, wherein if it is monitored that the computer control instruction sent by the mobile phone client is a software start instruction, determining that a target component controlled by a user on the computer is target software, and executing the software start instruction on the target software comprises:
if the computer control instruction sent by the mobile phone client is monitored to be a software starting instruction, determining target software controlled by a user on the computer according to software identification information carried by the software starting instruction;
executing a software boot operation on the target software.
5. The method according to claim 4, wherein before determining the target software operated by the user on the computer according to the software identification information carried in the software start instruction if the computer operation instruction sent by the mobile phone client is monitored to be a software start instruction, the method further comprises:
and if the computer control instruction sent by the mobile phone client is a software list acquisition instruction, acquiring a software list in the computer, and feeding back the software list to the mobile phone client, wherein the mobile phone client is used for generating a software starting instruction corresponding to target software according to the target software selected by the user in the software list, and sending the software starting instruction to the computer client.
6. The method according to claim 3, wherein if it is monitored that the computer control instruction sent by the mobile phone client is a mouse operation instruction, determining operation position information of a mouse in the computer screen, and executing the mouse operation instruction on the mouse based on the operation position information comprises:
if the computer control instruction sent by the mobile phone client is a mouse sliding instruction, determining the sliding direction and the sliding distance of the mouse in the computer screen;
and executing the mouse sliding operation on the mouse based on the sliding direction and the sliding distance.
7. The method of claim 6, wherein after the performing the mouse swipe operation on the mouse based on the swipe direction and the swipe distance, the method further comprises:
if the computer control instruction sent by the mobile phone client is a left mouse button instruction or a right mouse button instruction, executing the left mouse button operation or the right mouse button operation on the mouse based on the mouse position information after the mouse sliding operation is executed.
8. A computer-controlled control device, comprising:
the acquisition unit is used for responding to an automatic starting configuration instruction of the computer client, acquiring a software registry and writing a run item corresponding to the computer client into the software registry;
the establishing unit is used for establishing the connection between the computer client and the mobile phone client;
the monitoring unit is used for monitoring whether the mobile phone client sends a computer control instruction to the computer client or not based on the connection, wherein the mobile phone client is used for generating and sending a corresponding computer control instruction according to the operation of a user on a mobile phone control interface;
and the execution unit is used for determining a target component controlled by a user on the computer and executing the computer control instruction on the target component if the computer control instruction sent by the mobile phone client is monitored.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
10. A computer arrangement comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 7 when executed by the processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111234780.2A CN114153355A (en) | 2021-10-22 | 2021-10-22 | Computer control method and device, storage medium and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111234780.2A CN114153355A (en) | 2021-10-22 | 2021-10-22 | Computer control method and device, storage medium and computer equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114153355A true CN114153355A (en) | 2022-03-08 |
Family
ID=80458387
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111234780.2A Pending CN114153355A (en) | 2021-10-22 | 2021-10-22 | Computer control method and device, storage medium and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114153355A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101510125A (en) * | 2009-03-30 | 2009-08-19 | 东南大学 | Method for implementing computer keyboard mouse action control using mobile phone by bluetooth |
CN102622157A (en) * | 2011-01-27 | 2012-08-01 | 西安龙飞软件有限公司 | Method for achieving handwriting input of computer equipment by using mobile phone touch screen |
CN103095942A (en) * | 2013-01-08 | 2013-05-08 | 杭州电子科技大学 | Method for controlling computer cursor by intelligent mobile phone |
CN103324348A (en) * | 2013-06-28 | 2013-09-25 | 华南理工大学 | Windows desktop control method based on intelligent mobile terminals |
CN103645847A (en) * | 2013-12-02 | 2014-03-19 | 乐视致新电子科技(天津)有限公司 | Method and system for simulating mouse to control intelligent television through mobile terminal |
CN104679524A (en) * | 2015-03-17 | 2015-06-03 | 郑波 | Method for controlling computer through mobile phone |
CN105262880A (en) * | 2015-05-28 | 2016-01-20 | 重庆大学 | Mobile phone control demonstration system applied to WiFi network |
-
2021
- 2021-10-22 CN CN202111234780.2A patent/CN114153355A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101510125A (en) * | 2009-03-30 | 2009-08-19 | 东南大学 | Method for implementing computer keyboard mouse action control using mobile phone by bluetooth |
CN102622157A (en) * | 2011-01-27 | 2012-08-01 | 西安龙飞软件有限公司 | Method for achieving handwriting input of computer equipment by using mobile phone touch screen |
CN103095942A (en) * | 2013-01-08 | 2013-05-08 | 杭州电子科技大学 | Method for controlling computer cursor by intelligent mobile phone |
CN103324348A (en) * | 2013-06-28 | 2013-09-25 | 华南理工大学 | Windows desktop control method based on intelligent mobile terminals |
CN103645847A (en) * | 2013-12-02 | 2014-03-19 | 乐视致新电子科技(天津)有限公司 | Method and system for simulating mouse to control intelligent television through mobile terminal |
CN104679524A (en) * | 2015-03-17 | 2015-06-03 | 郑波 | Method for controlling computer through mobile phone |
CN105262880A (en) * | 2015-05-28 | 2016-01-20 | 重庆大学 | Mobile phone control demonstration system applied to WiFi network |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110990741B (en) | Page display method and device, electronic equipment, server and storage medium | |
CN105786473A (en) | Task management method and device of multi-task interface as well as terminal equipment | |
CN110837398B (en) | Method and terminal for displaying card of quick application | |
CN103530096A (en) | Remote control method, remote control equipment and display equipment | |
CN105210031A (en) | Kiosk application mode for operating system | |
CN112399006B (en) | File sending method and device and electronic equipment | |
CN112416200A (en) | Display method, display device, electronic equipment and readable storage medium | |
US20240031317A1 (en) | Image Sharing Method and Electronic Device | |
CN112230943A (en) | Application processing method and device and electronic equipment | |
CN111897502A (en) | Split screen control system and method | |
US20130290841A1 (en) | Non-transitory computer readable medium, virtual-sheet management apparatus, and virtual-sheet management method | |
CN112558833B (en) | Application running method and device and electronic equipment | |
CN106547563B (en) | Method and device for realizing operation function in interphone and interphone terminal | |
CN112286616A (en) | Dynamic wallpaper setting method and device and electronic equipment | |
CN114153355A (en) | Computer control method and device, storage medium and computer equipment | |
US20200249902A1 (en) | Information processing system, information processing apparatus, and method of processing information | |
CN113872849B (en) | Message interaction method and device and electronic equipment | |
CN114116090A (en) | Information display method and device, electronic equipment and computer readable storage medium | |
CN113778311A (en) | Operation method and device and electronic equipment | |
CN114490134A (en) | Event processing method, system, device, computer equipment and storage medium | |
CN113282204A (en) | Icon control method and icon control device | |
CN112583906A (en) | Information processing method and device based on BIM (building information modeling), storage medium and electronic equipment | |
CN112269630A (en) | Keyboard and mouse sharing system of virtual machine | |
CN112084449A (en) | Terminal operation method, operation server control method, terminal and medium | |
CN112764782B (en) | Application program updating method and application program updating device |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220308 |