CN113625931A - Desktop switching method, computing device and readable storage medium - Google Patents

Desktop switching method, computing device and readable storage medium Download PDF

Info

Publication number
CN113625931A
CN113625931A CN202111179937.6A CN202111179937A CN113625931A CN 113625931 A CN113625931 A CN 113625931A CN 202111179937 A CN202111179937 A CN 202111179937A CN 113625931 A CN113625931 A CN 113625931A
Authority
CN
China
Prior art keywords
desktop
screen
main screen
switching state
icon
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111179937.6A
Other languages
Chinese (zh)
Inventor
卢桢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Uniontech Software Technology Co Ltd
Original Assignee
Uniontech Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Uniontech Software Technology Co Ltd filed Critical Uniontech Software Technology Co Ltd
Priority to CN202111179937.6A priority Critical patent/CN113625931A/en
Publication of CN113625931A publication Critical patent/CN113625931A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
    • G06F3/1431Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display using a single graphics controller

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Graphics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a desktop switching method, a computing device and a readable storage medium, wherein the method comprises the following steps: when detecting the operation of long-pressing a left mouse button on the desktop of the main screen, entering a state to be switched; in a state to be switched, when a first operation on the desktop of the main screen is detected, acquiring an icon displayed on the desktop of the auxiliary screen; and displaying the icons displayed on the auxiliary screen desktop on the main screen desktop. According to the method and the device, the auxiliary screen desktop icons can be displayed on the main screen desktop only by executing specific operation on the main screen desktop, screen setting in a setting interface is not needed, the operation is simple and convenient, the switching process is convenient, and therefore the desktop switching efficiency is improved.

Description

Desktop switching method, computing device and readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a desktop switching method, a computing device, and a readable storage medium.
Background
The double-screen display is controlled by one computing device, can be simultaneously externally connected with two displays and has the effect of displaying different pictures on a desktop, so as to achieve the effect of expanding the screen. At present, a mainstream operating system supports double-screen display of a desktop, and the double-screen display increases area division of display contents for a user, so that convenience in learning, entertainment and office is improved. The dual-screen display comprises a main screen and an auxiliary screen, and if files of the auxiliary screen need to be controlled on the main screen, the dual-screen display can be realized in the following two ways: one is to copy the contents displayed on the desktop of the main screen to the auxiliary screen, and the other is to exchange the contents displayed on the desktop of the main screen and the auxiliary screen.
For the first mode, if the content of the main screen is copied to the auxiliary screen, the two display screens only have the main screen, that is, both display screens display the content displayed on the desktop of the main screen, which is obviously inconvenient for the user who needs to display different contents on the double screens. In addition, for the switching mode of directly exchanging the display contents of the desktop of the main screen and the desktop of the auxiliary screen, a configuration interface is firstly opened to carry out screen configuration, after the configuration is finished, the computing equipment needs to process for a period of time to switch the contents displayed on the desktop of the main screen and the desktop of the auxiliary screen, and under the scene needing to be frequently switched, the operation is complex and the efficiency is low.
Disclosure of Invention
To this end, the present invention provides a desktop switching method in an attempt to solve or at least alleviate the above-presented problems.
According to one aspect of the present invention, there is provided a desktop switching method, executed in a computing device including a primary screen and a secondary screen, the method comprising: when detecting the operation of long-pressing a left mouse button on the desktop of the main screen, entering a state to be switched; in a state to be switched, when a first operation on the desktop of the main screen is detected, acquiring an icon displayed on the desktop of the auxiliary screen, wherein the first operation is an operation of dragging a mouse; and displaying the icons displayed on the auxiliary screen desktop on the main screen desktop.
Optionally, when detecting that the left mouse button is pressed for a long time on the desktop of the main screen, the step of entering the state to be switched includes: when detecting the operation of long-time pressing of a left mouse button on the desktop of the main screen, acquiring the coordinates of a mouse cursor; and judging whether the coordinate of the mouse cursor is positioned in a first preset area, and if so, entering a state to be switched.
Optionally, when the first operation on the primary screen desktop is detected, the step of acquiring the icon displayed on the secondary screen desktop includes: when the operation of releasing the left mouse button is detected, entering a desktop switching state; judging the type of the desktop switching state; and acquiring all files corresponding to the desktop display icons of the auxiliary screen as first files.
Optionally, the step of determining the type of the desktop switching state includes: judging whether the dragging distance of the first operation is between a first preset distance and a second preset distance, if so, the desktop switching state is a first-type switching state; if not, judging whether the dragging distance of the first operation is larger than a second preset distance, and if so, the desktop switching state is a second switching state.
Optionally, when the desktop switching state is the first switching state, the step of displaying the icon displayed on the secondary screen desktop on the primary screen desktop includes: creating a tray on the desktop of the main screen; and displaying an icon corresponding to the first file in the tray.
Optionally, the method further comprises the steps of: when the file management operation is performed on the icon in the tray, the file management operation is performed on the same icon of the auxiliary screen desktop, and the file management operation comprises the steps of pasting, deleting, cutting, dragging and opening the icon.
Optionally, the method further comprises the steps of: acquiring coordinates of a mouse cursor; judging whether the coordinate of the mouse cursor is located in a second preset area, if so, sliding and shrinking the tray to the position in the same direction as the second operation when the second operation on the desktop of the main screen is detected, wherein the second operation is the operation of long-pressing the left button of the mouse and dragging the mouse to the direction opposite to the sliding direction of the first operation; and closing the desktop switching state.
Optionally, when the desktop switching state is the second switching state, the step of displaying the icon displayed on the secondary screen desktop on the primary screen desktop includes: acquiring all files corresponding to the desktop display icons of the main screen as second files; displaying all icons corresponding to the first file on the desktop of the main screen; and displaying all icons corresponding to the second file on the desktop of the auxiliary screen.
Optionally, when the coordinates of the mouse cursor are located in the first preset area, the method further includes the steps of: and popping up a first prompt box from one side of the main screen desktop to prompt the user to enter a state to be switched.
Optionally, the first prompt box is filled with color, and the color transparency value of the first prompt box is calculated according to the following format:
alpha=M*(H-P)/H
wherein the content of the first and second substances,alphais the color transparency value of the first prompt box,Mis a constant number of 255 and,His a first preset distance or a second preset distance,Pis the sliding distance of the first operation.
Optionally, when the first operation on the primary screen desktop is detected, the step of acquiring the icon displayed on the secondary screen desktop further includes: judging whether the dragging distance of the first operation is between a first preset distance and a second preset distance, and if so, popping up a second prompt box at one side of the main screen desktop; if not, judging whether the dragging distance of the first operation is equal to or larger than a second preset distance, and if so, popping up a third prompt box at one side of the main screen desktop.
According to an aspect of the present invention, there is provided a computing device comprising: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, the program instructions comprising instructions for performing the method as described above.
According to an aspect of the present invention, there is provided a readable storage medium storing program instructions which, when read and executed by a computing device, cause the computing device to perform the method as described above.
According to the technical scheme of the invention, a desktop switching method is provided, and the method comprises the following steps: when the operation of long-pressing a left mouse button on the desktop of the main screen is detected, the desktop enters a to-be-switched state, and when the operation of dragging the mouse on the desktop of the main screen is detected, the icons displayed on the desktop of the auxiliary screen are acquired and displayed on the main screen. According to the method and the device, the auxiliary screen desktop icons can be displayed on the main screen desktop only by executing specific operation on the main screen desktop, screen setting in a setting interface is not needed, the operation is simple and convenient, the switching process is convenient, and therefore the desktop switching efficiency is improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which are indicative of various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description read in conjunction with the accompanying drawings. Throughout this disclosure, like reference numerals generally refer to like parts or elements.
FIG. 1 shows a block diagram of a computing device 100, according to one embodiment of the invention;
FIG. 2 illustrates a flow diagram of a desktop switching method 200 according to one embodiment of the invention;
FIG. 3 illustrates a schematic diagram of a home screen desktop including a first preset area, according to one embodiment of the present invention;
FIG. 4 shows a schematic diagram of a home screen desktop including a first prompt box according to one embodiment of the invention
FIG. 5 illustrates a schematic diagram of a home screen desktop including a first prompt box and a second prompt box or a third prompt box, according to one embodiment of the invention;
FIG. 6 illustrates a schematic diagram of a home screen desktop including a first prompt box and a second prompt box or a third prompt box according to another embodiment of the present invention;
FIG. 7 illustrates a schematic view of a home screen desktop including a tray according to one embodiment of the present invention;
FIG. 8 illustrates a menu bar, according to one embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In the prior art, both mainstream operating systems (such as Linux, Windows, UOS and the like) support dual-screen display of a desktop, and the dual-screen display increases area division of display contents for a user, so that convenience in learning, entertainment and office is improved. In the double-screen display, if a file of the auxiliary screen needs to be controlled on the main screen, the method can be realized in the following two ways: one is to copy the contents displayed on the desktop of the main screen to the auxiliary screen, and the other is to exchange the contents displayed on the desktop of the main screen and the auxiliary screen.
For the first mode, if the content of the main screen is copied to the auxiliary screen, the function of expanding the partition in the double-screen display is not available, and at the moment, the two display screens both display the content displayed on the desktop of the main screen, which is obviously inconvenient for users who need to display different contents in the double-screen display. In addition, for the switching mode of directly exchanging the display contents of the primary and secondary screen desktops, a configuration interface is firstly opened to perform screen configuration, and after the configuration is completed, the computing device needs to process for a period of time to switch the contents displayed on the primary and secondary screen desktops, so that the operation is complex in a scene needing to be frequently switched, and the efficiency is low.
In order to solve the above problem, the present invention provides a desktop switching method, which is executed in a computing device. FIG. 1 shows a block diagram of a computing device 100, according to one embodiment of the invention. A block diagram of a computing device 100 As shown in FIG. 1, in a basic configuration 102, the computing device 100 typically includes a system memory 106 and one or more processors 104. A memory bus 108 may be used for communication between the processor 104 and the system memory 106.
Depending on the desired configuration, the processor 104 may be any type of processing, including but not limited to: a microprocessor (μ P), a microcontroller (μ C), a digital information processor (DSP), or any combination thereof. The processor 104 may include one or more levels of cache, such as a level one cache 110 and a level two cache 112, a processor core 114, and registers 116. The example processor core 114 may include an Arithmetic Logic Unit (ALU), a Floating Point Unit (FPU), a digital signal processing core (DSP core), or any combination thereof. The example memory controller 118 may be used with the processor 104, or in some implementations the memory controller 118 may be an internal part of the processor 104.
Depending on the desired configuration, system memory 106 may be any type of memory, including but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. System memory 106 may include an operating system 120, one or more applications 122, and program data 124. In some embodiments, application 122 may be arranged to operate with program data 124 on an operating system. Program data 124 includes instructions, and in computing device 100 according to the present invention, program data 124 contains instructions for performing desktop switching method 200.
The computing device 100 also includes a storage device 132, the storage device 132 including removable storage 136 and non-removable storage 138, the removable storage 136 and the non-removable storage 138 each connected to the storage interface bus 134. In the present invention, the data related to each event occurring during the program execution process and the time information indicating the occurrence of each event may be stored in the storage device 132, and the operating system 120 is adapted to manage the storage device 132. The storage device 132 may be a magnetic disk.
Computing device 100 may also include an interface bus 140 that facilitates communication from various interface devices (e.g., output devices 142, peripheral interfaces 144, and communication devices 146) to the basic configuration 102 via the bus/interface controller 130. The example output device 142 includes an image processing unit 148 and an audio processing unit 150. They may be configured to facilitate communication with various external devices, such as a display or speakers, via one or more a/V ports 152. Example peripheral interfaces 144 may include a serial interface controller 154 and a parallel interface controller 156, which may be configured to facilitate communication with external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., printer, scanner, etc.) via one or more I/O ports 158. An example communication device 146 may include a network controller 160, which may be arranged to facilitate communications with one or more other computing devices 162 over a network communication link via one or more communication ports 164.
A network communication link may be one example of a communication medium. Communication media may typically be embodied by computer readable instructions, data structures, program modules, and may include any information delivery media, such as carrier waves or other transport mechanisms, in a modulated data signal.Modulating data signalsA signal may be represented as a set of one or more of its data or its changes in a manner that encodes information in the signal. By way of non-limiting example, communication media may include wired media such as a wired network or private-wired network, and various wireless media such as acoustic, Radio Frequency (RF), microwave, Infrared (IR), or other wireless media. The term computer readable media as used herein may include both storage media and communication media.
Computing device 100 may be implemented as a server, such as a file server, a database server, an application server, a WEB server, etc., or as part of a small-form factor portable (or mobile) electronic device, such as a cellular telephone, a Personal Digital Assistant (PDA), a personal media player device, a wireless WEB-watch device, a personal headset device, an application specific device, or a hybrid device that include any of the above functions. Computing device 100 may also be implemented as a personal computer including both desktop and notebook computer configurations. In some embodiments, computing device 100 is configured to perform a desktop switching method 200 in accordance with the present invention.
FIG. 2 illustrates a flow diagram of a desktop switching method 200, according to one embodiment of the invention, the method 200 being suitable for execution in a computing device (such as the computing device 100 shown in FIG. 1). As shown in fig. 2, the method 200 includes steps S210-S230. The method 200 starts in step S210, and in step S210, when an operation of long-pressing a left mouse button on the desktop of the main screen is detected, a state to be switched is entered. The operation of long-pressing the left mouse button is an operation of long-pressing the left mouse button in a first preset area, and the first preset area can be set according to an actual application scene, which is not limited in the invention. For example, as shown in fig. 3, the square frame 3-1 is a first predetermined area, and the first predetermined area is a partial area on the left side of the desktop of the main screen.
In one embodiment, step S210 specifically includes: when the operation of long-pressing a left mouse button on the desktop of the main screen is detected, coordinates of a mouse cursor are obtained, whether the coordinates of the mouse cursor are located in a first preset area or not is judged, if yes, the desktop enters a state to be switched, and at the moment, in order to prompt a user that the desktop of the main screen enters the state to be switched, a first prompt box is popped up from one side of the desktop of the main screen. And if the left mouse button is not pressed for a long time any more at this moment, the state to be switched is cancelled, and the first prompt box also disappears.
The first prompt box can be set according to the actual application scene, and the shape, filling color, pop-up position and the like of the first prompt box are not limited as long as the user can be prompted. For example, a square frame 4-1 shown in fig. 4 is a first prompt box, which is a blue semi-transparent rectangular prompt box (color is not shown in fig. 4) with a certain width and popped up from the left side of the desktop of the main screen and perpendicular to the desktop.
It should be noted that entering the to-be-switched state is a precondition for entering the desktop switching state, that is, only when entering the to-be-switched state, the desktop switching state can be entered. If the desktop switching state is canceled, the desktop switching state cannot be entered.
After entering the to-be-switched state, that is, in the to-be-switched state, step S220 is continuously executed, and when the first operation on the primary screen desktop is detected, the icon displayed on the secondary screen desktop is acquired. The first operation is an operation of dragging the mouse in one direction on the basis of long-time pressing of the left button of the mouse, and the direction of dragging the mouse can be set according to an actual application scene, which is not limited by the invention. For example, the first operation is an operation of long-pressing the left button of the mouse and dragging the mouse to the right.
In one embodiment, step S220 includes:
when a first operation on the main screen interface is detected, a desktop switching state is entered, wherein the desktop switching state comprises a first switching state and a second switching state, the first switching state is a half switching state, and the second switching state is a full switching state.
Then, judging the type of the desktop switching state, specifically: determining the type of the desktop switching state according to the sliding distance of the first operation, specifically: judging whether the sliding distance (the sliding distance is the distance from the side of the main screen desktop to the mouse cursor) of the first operation is between a first preset distance (the first preset distance is a distance threshold value for entering a half switching state) and a second preset distance (the second preset distance is a distance threshold value for entering a full switching state), if so, judging whether the desktop switching state is a first switching state, namely the half switching state, if not, judging whether the sliding distance of the first operation is larger than or equal to a second preset distance, if so, judging that the desktop switching state is a second switching state, namely the full switching state, and if not, judging that the desktop switching state is the half switching state.
It should be noted that the second preset distance is greater than the first preset distance, and the first preset distance and the second preset distance may be set according to an actual application scenario, which is not limited in the present invention. After the type of the desktop switching state is determined, a prompt box corresponding to the type of the desktop switching state is displayed on the desktop of the main screen to prompt that the desktop switching state is entered. Specifically, whether the dragging distance of the first operation is between a first preset distance and a second preset distance is judged, and if yes, a second prompt box pops up on one side of the main screen desktop. And if not, judging whether the dragging distance of the first operation is equal to or greater than a second preset distance, if so, popping up a third prompt box at one side of the main screen desktop, and if not, not displaying the prompt box. Similarly, the shape, filling color, pop-up position, and the like of the second prompt box and the third prompt box may be set according to the actual application scene, and the present invention is not limited.
At this moment, including first prompt dialog and second prompt or third prompt in the main screen desktop, in order to increase the display effect of second prompt or third prompt, attract user's eyeball more, when showing second prompt or third prompt, reduce the display effect of first prompt, namely, reduce the transparency value of the filling color of first prompt (transparency value is lower more transparent), the color transparency value of first prompt can calculate according to following format:
alpha=A*(H-P)/H
wherein, alpha is a color transparency value of the first prompt box, a is a preset color value of 255, H is a first preset distance or a second preset distance, and P is a sliding distance of the first operation.
According to the formula, along with the increase of the sliding distance of the first operation, the smaller the transparency value of the first prompt box, the smaller the transparency value is, the more transparent the transparency value is, that is, along with the increase of the sliding distance of the first operation, the more transparent the first prompt box is, and the more transparent the first prompt box is, the less obvious the display effect of the first prompt box is, the better the display effect of the second prompt box or the third prompt box displayed on the main screen desktop is, so that the second prompt box or the third prompt box can attract eyeballs of a user more, and the prompt effect is more obvious.
For example, when the desktop switching state is the half-switching state, the prompt box is a second prompt box, as shown in fig. 5 (color is not shown in fig. 5), a green semi-transparent square box 5-1 parallel to the desktop is drawn between the sliding distance from the left side of the main screen to the first operation, that is, the second prompt box, at this time, the transparency of the first prompt box 4-1 is increased, and the display effect is not obvious as that of the first prompt box 4-1 in fig. 4. When the desktop switching state is the full switching state, as shown in fig. 6 (color is not shown in fig. 6), a red semitransparent square frame 6-1 parallel to the desktop is drawn between the sliding distance from the left side of the main screen to the first operation, that is, the third prompt frame, at this time, the transparency of the first prompt frame 4-1 is increased, and the display effect is not obvious as that of the first prompt frame 4-1 in fig. 5.
In one embodiment, when the sliding distance of the first operation is between the first preset distance and the second preset distance, that is, during the transition from the half-switching state to the full-switching state, that is, when the sliding distance of the first operation is between the first preset distance and the second preset distance, in order to better prompt the user, the interface friendliness is increased, and the color filled in the third prompt box between the distances is a gradual change effect, specifically implemented as follows:
making the intermediate distance between the first preset distance and the second preset distance as follows:
M=H+(L-H)*0.5
wherein, M is the middle distance between the first preset distance and the second preset distance, H is the first preset distance, and L is the second preset distance.
When the dragging distance P of the first operation is greater than H and P is less than M, the color value of the second prompt box is:
Color=G1+(G-G1)*(P-H)/(M-H)
wherein, Color is the Color value of second prompt box, and G1 is the Color value of prompt box when half switching state, and G is preset Color value.
When the dragging distance P of the first operation is greater than M and P is less than L, the color value of the second prompt box is as follows:
Color=G+(G2-G)*(P-M)/(L-M)
wherein, G2 is the color value of the prompt box when in the full switching state.
And finally, drawing the sliding distance of the first operation as the Color value of the third prompt box between the first preset distance and the second preset distance according to the Color value of each position.
And after the desktop switching state is determined, acquiring all files corresponding to the desktop display icons of the auxiliary screen. Specifically, all files corresponding to the sub-screen desktop display icon may be acquired from a desktop directory of an operating system of the computing device as the first file.
Finally, step S230 is executed to display the icon displayed on the sub-screen desktop on the main screen desktop.
In one embodiment, when the desktop switching state is the first type switching state, that is, when the desktop switching state is the half switching state, step S230 includes: a tray is created on the desktop of the main screen, the creation method of the tray is the prior art, and the existing method for creating the tray is within the protection scope of the invention.
In addition, the creation position, color, shape, etc. of the tray may be set according to the actual application scenario, which is not limited by the present invention. For example, a square tray with a specified height and width is drawn on the left side of the main screen desktop, and the square frame 7-1 in fig. 7 is the drawn tray (color is not shown in fig. 7). After the tray is drawn on the primary screen desktop, the icon corresponding to the first file can be displayed in the tray, namely, the icon displayed on the secondary screen desktop is displayed in the tray. That is, when the half-switched state is entered, the icons displayed on the sub-screen desktop are displayed in the tray of the main screen desktop.
In one embodiment, when a user performs a file management operation on an icon in the tray, the file management operation is performed on the same icon of the sub-screen desktop, wherein the file management operation includes cutting, pasting, deleting, opening the icon (the icon includes an icon of a file, a document, an application, etc.).
For example, when the user clicks the right mouse button on the blank area of the tray, a menu bar pops up, and in one embodiment, the menu bar is shown as a square box 8-1 in fig. 8, and the menu bar 8-1 includes: the method comprises the steps of creating a folder, creating a document, sorting, icon size, full selection and application view (the application view is used for configuring the display position of an application program), wherein the scope of two menu items of the folder and the document is a tray of a main screen desktop and can be synchronized to an auxiliary screen desktop, namely, the folder and the document are created in the tray and can be synchronized to the auxiliary screen desktop. The scope of the other menu items is only the tray of the main screen desktop, that is, when the menu bars such as the sequencing mode, the icon size and the like are touched in the tray, the corresponding effect is only displayed in the tray of the main screen desktop, and the menu bars cannot be synchronized to the auxiliary screen desktop.
For example, when a user copies a file or document, etc., and pastes the file or document to the tray, which is equivalent to adding a file to the tray, the file is acquired and displayed on the sub-screen desktop synchronously. Similarly, when the user deletes a file, document or application icon, etc., the file is acquired at this time, and the file, document or application icon corresponding to the acquired file in the sub-screen desktop is deleted.
For another example, when the user double-clicks the application icon in the tray to open the application, the application is displayed on the main screen by default, and of course, the user in the present invention can set the display position of the opened application in the application view menu item of the menu bar 8-1, and if the opened application is displayed on the sub-screen, when the user double-clicks the application icon through the mouse, the application is displayed on the sub-screen, and in order to prompt the user to display the application on the sub-screen, an icon is superimposed on the application icon. The superimposed icon may be set according to the actual application, which is not limited in the present invention.
It should be noted that, when the tray is drawn, a tray contraction area, that is, a second preset area, is also drawn on one side of the tray, and the position, shape, size, color, and the like drawn by the tray contraction area may be set according to an actual application scenario, which is not limited in this invention. For example, a dashed square box 7-2 in fig. 7 is a tray shrinkage area (a second preset area), which has the same height as the tray, a smaller width than the tray, and the same color as the tray.
It is noted that in one embodiment, a process of exiting the semi-switched state is also included, specifically: and acquiring the coordinate of the mouse cursor, judging whether the coordinate of the mouse cursor is positioned in a second preset area, and if so, dragging the tray to the same direction as the second operation when the second operation on the main screen is detected (the second operation is the operation of long-pressing the left button of the mouse and dragging the mouse to the direction opposite to the dragging direction of the first operation).
Taking the first operation as an example of dragging the mouse to the right on the basis of long pressing of the left button of the mouse, the process of exiting the semi-switching state will be described: if the left button of the mouse is pressed for a long time and the distance between the left button and the left dragging mouse is larger than or equal to the preset distance, the tray is triggered to slide leftwards at the preset speed to shrink the tray until the tray shrinks completely, and the half-switching state is quitted. At this time, if the half-switch state is to be turned on again, steps S210 to S220 need to be executed. The preset distance and the preset speed can be set according to actual application scenes, and the invention is not limited to this.
In another embodiment, when the desktop state is the second switching state, that is, when the desktop state is the full switching state, step S230 includes: and acquiring all files corresponding to the desktop display icons of the main screen from a desktop directory of the operating system, using the files as second files, displaying all icons corresponding to the first files on the desktop of the main screen, and displaying all icons corresponding to the second files on the desktop of the auxiliary screen. That is, the primary screen desktop display icon is swapped with the secondary screen desktop display icon.
It should be noted that steps S210 to S230 are performed whenever the desktop needs to be switched.
According to the desktop switching method, when the operation of long-pressing the left button of the mouse on the desktop of the main screen is detected, the desktop enters the state to be switched, and when the operation of dragging the mouse on the desktop of the main screen is detected, the icons displayed on the desktop of the auxiliary screen are acquired in the state to be switched, and the icons displayed on the auxiliary screen are displayed on the main screen. According to the method and the device, the auxiliary screen desktop icons can be displayed on the main screen desktop only by executing specific operation on the main screen desktop, screen setting in a setting interface is not needed, the operation is simple and convenient, the switching process is convenient, and therefore the desktop switching efficiency is improved.
In addition, in the invention, when the switching state to be switched or the desktop switching state is entered, a corresponding prompt box can be popped up to prompt the user to enter the corresponding switching state, so that the interface interactivity is improved, and the user experience is improved.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as removable hard drives, U.S. disks, floppy disks, CD-ROMs, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to execute the desktop switching method of the present invention according to instructions in the program code stored in the memory.
By way of example, and not limitation, readable media may comprise readable storage media and communication media. Readable storage media store information such as computer readable instructions, data structures, program modules or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of readable media.
In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with examples of this invention. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim.
Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in a device as described in this embodiment or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into multiple sub-modules.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments.
Furthermore, some of the described embodiments are described herein as a method or combination of method elements that can be performed by a processor of a computer system or by other means of performing the described functions. A processor having the necessary instructions for carrying out the method or method elements thus forms a means for carrying out the method or method elements. Further, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is used to implement the functions performed by the elements for the purpose of carrying out the invention.
As used herein, unless otherwise specified the use of the ordinal adjectives "first", "second", "third", etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this description, will appreciate that other embodiments can be devised which do not depart from the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter.

Claims (10)

1. A desktop switching method, performed in a computing device comprising a primary screen and a secondary screen, the method comprising:
when detecting the operation of long-pressing a left mouse button on the desktop of the main screen, entering a state to be switched;
in the state to be switched, when a first operation on the desktop of the main screen is detected, acquiring an icon displayed on the desktop of the auxiliary screen, wherein the first operation is an operation of dragging a mouse;
and displaying the icons displayed on the auxiliary screen desktop on the main screen desktop.
2. The method of claim 1, wherein the step of entering the state to be switched when detecting the operation of long-pressing the left button of the mouse on the desktop of the main screen comprises:
when the operation of long pressing of the left mouse button on the desktop of the main screen is detected, coordinates of a mouse cursor are obtained;
and judging whether the coordinates of the mouse cursor are positioned in a first preset area, and if so, entering a state to be switched.
3. The method of claim 2, wherein the step of obtaining the icon displayed by the secondary screen desktop when the first operation on the primary screen desktop is detected comprises:
when the operation of releasing the left mouse button is detected, entering a desktop switching state;
judging the type of the desktop switching state;
and acquiring all files corresponding to the desktop display icons of the auxiliary screen as first files.
4. The method of claim 3, wherein determining the type of desktop switching state comprises:
judging whether the dragging distance of the first operation is between a first preset distance and a second preset distance, if so, the desktop switching state is a first-type switching state;
if not, judging whether the dragging distance of the first operation is larger than the second preset distance, and if so, the desktop switching state is a second switching state.
5. The method as claimed in claim 4, wherein, when the desktop switching state is the first type switching state, the step of displaying the icon displayed on the sub-screen desktop on the main screen desktop comprises:
creating a tray on the main screen desktop;
and displaying an icon corresponding to the first file in the tray.
6. The method of claim 5, further comprising the steps of:
when file management operation is performed on the icons in the tray, the file management operation is performed on the same icons of the auxiliary screen desktop, and the file management operation comprises icon pasting, icon deleting, icon cutting, icon dragging and icon opening.
7. The method of claim 5 or 6, further comprising the step of:
acquiring coordinates of a mouse cursor;
judging whether the coordinate of the mouse cursor is located in a second preset area, if so, sliding and shrinking the tray to the position in the same direction as the second operation when the second operation on the desktop of the main screen is detected, wherein the second operation is the operation of long-pressing a left mouse button and dragging the mouse to the direction opposite to the sliding direction of the first operation;
and closing the desktop switching state.
8. The method as claimed in claim 4, wherein the step of displaying the icon displayed on the sub-screen desktop on the main screen desktop when the desktop switching state is the second switching state comprises:
acquiring all files corresponding to the desktop display icons of the main screen as second files;
displaying all icons corresponding to the first file on the desktop of the main screen;
and displaying all icons corresponding to the second file on the desktop of the auxiliary screen.
9. A computing device, comprising:
at least one processor; and
a memory storing program instructions, wherein the program instructions are configured to be adapted to be executed by the at least one processor, the program instructions comprising instructions for performing the method of any of claims 1-8.
10. A readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to perform the method of any of claims 1 to 8.
CN202111179937.6A 2021-10-11 2021-10-11 Desktop switching method, computing device and readable storage medium Pending CN113625931A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111179937.6A CN113625931A (en) 2021-10-11 2021-10-11 Desktop switching method, computing device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111179937.6A CN113625931A (en) 2021-10-11 2021-10-11 Desktop switching method, computing device and readable storage medium

Publications (1)

Publication Number Publication Date
CN113625931A true CN113625931A (en) 2021-11-09

Family

ID=78390884

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111179937.6A Pending CN113625931A (en) 2021-10-11 2021-10-11 Desktop switching method, computing device and readable storage medium

Country Status (1)

Country Link
CN (1) CN113625931A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114879850A (en) * 2022-07-11 2022-08-09 统信软件技术有限公司 Control method and device of keyboard indicator light, computing equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120117495A1 (en) * 2010-10-01 2012-05-10 Imerj, Llc Dragging an application to a screen using the application manager
CN102955650A (en) * 2011-08-25 2013-03-06 幻音科技(深圳)有限公司 Cursor gesture input method and device
CN103543904A (en) * 2012-07-13 2014-01-29 汉王科技股份有限公司 Method and device for moving application program icon to target split screen
CN109213401A (en) * 2018-08-28 2019-01-15 南昌努比亚技术有限公司 Double-sided screen application icon method for sorting, mobile terminal and readable storage medium storing program for executing
CN110069305A (en) * 2019-03-28 2019-07-30 南京维沃软件技术有限公司 A kind of screen interface switching method and terminal device
CN111078115A (en) * 2012-12-06 2020-04-28 三星电子株式会社 Display apparatus and control method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120117495A1 (en) * 2010-10-01 2012-05-10 Imerj, Llc Dragging an application to a screen using the application manager
CN102955650A (en) * 2011-08-25 2013-03-06 幻音科技(深圳)有限公司 Cursor gesture input method and device
CN103543904A (en) * 2012-07-13 2014-01-29 汉王科技股份有限公司 Method and device for moving application program icon to target split screen
CN111078115A (en) * 2012-12-06 2020-04-28 三星电子株式会社 Display apparatus and control method thereof
CN109213401A (en) * 2018-08-28 2019-01-15 南昌努比亚技术有限公司 Double-sided screen application icon method for sorting, mobile terminal and readable storage medium storing program for executing
CN110069305A (en) * 2019-03-28 2019-07-30 南京维沃软件技术有限公司 A kind of screen interface switching method and terminal device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114879850A (en) * 2022-07-11 2022-08-09 统信软件技术有限公司 Control method and device of keyboard indicator light, computing equipment and storage medium
CN114879850B (en) * 2022-07-11 2022-09-27 统信软件技术有限公司 Control method and device of keyboard indicator light, computing equipment and storage medium

Similar Documents

Publication Publication Date Title
US9432322B2 (en) Electronic sticky note system, information processing terminal, method for processing electronic sticky note, medium storing program, and data structure of electronic sticky note
US9619108B2 (en) Computer-implemented systems and methods providing user interface features for editing multi-layer images
US10747391B2 (en) Method and device for executing applications through application selection screen
CN109739372B (en) Graph drawing method for handwriting input equipment and handwriting reading equipment
US20070250788A1 (en) Optimal Display of Multiple Windows within a Computer Display
US9910584B2 (en) Method for manipulating folders and apparatus thereof
EP4224301A1 (en) Payment interface display method and apparatus, and electronic device
US20130104017A1 (en) Method and apparatus for displaying e-book in terminal having function of e-book reader
CN110457102B (en) Visual object blurring method, visual object rendering method and computing equipment
CN110377220B (en) Instruction response method and device, storage medium and electronic equipment
WO2023155877A1 (en) Application icon management method and apparatus and electronic device
CN111783385A (en) Note processing method based on electronic book, electronic equipment and storage medium
CN114721565A (en) Application program starting method and device, electronic equipment and storage medium
CN113625931A (en) Desktop switching method, computing device and readable storage medium
CN114415886A (en) Application icon management method and electronic equipment
WO2024088318A1 (en) Icon management method and apparatus
CN113742297A (en) File preview method, computing device and storage medium
US20230334740A1 (en) Image display method, apparatus, and electronic device
WO2023241612A1 (en) File selection method and apparatus, electronic device, and readable storage medium
WO2023155874A1 (en) Application icon management method and apparatus, and electronic device
WO2023155858A1 (en) Document editing method and apparatus
CN112434494A (en) Text editing method, device, terminal and storage medium
US20190332237A1 (en) Method Of Navigating Panels Of Displayed Content
WO2022247787A1 (en) Application classification method and apparatus, and electronic device
CN113407290B (en) Application notification display method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination