A process management method and device in a multi-account environment
By implementing process management methods in a multi-account environment on the computer, detecting the account usage status and wireless screen projector insertion, the problem of the computer being unable to project screens when switching from one account to another account is solved, real-time screen projection and improved user experience.
Patent Information
- Application Number
- CN202411910045.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2044-12-23
AI Technical Summary
When multiple accounts are created on the computer, when the computer switches from one account to another, it cannot project the screen on the monitor screen through the wireless screen projector, resulting in difficulty in viewing the monitor screen in real time, and problems such as black screen, and poor screen usage experience.
By implementing the process management method in a multi-account environment on the computer, the usage status of each account and the insertion of the wireless screen projector are detected. If the account is in an unused state or the wireless screen projector is not inserted, the screen projection of the display is prohibited; if the account is in an in-use state and the wireless screen projector has been inserted, the display screen is collected and projected.
In the multi-account environment of the computer, it is possible to watch the monitor screen in real time through a wireless screen projector when switching from one account to another, avoiding problems such as black screen, improving the screen projection experience, and saving system resources.
Smart Images

Figure CN119356826B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a process management method and device in a multi-account environment. Background Art
[0002] Computers, commonly known as computers, are electronic computing machines used for high-speed calculations. They can perform numerical calculations, logical calculations, and have storage and memory functions. Computers are intelligent electronic devices that can run according to programs and automatically and quickly process data. When using a wireless screen projector on a computer, the computer can capture the display screen (that is, the screen being displayed on the monitor), transmit the display screen to the wireless screen projector, and the wireless screen projector projects the display screen. For example, in a meeting with multiple participants, the display screen can be projected on a large screen so that multiple people can watch the display screen at the same time.
[0003] However, if multiple accounts are created on a computer, when the computer switches from one account to another, the display screen may not be projected through the wireless screen projector, the display screen may not be viewed in real time, and there may be problems such as a black screen, resulting in a poor screen projection experience. Summary of the invention
[0004] The present application provides a process management method in a multi-account environment, which is applied to a computer, wherein a first account and a second account are created on the computer, a first screen projector management process is run under the first account, and a second screen projector management process is run under the second account, and the method comprises:
[0005] In the case where the computer switches from the first account to the second account, if the first screen projector management process detects that the first account is currently an unused account, then the first screen projector management process is prohibited from collecting the display screen for screen projection;
[0006] If it is detected through the second screen projector management process that the second account is currently in use, and it is detected through the second screen projector management process that the wireless screen projector has been plugged into the computer, the display screen is captured through the second screen projector management process, and the display screen is projected through the wireless screen projector.
[0007] The present application provides a process management method in a multi-account environment, which is applied to a computer, wherein the computer has created multiple accounts that have run a screen projection device management process, and the method includes:
[0008] For each account, if the screen projector management process of the account detects that the account is currently unused, the screen projector management process is prohibited from collecting the display screen for screen projection;
[0009] If the screen projector management process detects that the account is currently in use and the screen projector management process detects that the wireless screen projector has been inserted into the computer, the display screen is captured through the screen projector management process and the display screen is projected through the wireless screen projector.
[0010] The present application provides a process management device in a multi-account environment, which is applied to a computer, wherein a first account and a second account are created on the computer, a first screen projector management process is run under the first account, and a second screen projector management process is run under the second account, and the device comprises:
[0011] a detection module, configured to detect, through the first screen projector management process, whether the first account is currently an unused account when the computer switches from the first account to the second account; detect, through the second screen projector management process, whether the second account is currently an in-use account; and detect, through the second screen projector management process, whether the wireless screen projector has been plugged into the computer;
[0012] A processing module is used to prohibit the collection of display images for screen projection through the first screen projector management process if it is detected through the first screen projector management process that the first account is currently an unused account; if it is detected through the second screen projector management process that the second account is currently an in-use account, and it is detected through the second screen projector management process that a wireless screen projector has been inserted into the computer, the display image is collected through the second screen projector management process, and the display image is projected through the wireless screen projector.
[0013] The present application provides a computer device, comprising: a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor; wherein the processor is used to execute the machine-executable instructions to implement the above-mentioned process management method in a multi-account environment.
[0014] The present application provides a computer program product, which may include a computer program. When the computer program is executed by a processor, the process management method in a multi-account environment is implemented.
[0015] The present application provides a machine-readable storage medium, which stores machine-executable instructions that can be executed by a processor; wherein the processor is used to execute the machine-executable instructions to implement the process management method in a multi-account environment of the above example.
[0016] It can be seen from the above technical solutions that in the embodiment of the present application, when multiple accounts are created on the computer, when the computer switches from one account to another account, the display screen can be projected through the wireless screen projector, and the display screen can be viewed in real time without problems such as black screen, and the use experience of screen projection is better. In a multi-account environment of a computer, by judging whether the current account is an account in use, it is possible to avoid the simultaneous execution and mutual influence of multiple screen projector management processes, avoid functional disorders, and the screen projector management process under the account not in use does not execute the screen projection detection process (that is, it is prohibited to collect the display screen through the screen projector management process for projection), thereby saving system resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a flowchart of the process management method in a multi-account environment in this application;
[0018] Figure 2 It is a flowchart of the process management method in a multi-account environment in this application;
[0019] Figure 3 It is a flowchart of the process management method in a multi-account environment in this application;
[0020] Figure 4 It is a flowchart of the process management method in a multi-account environment in this application;
[0021] Figure 5A It is a structural diagram of a process management device in a multi-account environment in this application;
[0022] Figure 5B It is a structural diagram of a process management device in a multi-account environment in this application;
[0023] Figure 6 It is a hardware structure diagram of the computer device in this application. DETAILED DESCRIPTION
[0024] In the embodiment of the present application, a process management method in a multi-account environment is proposed, which can be applied to a computer (also referred to as a computer), such as a desktop computer, a notebook computer, a PC (Personal Computer), etc. A first account and a second account are created on the computer, a first screen projector management process is run under the first account, and a second screen projector management process is run under the second account. Figure 1 FIG. 4 is a flow chart of the method, which may include the following steps:
[0025] Step 101. When the computer switches from the first account to the second account, if the first screen projector management process detects that the first account is currently an unused account, the first screen projector management process is prohibited from collecting the display screen for screen projection (such as wireless screen projection).
[0026] Step 102: If the second screen projector management process detects that the second account is currently in use, and the second screen projector management process detects that the wireless screen projector has been inserted into the computer, the second screen projector management process captures the display image and projects the display image through the wireless screen projector.
[0027] Exemplarily, detecting through the first screen projector management process that the first account is currently an unused account may include but is not limited to: if it is detected through the first screen projector management process that the display of the first account is currently in a locked screen state, it is detected that the first account is currently an unused account.
[0028] Exemplarily, detecting through the second screen projector management process that the second account is currently using the account may include, but is not limited to: if it is detected through the second screen projector management process that the display of the second account is currently in an unlocked state, it is detected that the second account is currently using the account.
[0029] Exemplarily, prohibiting the use of the first screen projector management process to capture the display screen for screen projection may include but is not limited to: when the first account is currently an unused account, setting the first screen projector management process to an inactive state; in the inactive state, stopping the detection of whether the wireless screen projector has been plugged into the computer through the first screen projector management process; when it is not detected whether the wireless screen projector has been plugged into the computer, prohibiting the use of the first screen projector management process to capture the display screen for screen projection.
[0030] Exemplarily, collecting the display screen through the second screen projector management process may include but is not limited to: when the second account is currently in use, the second screen projector management process can be set to an active state; when the second screen projector management process is in an active state, the second screen projector management process can be used to detect whether the wireless screen projector has been inserted into the computer; when the second screen projector management process detects that the wireless screen projector has been inserted into the computer, the display screen is collected through the second screen projector management process.
[0031] Exemplarily, the first screen projector management process may include a first screen projector monitoring process and a first screen projector client process. If it is detected through the first screen projector monitoring process that the first account is currently an unused account, the detection of whether the wireless screen projector has been plugged into the computer through the first screen projector monitoring process is stopped, and the sending of a trigger message to the first screen projector client process through the first screen projector monitoring process is prohibited; wherein the trigger message is used to indicate that the wireless screen projector is currently plugged into the computer. If the trigger message is not received through the first screen projector client process, it is prohibited to collect the display screen for projection through the first screen projector client process.
[0032] Exemplarily, the second screen projector management process may include a second screen projector monitoring process and a second screen projector client process. If it is detected through the second screen projector monitoring process that the second account is currently in use, the second screen projector monitoring process may be used to detect whether the wireless screen projector has been plugged into the computer; if it is detected that the wireless screen projector has been plugged into the computer, a trigger message is sent to the second screen projector client process through the second screen projector monitoring process; wherein the trigger message may be used to indicate that the wireless screen projector is currently plugged into the computer; if the trigger message is received through the second screen projector client process, the display screen is captured through the second screen projector client process, and the display screen is projected through the wireless screen projector.
[0033] Exemplarily, before the computer switches from the first account to the second account, when the computer is running under the first account, if the wireless screen projector has been inserted into the computer and there is no screen projector management program under the first account, the screen projector management program in the wireless screen projector can be downloaded to the computer as the first screen projector management program, so that the first screen projector management process corresponding to the first screen projector management program is run under the first account. If the first screen projector management program already exists under the first account, the first screen projector management process corresponding to the first screen projector management program is directly run under the first account.
[0034] In addition, after the computer switches from the first account to the second account, when the computer is running under the second account, if the wireless screen projector has been inserted into the computer and there is no screen projector management program under the second account, the screen projector management program in the wireless screen projector can be downloaded to the computer as the second screen projector management program, so that the second screen projector management process corresponding to the second screen projector management program is run under the second account. If the second screen projector management program already exists under the second account (for example, if the second account has been logged in to the computer, there will be a second screen projector management program under the second account), the second screen projector management process corresponding to the second screen projector management program is directly run under the second account.
[0035] It can be seen from the above technical solutions that in the embodiment of the present application, when multiple accounts are created on the computer, when the computer switches from one account to another account, the display screen can be projected through the wireless screen projector, and the display screen can be viewed in real time without problems such as black screen, and the use experience of screen projection is better. In a multi-account environment of a computer, by judging whether the current account is an account in use, it is possible to avoid the simultaneous execution and mutual influence of multiple screen projector management processes, avoid functional disorders, and the screen projector management process under the account not in use does not execute the screen projection detection process (that is, it is prohibited to collect the display screen through the screen projector management process for projection), thereby saving system resources.
[0036] In the embodiment of the present application, a process management method in a multi-account environment is proposed, which can be applied to a computer. The computer has created multiple accounts that have run the projection device management process, see Figure 2 FIG. 4 is a flow chart of the method, which may include the following steps:
[0037] Step 201: For each account, if the screen projector management process of the account detects that the account is currently unused, the screen projector management process is prohibited from collecting the display screen for screen projection.
[0038] Step 202: If the screen projector management process detects that the account is currently in use and the screen projector management process detects that the wireless screen projector has been plugged into the computer, the screen projector management process captures the display image and projects the display image through the wireless screen projector.
[0039] Exemplarily, detecting that the account is currently unused through the screen projector management process of the account may include but is not limited to: if the screen projector management process detects that the display of the account is currently in a locked screen state, then the account is detected as currently unused. Detecting that the account is currently in use through the screen projector management process may include but is not limited to: if the screen projector management process detects that the display of the account is currently in an unlocked screen state, then the account is detected as currently in use.
[0040] Exemplarily, prohibiting the use of the screen projector management process to capture the display screen for screen projection may include but is not limited to: when the account is currently an unused account, setting an inactive state for the screen projector management process; in the inactive state, stopping the detection of whether the wireless screen projector has been plugged into the computer through the screen projector management process; if it is not detected whether the wireless screen projector has been plugged into the computer, then prohibiting the use of the screen projector management process to capture the display screen for screen projection.
[0041] Exemplarily, collecting the display image through the screen projector management process may include but is not limited to: when the account is currently in use, setting the active state for the screen projector management process; when the screen projector management process is in the active state, the screen projector management process can be used to detect whether the wireless screen projector has been inserted into the computer; when the screen projector management process detects that the wireless screen projector has been inserted into the computer, the display image is collected through the screen projector management process.
[0042] Exemplarily, the screen projector management process includes a screen projector monitoring process and a screen projector client process. If it is detected through the screen projector monitoring process that the account is currently unused, the screen projector monitoring process can be stopped from detecting whether the wireless screen projector has been inserted into the computer, and the screen projector monitoring process can be prohibited from sending a trigger message to the screen projector client process; wherein, the trigger message can be used to indicate that the wireless screen projector is currently inserted into the computer; if the trigger message is not received through the screen projector client process, the screen projector client process can be prohibited from capturing the display screen for projection.
[0043] Exemplarily, the screen projector management process includes a screen projector monitoring process and a screen projector client process. If it is detected through the screen projector monitoring process that the account is currently in use, the screen projector monitoring process detects whether the wireless screen projector has been inserted into the computer; if so, a trigger message is sent to the screen projector client process through the screen projector monitoring process; wherein the trigger message is used to indicate that the wireless screen projector is currently inserted into the computer; if the trigger message is received through the screen projector client process, the display screen is captured through the screen projector client process, and the display screen is projected through the wireless screen projector.
[0044] For example, when the computer is running in the account, if the wireless screen projector has been inserted into the computer and the screen projector management program does not exist under the account, the screen projector management program in the wireless screen projector is downloaded to the computer as the screen projector management program, and the screen projector management process corresponding to the screen projector management program is run under the account. Alternatively, if the screen projector management program exists under the account, the screen projector management process corresponding to the screen projector management program is directly run under the account.
[0045] Exemplarily, the screen projector management process may include a screen projector monitoring process and a screen projector client process. If it is detected through the screen projector monitoring process that the account is currently not in use, the screen projector monitoring process is set to an inactive state; in the inactive state, the screen projector monitoring process can be stopped from detecting whether the wireless screen projector has been plugged into the computer, and the screen projector monitoring process can be prohibited from sending a trigger message to the screen projector client process; if the trigger message is not received through the screen projector client process, the screen projector client process is prohibited from capturing the display screen for projection.
[0046] If it is detected through the screen projector monitoring process that the account is currently in use, the active state is set for the screen projector monitoring process; in the active state, the screen projector monitoring process is used to detect whether the wireless screen projector has been inserted into the computer; if so, a trigger message is sent to the screen projector client process through the screen projector monitoring process; if the trigger message is received through the screen projector client process, the display screen is captured through the screen projector client process, and the display screen is projected through the wireless screen projector.
[0047] It can be seen from the above technical solutions that in the embodiment of the present application, when multiple accounts are created on the computer, when the computer switches from one account to another account, the display screen can be projected through the wireless screen projector, and the display screen can be viewed in real time without problems such as black screen, and the use experience of screen projection is better. In a multi-account environment of a computer, by judging whether the current account is an account in use, it is possible to avoid the simultaneous execution and mutual influence of multiple screen projector management processes, avoid functional disorders, and the screen projector management process under the account not in use does not execute the screen projection detection process (that is, it is prohibited to collect the display screen through the screen projector management process for projection), thereby saving system resources.
[0048] The above technical solutions of the embodiments of the present application are described below in combination with specific application scenarios.
[0049] When using a wireless screen projector on a computer, the computer can capture the display image and transmit the display image to the wireless screen projector, which will then project the display image.
[0050] However, if multiple accounts are created on a computer, when the computer switches from one account to another, the display screen may not be projected through the wireless screen projector, the display screen may not be viewed in real time, and there may be problems such as a black screen, resulting in a poor screen projection experience.
[0051] For example, when the computer switches from account A to account B, the process under account A will capture the display screen and project it through the wireless screen projector. The process under account B will also capture the display screen and project it through the wireless screen projector.
[0052] When the wireless screen projector obtains the display images under these two accounts, it usually displays the display image under account A before the switch, while the display image under account A is black (when the computer switches from account A to account B, the display image of account A is black), resulting in a black screen being projected, which in turn makes it impossible to watch the display image in real time, resulting in problems such as a black screen, and the user experience of screen projection is poor.
[0053] In response to the above findings, a process management method is proposed in an embodiment of the present application in a multi-account environment. By determining whether the current account is the account in use, it is possible to avoid the simultaneous execution of multiple screen projector management processes and the mutual influence. When the computer switches from one account to another, the display screen can be projected through a wireless screen projector and the display screen can be viewed in real time without problems such as black screen.
[0054] In an embodiment of the present application, a process management method is proposed in a multi-account environment. The method can be applied to a computer (also referred to as a computer), such as a desktop computer, a laptop computer, a PC, etc. There is no restriction on the type of the computer, and it can be any device that supports a wireless screen projection device.
[0055] A wireless screen projector is a device with a wireless screen projection function. The wireless screen projector can obtain the computer's display screen and project the display screen to a display device (such as a large-screen display, TV, etc.). For example, the wireless screen projector can be inserted into a computer, such as through a USB interface or other types of interfaces, and then obtain the computer's display screen and project the display screen to the display device.
[0056] A computer can create multiple accounts that can be used. For example, a computer can create account A, account B, and account C. A user can log in to account A and operate the computer under account A. A user can log in to account B and operate the computer under account B, and so on.
[0057] For each account, when the computer is running in the account, if the wireless screen projector has been inserted into the computer and the screen projector management program does not exist under the account, the screen projector management program in the wireless screen projector can be downloaded to the computer. For example, the wireless screen projector stores the screen projector management program, and when the user uses the wireless screen projector on the computer, the screen projector management program will be automatically downloaded to the computer (such as downloading the screen projector management program to the user directory of the computer's C drive, and the user directory corresponds to the account, so that the screen projector management program downloaded when the account is running corresponds to the account, and thus the running screen projector management process corresponds to the account). In this way, the process management method in a multi-account environment can be implemented based on the screen projector management program stored locally on the computer.
[0058] When the computer uses the wireless screen projector for the first time under account A, the screen projector management program will be automatically downloaded to the computer as the screen projector management program of account A (recorded as screen projector management program a1). Each time the computer runs under account A, the screen projector management program a1 implements the process management method in a multi-account environment. For example, when the computer creates account A, the computer's C drive will have a user directory a of account A, and the screen projector management program a1 will be downloaded to the user directory a (used to store programs related to account A, and account A can run programs under user directory a). In this way, when logging in to account A, the screen projector management program a1 under user directory a can be run. After logging in to account A, the screen projector management program a1 is always in running state. Even if you switch from account A to other accounts, the screen projector management program a1 is still in running state until the computer is shut down or restarted, at which point the screen projector management program a1 will stop running.
[0059] When the computer uses the wireless screen projector for the first time under account B, the screen projector management program will be automatically downloaded to the computer as the screen projector management program b1 of account B. Each time the computer runs under account B, the screen projector management program b1 implements the process management method in a multi-account environment, and so on. For example, when the computer creates account B, the user directory b of account B will exist on the computer's C drive, and the screen projector management program b1 will be downloaded to the user directory b. In this way, when logging in to account B, the screen projector management program b1 under the user directory b can be run. After logging in to account B, the screen projector management program b1 is always in running state. Even if you switch from account B to other accounts, the screen projector management program b1 is still in running state until the computer is shut down or restarted, at which point the screen projector management program b1 will stop running.
[0060] Exemplarily, when the computer runs the screen projector management program, it will start the screen projector management process, that is, run the screen projector management process corresponding to the screen projector management program (the functions of the screen projector management program are implemented through the screen projector management process), and implement the process management method in a multi-account environment through the screen projector management process. For example, each time the computer runs under account A, it runs the screen projector management process a2 corresponding to the screen projector management program a1, and the process management method in a multi-account environment is implemented by the screen projector management process a2. Each time the computer runs under account B, it runs the screen projector management process b2 corresponding to the screen projector management program b1, and the process management method in a multi-account environment is implemented by the screen projector management process b2, and so on.
[0061] Exemplarily, the screen projector management program can be a program, and the screen projector management program can also include a screen projector monitoring program and a screen projector client program at the same time. For the convenience of description, the screen projector monitoring program and the screen projector client program are used as examples for explanation. The computer can run the screen projector monitoring process corresponding to the screen projector monitoring program, and run the screen projector client process corresponding to the screen projector client program.
[0062] It should be noted that if the screen projector management program is one program, the functions of the screen projector monitoring program and the screen projector client program are completed by one program (screen projector management program), and the functions of the screen projector monitoring process and the screen projector client process are completed by one process (screen projector management process).
[0063] In the above application scenario, a process management method in a multi-account environment is proposed in an embodiment of the present application. The computer creates multiple accounts that have run the projector management process. The projector monitoring process and the projector client process are run under each account. For each account, the projector monitoring process and the projector client process under the account need to execute the process management method in a multi-account environment. For the convenience of description, the processing process under one account is taken as an example, and the account is called the current account. The processing process under other accounts is similar. See Figure 3 FIG. 1 is a flow chart of a process management method in a multi-account environment. The method may include:
[0064] Step 301: Run the screen projection device monitoring process under the current account.
[0065] For example, when the user logs in to account A, that is, when the computer runs under account A, the computer runs the screen projector monitoring process under account A. When the user logs in to account B, that is, when the computer switches from account A to account B, the computer runs the screen projector monitoring process under account B. It should be noted that if the computer is not shut down or restarted, when it switches to account B, the screen projector monitoring process under account A is still running. When the user logs in to account C, that is, when the computer switches from account B to account C, the computer runs the screen projector monitoring process under account C. When it switches to account C, the screen projector monitoring process under account A is still running, and the screen projector monitoring process under account B is still running.
[0066] Step 302: Detect whether the current account is the one being used by monitoring the process of the screen projector.
[0067] If yes, that is, the current account is an in-use account, it means that the computer is running under the current account, and step 303 can be executed. If no, that is, the current account is an unused account, it means that the computer is not running under the current account, but under another account, and step 305 can be executed.
[0068] Exemplarily, the screen projection monitoring process can be used to detect whether the display of the current account is in a locked screen state. If the screen projection monitoring process detects that the display of the current account is in a locked screen state, it is detected that the current account is an unused account. For example, in a multi-account environment of a computer, if the display of the current account is in a locked screen state, it means that the computer is not running under the current account, but under another account. For example, the current account's display is in a locked screen state means that the current account's display is a default screen (such as a black screen or a specified image, etc.), rather than a real-time display screen.
[0069] When the screen projection monitoring process is used to detect whether the display of the current account is in a locked screen state, if the screen projection monitoring process detects that the display of the current account is in an unlocked screen state, it is detected that the current account is using the account. For example, in a multi-account environment of a computer, if the display of the current account is in an unlocked screen state, it means that the computer is running under the current account. For example, the display of the current account is in an unlocked screen state means that the display of the current account displays the picture in real time.
[0070] In one possible implementation, a lock screen status query request message is sent to the operating system through the screen projector monitoring process, and the lock screen status query request message may include the account information of the current account, and the lock screen status query request message is used to query the lock screen status of the display of the current account. The lock screen status query response message returned by the operating system is received through the screen projector monitoring process, and the lock screen status query response message includes the lock screen status of the display of the current account, such as the display of the current account is in an unlocked screen state, or the display of the current account is in an unlocked screen state. On this basis, based on this lock screen status query response message, it is possible to detect whether the display of the current account is in a locked screen state through the screen projector monitoring process.
[0071] Taking the computer using Windows operating system as an example, the Windows operating system can provide a lock screen status query interface (the lock screen status query interface can include a session information query interface, and the session information query interface can be WTSQuerySessionInformationW). On this basis, the screen projector monitoring process obtains the lock screen status of the current account's display through the lock screen status query interface. For example, the lock screen status query request message and the lock screen status query response message are both messages based on WTSQuerySessionInformationW. Of course, WTSQuerySessionInformationW is just an example and there is no restriction on this, as long as the screen projector monitoring process can obtain the lock screen status of the current account's display.
[0072] Step 303: If it is detected through the screen projector monitoring process that the current account is the account in use and the computer is running under the current account, the screen projector monitoring process detects whether the wireless screen projector has been inserted into the computer.
[0073] For example, when the wireless screen projector is plugged into the computer, the wireless screen projector will be used as an external device of the computer, and the computer will record the unique identifier of the wireless screen projector. Conversely, if the wireless screen projector is not plugged into the computer, the computer will not record the unique identifier of the wireless screen projector.
[0074] On this basis, the screen projector monitoring process can be used to detect whether the computer already has a unique identifier of the wireless screen projector. If so, the screen projector monitoring process detects that the wireless screen projector has been plugged into the computer. If not, the screen projector monitoring process detects that the wireless screen projector has not been plugged into the computer.
[0075] In order to detect whether the computer already has a unique identifier for the wireless screen projector, the screen projector monitoring process can create a detection resource, and detect whether the computer already has a unique identifier for the wireless screen projector through the detection resource. For example, when the wireless screen projector is inserted into the computer through the USB interface, the unique identifier of the wireless screen projector can be detected through HID (Human Interface Device). Therefore, the screen projector monitoring process can create a HID detection resource, and detect whether the computer already has a unique identifier for the wireless screen projector through the HID detection resource. In this embodiment, there is no restriction on the type of this detection resource.
[0076] Of course, the above is just an example of detecting whether the wireless screen projector has been plugged into the computer. There is no limitation to this, as long as the screen projector monitoring process can detect whether the wireless screen projector has been plugged into the computer.
[0077] For example, if the screen projector monitoring process detects that the wireless screen projector has been plugged into the computer, step 304 can be executed. If the screen projector monitoring process detects that the wireless screen projector has not been plugged into the computer, the processing of the current processing cycle can be terminated, and step 302 is returned to wait for the next processing cycle, and the screen projector monitoring process continues to detect whether the current account is an account in use, and so on.
[0078] Step 304: If the screen projector monitoring process detects that the wireless screen projector has been plugged into the computer, the screen projector monitoring process sends a trigger message to the screen projector client process, and the trigger message is used to indicate that the wireless screen projector is currently plugged into the computer. If the trigger message is received by the screen projector client process, the display screen is collected by the screen projector client process, and the display screen is projected through the wireless screen projector.
[0079] Exemplarily, if the screen projector monitoring process detects that the current account is an active account, and the screen projector monitoring process detects that the wireless screen projector has been plugged into the computer, the screen projector monitoring process can send a trigger message to the screen projector client process. When the screen projector client process receives the trigger message, it can capture the display screen (i.e., the screen being displayed on the display). On this basis, if the screen projector client process has established a connection with the wireless screen projector, the screen projector client process directly sends the display screen to the wireless screen projector. If the screen projector client process has not established a connection with the wireless screen projector, the screen projector client process first establishes a connection with the wireless screen projector, and then sends the display screen to the wireless screen projector.
[0080] After obtaining the display screen, the wireless screen projector can project the display screen (such as wireless screen projection). For example, the wireless screen projector projects the display screen to a display device (such as a large-screen display, TV, etc.). There is no restriction on the projection method of the wireless screen projector, as long as it can complete the projection function.
[0081] Exemplarily, a trigger message is sent to the projector client process through the projector monitoring process, and after the display screen is captured by the projector client process and the display screen is projected through the wireless projector, the processing process of the current processing cycle can be ended, and the process returns to step 302, waiting for the next processing cycle, and continuing to detect whether the current account is an account in use through the projector monitoring process, and so on.
[0082] In a possible implementation, if it is detected through the screen projector monitoring process that the current account is the account in use, the active state can be set for the screen projector monitoring process, that is, when the current account is the account in use, the active state is set for the screen projector monitoring process, and the active state indicates that the current account is the account in use. On this basis, in step 303, the state of the screen projector monitoring process can be queried through the screen projector monitoring process. If the state of the screen projector monitoring process is the active state, the screen projector monitoring process is used to detect whether the wireless screen projector has been inserted into the computer. That is to say, when the screen projector monitoring process is in the active state, the screen projector monitoring process is used to detect whether the wireless screen projector has been inserted into the computer. When the wireless screen projector has been inserted into the computer, a trigger message is sent to the screen projector client process through the screen projector monitoring process. If the trigger message is received through the screen projector client process, the display screen is collected through the screen projector client process, and the display screen is projected through the wireless screen projector.
[0083] Step 305: If it is detected through the screen projector monitoring process that the current account is an unused account, that is, the computer is not running under the current account, it is prohibited to capture the display screen for screen projection through the screen projector client process.
[0084] Exemplarily, if the current account is detected as an unused account through the screen projector monitoring process, the screen projector monitoring process is stopped from detecting whether the wireless screen projector has been plugged into the computer (i.e., there is no need to detect whether the wireless screen projector has been plugged into the computer), and the screen projector monitoring process is prohibited from sending a trigger message to the screen projector client process (i.e., the screen projector monitoring process will not send a trigger message to the screen projector client process, and the trigger message indicates that the wireless screen projector is currently plugged into the computer). On this basis, if the trigger message is not received through the screen projector client process, it is prohibited to collect the display screen for projection through the screen projector client process, that is, the screen projector client process will not collect the display screen (i.e., the screen being displayed on the display), nor will it send the display screen to the wireless screen projector, and the screen projector client process is in a non-working state.
[0085] It should be noted that if the screen projector client process has established a connection with the wireless screen projector, you can also disconnect the connection between the screen projector client process and the wireless screen projector to avoid erroneous transmission of the display image.
[0086] For example, if the screen projector monitoring process detects that the current account is an unused account, the processing process of the current processing cycle can be ended, returning to step 302, waiting for the next processing cycle, and continuing to detect whether the current account is an in-use account through the screen projector monitoring process, and so on.
[0087] In a possible implementation, if it is detected through the screen projector monitoring process that the current account is an unused account, an inactive state can be set for the screen projector monitoring process, that is, when the current account is an unused account, an inactive state is set for the screen projector monitoring process, and the inactive state indicates that the current account is an unused account. On this basis, in step 305, the status of the screen projector monitoring process can be queried through the screen projector monitoring process. If the status of the screen projector monitoring process is an inactive state, the screen projector monitoring process can be stopped from detecting whether the wireless screen projector has been inserted into the computer, and the screen projector monitoring process can be prohibited from sending a trigger message to the screen projector client process. If the trigger message is not received through the screen projector client process, it is prohibited to collect the display screen for projection through the screen projector client process.
[0088] In an embodiment of the present application, a process management method in a multi-account environment is proposed. A computer creates multiple accounts that have run a projector management process. A projector monitoring process and a projector client process are run under each account. The projector monitoring processes run under different accounts can be the same, and the projector client processes run under different accounts can be the same. Taking the computer creating account A, account B, account C, and account D as an example, account A runs the projector monitoring process a2-1 and the projector client process a2-2, account B runs the projector monitoring process b2-1 and the projector client process b2-2, account C runs the projector monitoring process c2-1 and the projector client process c2-2, and account D runs the projector monitoring process d2-1 and the projector client process d2-2. See. Figure 4 As shown, it is a flowchart of the process management method in a multi-account environment, which may include:
[0089] Case 1: The user logs in to account A and runs the screen projector monitoring process a2-1 under account A. Account B, account C, and account D have not been logged in yet, and the screen projector monitoring process b2-1 under account B, the screen projector monitoring process c2-1 under account C, and the screen projector monitoring process d2-1 under account D are not running. It should be noted that the screen projector monitoring process b2-1 under account B is not running, which means that the screen projector monitoring process b2-1 has not been downloaded in account B, so the screen projector monitoring process b2-1 is not running. Alternatively, the screen projector monitoring process b2-1 has been downloaded in account B, however, after the computer is restarted, because the user has not logged in to account B, the screen projector monitoring process b2-1 under account B is not running. Similarly, the screen projector monitoring process c2-1 and the screen projector monitoring process d2-1 are not running, and the reasons are similar to those of the screen projector monitoring process b2-1.
[0090] The screen projector monitoring process a2-1 is used to detect whether account A is the account in use. If the screen projector monitoring process a2-1 detects that account A is the account in use, the screen projector monitoring process a2-1 detects whether the wireless screen projector has been inserted into the computer. If the screen projector monitoring process a2-1 detects that the wireless screen projector has been inserted into the computer, the screen projector monitoring process a2-1 sends a trigger message to the screen projector client process a2-2. If the trigger message is received through the screen projector client process a2-2, the display screen is collected through the screen projector client process a2-2, and the display screen is projected through the wireless screen projector.
[0091] Case 2: The user logs in to account B (that is, the computer switches from account A to account B, account A is the first account, and account B is the second account), and runs the projector monitoring process a2-1 under account A and the projector monitoring process b2-1 under account B. Account C and account D have not yet been logged in, and the projector monitoring process c2-1 under account C and the projector monitoring process d2-1 under account D are not running.
[0092] The screen projector monitoring process a2-1 is used to detect whether account A is an active account. If it is detected that account A is an unused account, it is prohibited to detect whether the wireless screen projector has been plugged into the computer through the screen projector monitoring process a2-1, and it is also prohibited to send a trigger message to the screen projector client process a2-2 through the screen projector monitoring process a2-1. Since the screen projector client process a2-2 does not receive the trigger message, it is prohibited to collect the display screen through the screen projector client process a2-2, and the screen projector client process a2-2 is in an inoperative state.
[0093] The screen projector monitoring process b2-1 is used to detect whether account B is the account in use. If the screen projector monitoring process b2-1 detects that account B is the account in use, the screen projector monitoring process b2-1 detects whether the wireless screen projector has been inserted into the computer. If the screen projector monitoring process b2-1 detects that the wireless screen projector has been inserted into the computer, the screen projector monitoring process b2-1 sends a trigger message to the screen projector client process b2-2. If the trigger message is received through the screen projector client process b2-2, the display screen is collected through the screen projector client process b2-2, and the display screen is projected through the wireless screen projector.
[0094] Case 3: The user logs in to account C (that is, the computer switches from account B to account C, account B is the first account, and account C is the second account), and runs the projector monitoring process a2-1 under account A, the projector monitoring process b2-1 under account B, and the projector monitoring process c2-1 under account C. Since account D has not been logged in, the projector monitoring process d2-1 under account D is not run.
[0095] The screen projector monitoring process a2-1 is used to detect whether account A is an active account. If it is detected that account A is an unused account, it is prohibited to detect whether the wireless screen projector has been plugged into the computer through the screen projector monitoring process a2-1, and it is also prohibited to send a trigger message to the screen projector client process a2-2 through the screen projector monitoring process a2-1. Since the screen projector client process a2-2 does not receive the trigger message, it is prohibited to collect the display screen through the screen projector client process a2-2, and the screen projector client process a2-2 is in an inoperative state.
[0096] The screen projector monitoring process b2-1 is used to detect whether account B is an active account. If it is detected that account B is an unused account, it is prohibited to detect whether the wireless screen projector has been plugged into the computer through the screen projector monitoring process b2-1, and it is also prohibited to send a trigger message to the screen projector client process b2-2 through the screen projector monitoring process b2-1. Since the screen projector client process b2-2 does not receive the trigger message, it is prohibited to collect the display screen through the screen projector client process b2-2, and the screen projector client process b2-2 is in an inoperative state.
[0097] The screen projector monitoring process c2-1 is used to detect whether account C is the account in use. If the screen projector monitoring process c2-1 detects that account C is the account in use, the screen projector monitoring process c2-1 detects whether the wireless screen projector has been inserted into the computer. If the screen projector monitoring process c2-1 detects that the wireless screen projector has been inserted into the computer, the screen projector monitoring process c2-1 sends a trigger message to the screen projector client process c2-2. If the trigger message is received through the screen projector client process c2-2, the display screen is collected through the screen projector client process c2-2, and the display screen is projected through the wireless screen projector.
[0098] Case 4: The user logs in to account D (that is, the computer switches from account C to account D, account C is the first account, and account D is the second account), and runs the projector monitoring process a2-1 under account A, the projector monitoring process b2-1 under account B, the projector monitoring process c2-1 under account C, and the projector monitoring process d2-1 under account D, that is, the projector monitoring processes under the four accounts run simultaneously.
[0099] The screen projector monitoring process a2-1 is used to detect whether account A is an active account. If it is detected that account A is an unused account, it is prohibited to detect whether the wireless screen projector has been plugged into the computer through the screen projector monitoring process a2-1, and it is also prohibited to send a trigger message to the screen projector client process a2-2 through the screen projector monitoring process a2-1. Since the screen projector client process a2-2 does not receive the trigger message, it is prohibited to capture the display screen through the screen projector client process a2-2, and the screen projector client process a2-2 is in a non-working state. The processing procedures of the screen projector monitoring process b2-1 and the screen projector monitoring process c2-1 are similar and will not be repeated here.
[0100] The screen projector monitoring process d2-1 is used to detect whether account D is an account in use. If the screen projector monitoring process d2-1 detects that account D is an account in use, the screen projector monitoring process d2-1 detects whether the wireless screen projector has been inserted into the computer. If the screen projector monitoring process d2-1 detects that the wireless screen projector has been inserted into the computer, the screen projector monitoring process d2-1 sends a trigger message to the screen projector client process d2-2. If the trigger message is received through the screen projector client process d2-2, the display screen is captured through the screen projector client process d2-2, and the display screen is projected through the wireless screen projector.
[0101] For example, when a wireless screen projector is plugged into a computer, since the wireless screen projector is plugged into the computer through a USB interface and the management of the USB device is executed by the kernel and has nothing to do with the account, the screen projector monitoring process under each account can detect the insertion of the wireless screen projector. When multiple screen projector monitoring processes detect the insertion of the wireless screen projector, it will lead to the inability to view the display image in real time, and there will be problems such as a black screen.
[0102] To this end, in this embodiment, for each projector monitoring process, by detecting whether the account is the account in use, only one projector monitoring process detects whether the wireless projector is inserted, while other projector monitoring processes will not detect whether the wireless projector is inserted, thereby avoiding problems such as black screen.
[0103] It can be seen from the above technical solutions that in the embodiment of the present application, when multiple accounts are created on the computer, when the computer switches from one account to another account, the display screen can be projected through the wireless screen projector, and the display screen can be viewed in real time without problems such as black screen, and the use experience of screen projection is better. In a multi-account environment of a computer, by judging whether the current account is an account in use, it is possible to avoid the simultaneous execution and mutual influence of multiple screen projector monitoring processes, avoid functional disorders, and the screen projector management process under the account not in use does not execute the screen projection detection process (that is, it is prohibited to collect the display screen through the screen projector management process for projection), thereby saving system resources.
[0104] When there are multiple screen projector monitoring processes running on the computer at the same time, when you log in to the corresponding account, only the screen projector monitoring process under this account will create resources and detect whether the wireless screen projector is inserted (for example, the screen projector monitoring process under this account sets this screen projector monitoring process to active state, and in active state, it will create resources and detect whether the wireless screen projector is inserted). The screen projector monitoring processes under other accounts will not create resources to detect whether the wireless screen projector is inserted (for example, the screen projector monitoring processes under other accounts set this screen projector monitoring process to inactive state, and in inactive state, it will not create resources or detect whether the wireless screen projector is inserted), avoiding the creation of unnecessary resources.
[0105] Based on the same application concept as the above method, an embodiment of the present application proposes a process management device in a multi-account environment, which is applied to a computer. The computer has a first account and a second account. The first account runs a first screen projector management process, and the second account runs a second screen projector management process. Figure 5A FIG. 1 is a schematic diagram of the structure of the device, and the device may include:
[0106] A detection module 511 is used to detect whether the first account is currently an unused account through the first screen projector management process when the computer switches from the first account to the second account; detect whether the second account is currently an in-use account through the second screen projector management process, and detect whether the wireless screen projector has been plugged into the computer through the second screen projector management process;
[0107] Processing module 512 is used to prohibit the capture of the display screen for screen projection through the first screen projector management process if it is detected through the first screen projector management process that the first account is currently an unused account; if it is detected through the second screen projector management process that the second account is currently an in-use account, and it is detected through the second screen projector management process that a wireless screen projector has been inserted into the computer, the display screen is captured through the second screen projector management process, and the display screen is projected through the wireless screen projector.
[0108] Exemplarily, when the detection module 511 detects that the first account is currently not in use through the first screen projector management process, it is specifically used to: if it is detected through the first screen projector management process that the display of the first account is currently in a locked screen state, it is detected that the first account is currently not in use. When the detection module 511 detects that the second account is currently in use through the second screen projector management process, it is specifically used to: if it is detected through the second screen projector management process that the display of the second account is currently in an unlocked screen state, it is detected that the second account is currently in use.
[0109] Exemplarily, when the processing module 512 prohibits the collection of the display screen for projection through the first screen projector management process, it is specifically used to: when the first account is currently an unused account, set an inactive state for the first screen projector management process; in the inactive state, stop detecting whether the wireless screen projector has been inserted into the computer through the first screen projector management process; when it is not detected whether the wireless screen projector has been inserted into the computer, prohibit the collection of the display screen for projection through the first screen projector management process. When the processing module 512 collects the display screen through the second screen projector management process, it is specifically used to: when the second account is currently an in-use account, set an active state for the second screen projector management process; in the active state, detect whether the wireless screen projector has been inserted into the computer through the second screen projector management process; when the second screen projector management process detects that the wireless screen projector has been inserted into the computer, collect the display screen through the second screen projector management process.
[0110] Exemplarily, the first screen projector management process includes a first screen projector monitoring process and a first screen projector client process. Based on this, the detection module 511 is also used to stop detecting whether the wireless screen projector has been inserted into the computer through the first screen projector monitoring process if it is detected through the first screen projector monitoring process that the first account is currently an unused account; the processing module 512 is also used to prohibit sending a trigger message to the first screen projector client process through the first screen projector monitoring process; wherein the trigger message is used to indicate that the wireless screen projector is currently inserted into the computer; the processing module 512 is also used to prohibit collecting the display screen for projection through the first screen projector client process if the trigger message is not received through the first screen projector client process.
[0111] Exemplarily, the second screen projector management process includes a second screen projector monitoring process and a second screen projector client process, and the detection module 511 is also used to detect whether the wireless screen projector has been inserted into the computer through the second screen projector monitoring process if it is detected through the second screen projector monitoring process that the second account is currently in use; the processing module 512 is also used to send a trigger message to the second screen projector client process through the second screen projector monitoring process if the wireless screen projector has been inserted into the computer; wherein the trigger message is used to indicate that the wireless screen projector is currently inserted into the computer; if the trigger message is received through the second screen projector client process, the display screen is captured through the second screen projector client process, and the display screen is projected through the wireless screen projector.
[0112] Exemplarily, the processing module 512 is further configured to, before the computer switches from the first account to the second account, when the computer is running under the first account, if the wireless screen projector has been inserted into the computer and there is no screen projector management program under the first account, download the screen projector management program in the wireless screen projector to the computer as the first screen projector management program, and run the first screen projector management process corresponding to the first screen projector management program under the first account;
[0113] The processing module 512 is also used for, after the computer switches from the first account to the second account, when the computer is running under the second account, if the wireless screen projector has been inserted into the computer and there is no screen projector management program under the second account, then the screen projector management program in the wireless screen projector is downloaded to the computer as a second screen projector management program, and a second screen projector management process corresponding to the second screen projector management program is run under the second account.
[0114] Based on the same application concept as the above method, the embodiment of the present application proposes a process management device in a multi-account environment, which is applied to a computer, wherein the computer has created multiple accounts that have run the projection device management process, see Figure 5B FIG. 1 is a schematic diagram of the structure of the device, wherein the device comprises:
[0115] The detection module 521 is used to detect, for each account, whether the account is currently an unused account through the screen projection device management process of the account; if it is detected through the screen projection device management process that the account is currently in use, then detect through the screen projection device management process whether the wireless screen projection device has been inserted into the computer;
[0116] Processing module 522 is used to prohibit the capture of the display screen for screen projection through the screen projector management process if it is detected through the screen projector management process of the account that the account is currently not in use; if it is detected through the screen projector management process that the account is currently in use, and it is detected through the screen projector management process that a wireless screen projector has been inserted into the computer, the display screen is captured through the screen projector management process, and the display screen is projected through the wireless screen projector.
[0117] Exemplarily, when the detection module 521 detects whether the account is currently an unused account through the screen projection device management process, it is specifically used to: if it is detected through the screen projection device management process that the display of the account is currently in a locked screen state, it is detected that the account is currently an unused account. If it is detected through the screen projection device management process that the display of the account is currently in an unlocked screen state, it is detected that the account is currently in use.
[0118] Exemplarily, when the processing module 522 prohibits the use of the projector management process to collect the display screen for projection, it is specifically used to: when the account is currently an unused account, set an inactive state for the projector management process; in the inactive state, stop detecting whether the wireless projector has been plugged into the computer through the projector management process; when it is not detected whether the wireless projector has been plugged into the computer, prohibiting the use of the projector management process to collect the display screen for projection.
[0119] Exemplarily, when the processing module 522 collects the display screen through the screen projector management process, it is specifically used to: set the active state for the screen projector management process when the account is currently in use; when the screen projector management process is in the active state, detect whether the wireless screen projector has been inserted into the computer through the screen projector management process; when the screen projector management process detects that the wireless screen projector has been inserted into the computer, collect the display screen through the screen projector management process.
[0120] Exemplarily, the screen projector management process includes a screen projector monitoring process and a screen projector client process. The detection module 521 is also used to stop detecting whether the wireless screen projector has been inserted into the computer through the screen projector monitoring process if it is detected through the screen projector monitoring process that the account is currently an unused account. The processing module 522 is also used to prohibit sending a trigger message to the screen projector client process through the screen projector monitoring process; wherein the trigger message can be used to indicate that the wireless screen projector is currently inserted into the computer; the processing module 522 is also used to prohibit collecting the display screen for projection through the screen projector client process if the trigger message is not received through the screen projector client process.
[0121] Exemplarily, the screen projector management process includes a screen projector monitoring process and a screen projector client process. The detection module 521 is also used to detect whether the wireless screen projector has been inserted into the computer through the screen projector monitoring process if it is detected through the screen projector monitoring process that the account is currently in use; the processing module 522 is also used to send a trigger message to the screen projector client process through the screen projector monitoring process if the wireless screen projector has been inserted into the computer; wherein the trigger message is used to indicate that the wireless screen projector is currently inserted into the computer; if the trigger message is received through the screen projector client process, the display screen is captured through the screen projector client process, and the display screen is projected through the wireless screen projector.
[0122] Exemplarily, the processing module 522 is also used to, when the computer is running in the account, if the wireless screen projector has been inserted into the computer and the screen projector management program does not exist under the account, download the screen projector management program in the wireless screen projector to the computer as the screen projector management program, and run the screen projector management process corresponding to the screen projector management program under the account.
[0123] Exemplarily, the screen projector management process includes a screen projector monitoring process and a screen projector client process. The detection module 521 is also used to set an inactive state for the screen projector monitoring process if it is detected through the screen projector monitoring process that the account is currently an unused account; in the inactive state, the screen projector monitoring process is stopped from detecting whether the wireless screen projector has been inserted into the computer; the processing module 522 is also used to prohibit the sending of a trigger message to the screen projector client process through the screen projector monitoring process; if the trigger message is not received through the screen projector client process, the capture of the display screen for projection through the screen projector client process is prohibited. The detection module 521 is also used to set an active state for the screen projector monitoring process if it is detected through the screen projector monitoring process that the account is currently in use; in the active state, the screen projector monitoring process is used to detect whether the wireless screen projector has been inserted into the computer; the processing module 522 is also used to send a trigger message to the screen projector client process through the screen projector monitoring process if the wireless screen projector has been inserted into the computer; if the trigger message is received through the screen projector client process, the display screen is captured through the screen projector client process, and the display screen is projected through the wireless screen projector.
[0124] Based on the same application concept as the above method, a computer device is proposed in the embodiment of the present application, see Figure 6 As shown, it may include: a processor 61 and a machine-readable storage medium 62, the machine-readable storage medium 62 storing machine-executable instructions that can be executed by the processor 61; the processor 61 is used to execute the machine-executable instructions to implement the process management method in a multi-account environment disclosed in the above example of this application.
[0125] Based on the same application concept as the above method, an embodiment of the present application also provides a machine-readable storage medium, on which a number of computer instructions are stored. When the computer instructions are executed by a processor, the process management method in a multi-account environment disclosed in the above example of the present application can be implemented.
[0126] The above-mentioned machine-readable storage medium may be any electronic, magnetic, optical or other physical storage device, which may contain or store information, such as executable instructions, data, etc. For example, the machine-readable storage medium may be: RAM (Radom Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as optical disk, DVD, etc.), or similar storage medium, or a combination thereof.
[0127] Based on the same application concept as the above method, an embodiment of the present application also provides a computer program product, which may include a computer program. When the computer program is executed by a processor, it can implement the above process management method in a multi-account environment.
[0128] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0129] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A process management method in a multi-account environment, characterized in that: Applied to a computer, the computer has a first account and a second account created, a first screen projector management process is run under the first account, and a second screen projector management process is run under the second account, the method includes: In the case where the computer switches from the first account to the second account to run, if it is detected through the first screen projector management process that the first account is currently an unused account, it is prohibited to collect the display screen for screen projection through the first screen projector management process; wherein, the prohibition of collecting the display screen for screen projection through the first screen projector management process includes: if the first account is currently an unused account, setting an inactive state for the first screen projector management process; in the inactive state, stopping the detection of whether the wireless screen projector has been inserted into the computer through the first screen projector management process; if it is not detected whether the wireless screen projector has been inserted into the computer, it is prohibited to collect the display screen for screen projection through the first screen projector management process; If it is detected through the second screen projector management process that the second account is currently in use, and it is detected through the second screen projector management process that the wireless screen projector has been plugged into the computer, the display screen is captured through the second screen projector management process, and the display screen is projected through the wireless screen projector.
2. The method according to claim 1, characterized in that The detecting, through the first screen projection device management process, that the first account is currently an unused account comprises: if it is detected through the first screen projection device management process that the display of the first account is currently in a locked screen state, then detecting that the first account is currently an unused account; The detecting that the second account is currently using the account through the second screen projector management process includes: if it is detected through the second screen projector management process that the display of the second account is currently in an unlocked state, it is detected that the second account is currently using the account.
3. The method according to claim 1, characterized in that The collecting the display screen through the second screen projection device management process includes: When the second account is currently in use, the active state is set for the second screen projector management process; in the active state, the second screen projector management process is used to detect whether the wireless screen projector has been inserted into the computer; when the second screen projector management process detects that the wireless screen projector has been inserted into the computer, the display image is captured through the second screen projector management process.
4. The method according to claim 1 or 3, characterized in that: The first screen projector management process includes a first screen projector monitoring process and a first screen projector client process, and the method further includes: If it is detected through the first screen projector monitoring process that the first account is currently an unused account, then the detection of whether the wireless screen projector has been plugged into the computer through the first screen projector monitoring process is stopped, and the sending of a trigger message to the first screen projector client process through the first screen projector monitoring process is prohibited; wherein the trigger message is used to indicate that the wireless screen projector is currently plugged into the computer; If the trigger message is not received through the first screen projector client process, it is prohibited to capture the display screen for screen projection through the first screen projector client process.
5. The method according to claim 1 or 3, characterized in that: The second screen projector management process includes a second screen projector monitoring process and a second screen projector client process, and the method further includes: If it is detected through the second screen projector monitoring process that the second account is currently in use, then the second screen projector monitoring process is used to detect whether the wireless screen projector has been plugged into the computer; if so, then the second screen projector monitoring process sends a trigger message to the second screen projector client process; wherein the trigger message is used to indicate that the wireless screen projector is currently plugged into the computer; If the trigger message is received through the second screen projector client process, the display screen is captured through the second screen projector client process, and the display screen is projected through the wireless screen projector.
6. The method according to claim 1, characterized in that The method further comprises: Before the computer switches from the first account to the second account, when the computer is running under the first account, if the wireless screen projector has been inserted into the computer and there is no screen projector management program under the first account, the screen projector management program in the wireless screen projector is downloaded to the computer as the first screen projector management program, and a first screen projector management process corresponding to the first screen projector management program is run under the first account; After the computer switches from the first account to the second account, when the computer is running under the second account, if the wireless screen projector has been inserted into the computer and there is no screen projector management program under the second account, the screen projector management program in the wireless screen projector is downloaded to the computer as the second screen projector management program, and the second screen projector management process corresponding to the second screen projector management program is run under the second account.
7. A process management method in a multi-account environment, characterized in that: Applied to a computer, the computer has created multiple accounts that have run a screen projection device management process, and the method includes: For each account, if the screen projector management process of the account detects that the account is currently an unused account, it is prohibited to collect the display screen for screen projection through the screen projector management process; wherein, the prohibition of collecting the display screen for screen projection through the screen projector management process includes: if the account is currently an unused account, setting an inactive state for the screen projector management process; in the inactive state, stopping the detection of whether the wireless screen projector has been inserted into the computer through the screen projector management process; if it is not detected whether the wireless screen projector has been inserted into the computer, it is prohibited to collect the display screen for screen projection through the screen projector management process; If the screen projector management process detects that the account is currently in use and the screen projector management process detects that the wireless screen projector has been inserted into the computer, the display screen is captured through the screen projector management process and the display screen is projected through the wireless screen projector.
8. The method according to claim 7, characterized in that The screen projector management process includes a screen projector monitoring process and a screen projector client process, and the method further includes: If it is detected through the screen projector monitoring process that the account is currently an unused account, the screen projector monitoring process is set to an inactive state; in the inactive state, the screen projector monitoring process is stopped from detecting whether the wireless screen projector has been plugged into the computer, and the screen projector monitoring process is prohibited from sending a trigger message to the screen projector client process; if the trigger message is not received through the screen projector client process, the screen projector client process is prohibited from collecting the display screen for screen projection; If it is detected through the screen projector monitoring process that the account is currently in use, the active state is set for the screen projector monitoring process; in the active state, the screen projector monitoring process is used to detect whether the wireless screen projector has been inserted into the computer; if so, a trigger message is sent to the screen projector client process through the screen projector monitoring process; if the trigger message is received through the screen projector client process, the display screen is captured through the screen projector client process, and the display screen is projected through the wireless screen projector.
9. A computer device, characterized in that: include: A processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor; wherein the processor is used to execute the machine-executable instructions to implement any of the methods described in claims 1-8.
10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Screen projection process management method and device and storage medium
CN116055793A
Cross-screen sharing method, graphical interface and related device
CN117873409A