Multi-screen control method and system in extended mode
By creating a hideable full-screen window in extended mode, the problem of complex operations in multi-screen display is solved, and efficient synchronous and asynchronous display of multi-screen content is achieved without switching window modes, thus improving operational efficiency and user experience.
Patent Information
- Application Number
- CN202511065490.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-31
- Publication Date
- 2025-11-07
AI Technical Summary
In multi-screen displays, existing technologies require frequent switching of window modes and manual adjustment of window positions, resulting in complex operations and low efficiency.
By creating a hideable full-screen window in extended mode, the full-screen window can be automatically hidden or shown as needed to display the same or different content. Multi-screen content can be displayed synchronously or asynchronously through screen-to-screen control and window movement control, avoiding window reflow.
It enables simple operation without switching window modes, improves the efficiency and user experience of multi-screen display, and avoids window reflow and lag.
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of screen extension and control, and particularly relates to a multi-screen control method and system in an extension mode. BACKGROUND
[0002] When people work on a computer, two or more display screens are used to display more information for viewing and improving work efficiency. Although the demand for displaying the same or different content on the same computer is met, there are still many inconveniences in actual operation. Taking a dual-screen application as an example, when a user needs to display the same or different content on two screens, the user can only manually switch between the copy mode and the extension mode of the windows screen mode, and the window is rearranged after the mode is switched, which leads to complex operation. SUMMARY
[0003] In order to avoid window rearrangement when the content of the multi-screen display is switched, the present application provides a multi-screen control method and system in an extension mode.
[0004] The technical scheme adopted by the present application to solve the above problems is as follows: The multi-screen control method in the extension mode is used to control at least two display screens based on a single PC, and includes the following steps. A full-screen window that can be hidden is created on the current screen, the full-screen window is hidden when the current screen and the target screen need to display different content, and the full-screen window is displayed when the current screen and the target screen need to display the same content, the screen image of the target screen is captured and displayed on the full-screen window.
[0005] Further, when the screen image of the target screen is captured, the screen image is captured periodically according to the display frame frequency.
[0006] Further, after the screen image of the target screen is displayed on the full-screen window, the method further includes the following steps: obtaining the device path of the current control device and the screen path of the target screen, associating the device path with the target path to realize cross-screen control.
[0007] Further, on the basis of the cross-screen control, the method further includes the following steps: moving the control device to the target screen and limiting the control device to be displayed only on the target screen.
[0008] Further, the method further includes display window movement control.
[0009] Further, the display window movement control is implemented in the following manner: determining the target screen, obtaining the state of the current window according to the window handle, and if the window is maximized, the window is first restored; obtaining the position coordinates of the window, and calculating the display position of the window on the target screen according to the coordinates; According to the display position, the current window is moved, and after the movement, the state of the window is restored to the state at the initial acquisition.
[0010] Further, the display window switching control is further included.
[0011] Further, the display window switching control is implemented as follows: a target screen is determined, the state of the current window and the state of the window in the target screen are acquired according to the window handle, if the window is maximized, the window is first restored; The position coordinates of the current window and the window in the target screen are respectively acquired, and the display positions of the window in the target screen and the current screen are respectively calculated according to the coordinates; According to the display position, the current window and the window in the target screen are moved, and after the movement, the state of the window is restored to the state at the initial acquisition to complete the display content exchange.
[0012] The multi-screen control system in the extension mode is used for controlling at least two display screens based on a single PC, and includes: The display content same display or different display unit: a full-screen window that can be hidden is created on the current screen, when the current screen and the target screen need to display different contents, the full-screen window is hidden, when the current screen and the target screen need to display the same content, the full-screen window is displayed, the picture of the target screen is captured on the full-screen window and is displayed.
[0013] Further, the display window moving unit and / or the display window switching unit are further included, the display window moving unit is used for moving the display window of the current screen to the target screen, and the display window switching unit is used for switching the display window of the current screen and the display window of the target screen.
[0014] Compared with the prior art, the present application has the beneficial effects that: a full-screen window is created to display the display content of the target screen, when the same display of different screens is needed, the full-screen window is displayed, when the different display of different screens is needed, the full-screen window is hidden, the whole process is simple to operate, the whole process is not black screen, the windows screen mode does not need to be switched, and the window rearrangement is not caused, and the use is more convenient. DETAILED DESCRIPTION
[0015] In order to make the purpose, technical scheme and advantages of the present application more clear, the present application is further described in detail below with examples. It should be understood that the specific examples described herein are only used to explain the present application, and are not used to limit the present application.
[0016] The multi-screen control method in the extension mode is used for controlling at least two display screens based on a single PC, and includes: A hidden full-screen window is created on the current screen, the full-screen window is hidden when the current screen and the target screen need to display different content, and the full-screen window is displayed when the current screen and the target screen need to display the same content, the target screen picture is captured in the full-screen window and displayed.
[0017] Specifically, one full-screen window is created in the A screen, the window is built-in one picture display component, according to the display frame frequency, the B screen picture is captured in the whole screen through the windows DXGI technology in a certain interval time, and then displayed in the full-screen window of the A screen. The user can control between display and hide the full-screen window by one key, and realize the same display or different display between different screens by displaying or hiding the full-screen window.
[0018] For example, in the expansion mode, when the user needs to display the content of the A screen on both the A and B screens, only the full-screen window needs to be displayed on the B screen, and vice versa, if the user needs to display the content of the B screen on both the A and B screens, only the full-screen window needs to be displayed on the A screen. If the user needs to display the content of the two screens separately, only the corresponding full-screen window needs to be hidden. The whole process is simple to operate, the efficiency is improved obviously, and the whole process is not stuck, not black screen, and does not need to switch the windows screen mode, so it will not cause window rearrangement, and it is more convenient to use.
[0019] Further, after the target screen picture is displayed in the full-screen window, the device path of the current control device and the screen path of the target screen are obtained, the device path and the target path are associated to realize the control of different screens. The specific implementation manner is: The windows api method GetRawInputDeviceList is called to obtain the device path devicePath of the current control device of the A screen, the windows api method DisplayConfigGetDeviceInfo is called to obtain the screen path screenPath of the B screen, and the devicePath and screenPath are associated through the windows api method SetDisplayMapping, and the real-time effect is realized. The control device includes a touch device (such as a finger touch, a touch pen, etc.) and a mouse.
[0020] Through the above-mentioned manner, the control device of the A screen can automatically control the content of the B screen; when it is needed to restore the control, only the device path and the screen path of the A screen need to be associated.
[0021] Further, on the basis of realizing the cross-screen control, the control device is moved to the target screen and the control device is limited to be displayed on the target screen only. Taking the mouse control as an example, the specific implementation manner is as follows: a windows api method SetCursorPos is called to move the mouse to the target screen, a global mouse hook (Global MouseHook) is installed, the mouse moving event of a user is continuously monitored and captured, and if it is found that the mouse moves out of the target screen, the SetCursorPos method is called again to move the mouse into the target screen.
[0022] In addition, the application further provides display window moving control and display window exchanging control. The implementation manner of the display window moving control is as follows: the state of a current window is acquired according to a window handle, if the window is maximized, the window is restored first; the position coordinates of the window are acquired, and the display position of the window on another screen is calculated according to the coordinates; the window is moved to the display position on another screen by calling a SetWindowPos method; and if the window is maximized according to the initially acquired window state, the current window is set to be maximized.
[0023] The implementation manner of the display window exchanging control is similar to that of the display window moving control, and the display window moving is realized on two screens synchronously, and the specific implementation process is not described here. In order to facilitate the display window moving control and the display window exchanging control, a moving button and an exchanging button are set in the embodiment, and a user can complete the corresponding operation by clicking the corresponding button, so that the use is convenient. Taking the moving button as an example, a hidden window is created, the window contains a moving button; a GetForegroundWindow method is called to acquire a current active window, and the coordinates of the active window are acquired, and the position of the upper right corner is calculated; the hidden window is moved to the position of the upper right corner, and the hidden window is displayed; when the moving button is clicked, the display window moving control is executed to move the window to another screen. The position to which the window needs to be moved to another screen is calculated first, and then the window is moved to another screen by calling a SetWindowPos method.
[0024] The application provides a quick control scheme, and the user does not need to frequently switch the windows screen mode and frequently drag a window to control the position and state of the window, so that the use is more efficient.
[0025] Correspondingly, the application further provides a multi-screen control system for controlling at least two display screens based on a single PC, which comprises: The display content same or different display unit creates a hidden full screen window on the current screen, hides the full screen window when the current screen and the target screen need to display different content, and displays the full screen window when the current screen and the target screen need to display the same content, and the target screen picture is captured and displayed on the full screen window.
[0026] Further, the display window moving unit and / or the display window switching unit are further included, the display window moving unit is used to move the display window of the current screen to the target screen, and the display window switching unit is used to switch the display window of the current screen and the display window of the target screen.
Claims
1. A multi-screen control method in an extended mode, used for controlling at least two display screens based on a single PC, characterized in that, The method comprises the following steps: creating a full-screen window which can be hidden on the current screen, hiding the full-screen window when the current screen and the target screen need to display different contents; displaying the full-screen window when the current screen and the target screen need to display the same contents, and capturing the picture of the target screen and displaying it on the full-screen window.
2. The method according to claim 1, wherein, When capturing the picture of the target screen, the picture is captured periodically according to the display frame frequency.
3. The method according to claim 1, wherein, After the picture of the target screen is displayed on the full-screen window, the device path of the current control device and the screen path of the target screen are obtained, and the device path is associated with the target path to realize the cross-screen control.
4. The method according to claim 3, characterized in that, On the basis of the cross-screen control, the control device is moved to the target screen, and the control device is limited to be displayed on the target screen.
5. The method according to claim 1, wherein, The display window moving control is further included.
6. The method according to claim 5, characterized in that, The display window moving control is implemented by determining the target screen, obtaining the state of the current window according to the window handle, and restoring the window if it is maximized; obtaining the position coordinates of the window, calculating the display position of the window on the target screen according to the coordinates; moving the current window according to the display position, and restoring the state of the window to the state obtained initially after the moving.
7. The method according to claim 1, wherein, The display window exchange control is further included.
8. The method according to claim 7, characterized in that, The display window exchange control is implemented by determining the target screen, obtaining the state of the current window and the state of the window in the target screen according to the window handle, and restoring the window if it is maximized; obtaining the position coordinates of the current window and the window in the target screen respectively, and calculating the display positions of the windows on the target screen and the current screen according to the coordinates respectively; moving the current window and the window in the target screen according to the display positions, and restoring the states of the windows to the states obtained initially after the moving to complete the exchange of the display contents.
9. A multi-screen control system in extended mode for controlling at least two display screens based on a single PC, characterized in that, The method comprises the following steps: The display content same or different display unit: creating a full-screen window which can be hidden on the current screen, hiding the full-screen window when the current screen and the target screen need to display different contents; displaying the full-screen window when the current screen and the target screen need to display the same contents, and capturing the picture of the target screen and displaying it on the full-screen window.
10. The multi-screen control system in extended mode according to claim 9, wherein, The display window moving unit and / or the display window exchange unit are further included, the display window moving unit is used to move the display window of the current screen to the target screen, and the display window exchange unit is used to exchange the display window of the current screen and the display window of the target screen.