Detailed Description
The present invention is described with reference to the drawings, wherein like reference numerals are used to refer to similar or equivalent elements throughout the several views. The drawings are not drawn to scale but are merely illustrative of the invention. Several aspects of the invention are described below and with reference to example applications for illustration. It should be understood that numerous specific details, relationships, and methods are set forth to provide a full understanding of the invention. One skilled in the relevant art will readily recognize, however, that the invention can be practiced without one or more of the specific details, or with other methods. In other instances, well-known structures or operations are not shown in detail to avoid obscuring the invention. The present invention is not limited by the illustrated ordering of acts or events, as some acts may occur in different orders and/or concurrently with other acts or events. Moreover, not all illustrated acts or events are required to be implemented in accordance with the methodologies of the present invention.
The following description is an example of the present invention. The general principles of the present invention are intended to be illustrative, but not limiting, of the invention, the scope of which is defined by the claims.
FIG. 1 is a diagram illustrating acomputer device 100 according to an embodiment of the invention. As shown in fig. 1, thecomputer apparatus 100 has adisplay device 108, and thecomputer apparatus 100 further includes: astorage unit 104 and aprocessing unit 102. Theprocessing unit 102 is electrically coupled to thememory unit 104 and thedisplay device 108.
In some embodiments, thecomputer device 100 may be a Personal Computer (PC), a notebook computer (laptop computer), a tablet computer (tablet computer), a smart phone, or the like. In some embodiments, theprocessing unit 102 may be a controller (controller), a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a field programmable logic array (FPGA), a Micro Controller Unit (MCU), a microprocessor unit (MPU), or the like, but the invention is not limited thereto.
In some embodiments, theMemory unit 104 may be a Dynamic Random Access Memory (DRAM), a Static Random Access Memory (SRAM), a flash Memory (flash Memory), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Non-Volatile Memory (Non-Volatile Memory), a Hard Disk Drive (Hard Disk Drive, HDD), a Solid State Drive (SSD), or the like, but the invention is not limited thereto.
In some embodiments, theDisplay device 108 may be a Plasma Display (Plasma Display Panel), a Liquid Crystal Display (LCD), a Thin film transistor liquid crystal Display (TFT-LCD), a light emitting diode Display (LED Display), or the like, but the invention is not limited thereto.
Although FIG. 1 only shows theprocessing unit 102 connected to onedisplay device 108, in other embodiments, theprocessing unit 102 may be connected to a plurality of display devices, but the invention is not limited thereto.
FIG. 2 is a schematic diagram of a display area of adisplay device 108 according to an embodiment of the invention. FIG. 3 is a diagram illustrating a window configuration table 120 according to an embodiment of the invention. Please refer to fig. 1, fig. 2 and fig. 3 for describing each of the following embodiments.
In some embodiments, thecomputer device 100 is installed with a plurality of first programs and a plurality of second programs, and the plurality of first programs and the plurality of second programs can be stored in hardware (such as thestorage unit 104, other memories or hard disks) with storage function in thecomputer device 100. In thecomputer device 100, a database is created, and the created database is stored in thestorage unit 104. Then, thecomputer device 100 can automatically arrange the windows displayed on thedisplay device 108 by the database. How theprocessing unit 102 creates the database stored in thestorage unit 104 will be described below with reference to fig. 1, 2 and 3.
In thecomputer device 100, theprocessing unit 102 builds a database, and the database has a plurality of first identifications respectively corresponding to a plurality of first procedures, a plurality of second identifications respectively corresponding to a plurality of second procedures, a plurality of working modes and a plurality of window configurations. In the database, each of the plurality of working modes corresponds to each of the plurality of window configurations, and each of the plurality of working modes corresponds to each of the plurality of first programs. In addition, in the database, each of the plurality of first programs has at least one corresponding second program, and each of the plurality of window configurations corresponds to the corresponding first program and the corresponding second program.
As shown in FIG. 2, theprocessing unit 102 can flexibly set the database by editing the program of theprocessing unit 102. In one embodiment, theprocessing unit 102 sets a plurality of applications as the first program, for example: a game program, a text editing program, and the like are set as the first program, but the present invention is not limited thereto. In the library, theprocessing unit 102 sets the first recognition W1 corresponding to the game program and the second recognition W2 corresponding to the text editing program.
As shown in fig. 2, theprocessing unit 102 may also set other applications as a second program, such as: the recording program, the video communication program, and the like are set as the second program, but the present invention is not limited thereto. In the library, the second recognition X1 is set to correspond to a video recording program, and the second recognition X2 is set to correspond to a video communication program. Theprocessing unit 102 in thecomputer device 100 can easily identify the activated first program or second program through the database first identifications W1 and W2 or second identifications X1 and X2. In addition, the first identifications W1 and W2 or the second identifications X1 and X2 can prevent the library from occupying too much storage capacity of thestorage unit 104. It is particularly noted that the present invention illustrates the spirit of the present invention in a limited number of first and second programs, but is not intended to limit the scope of the present invention. The first identities W1 and W2 or the second identities X1 and X2 in the library are only for the corresponding first and second programs. For simplifying the description of the present invention, in the following embodiments, since the first identifier W1 in the database corresponds to a game program, it is hereinafter referred to as a game program W1; since the first recognition W2 in the database corresponds to a text editing program, it is hereinafter referred to as a text editing program W2; since the second ID X1 in the database corresponds to the recording procedure, it is hereinafter referred to as the recording procedure X1; since the second identifier X2 in the database corresponds to the video communication procedure, it is hereinafter referred to as the video communication procedure X2, but the invention is not limited thereto.
As mentioned above, the database further includes a plurality of operation modes (e.g., game mode, office mode, chat mode) and a window configuration table 120. As shown in FIG. 3, the window configuration table 120 includes a plurality of window configurations (e.g., window configurations (a) - (k)). In the database, theprocessing unit 102 sets each first program to correspond to a different working mode, and sets each working mode to correspond to a different window configuration, as shown in table 1:
TABLE 1
Table 1 may represent a library stored in thestorage unit 104.
In the database (table 1), theprocessing unit 102 sets the game program W1 corresponding to the game mode, and theprocessing unit 102 sets the game mode corresponding to the window configuration (g). In the library, theprocessing unit 102 sets the text editor W2 corresponding to the office mode, and theprocessing unit 102 sets the office mode corresponding window configuration (e). As mentioned above, in the database, theprocessing unit 102 sets each first program corresponding to at least one second program, so that each window configuration (a) - (k) can correspond to a first program and at least one second program, respectively.
As shown in table 1, theprocessing unit 102 sets the game program W1 to correspond to the video program X1 and the video communication program X2, so the window configuration (g) corresponds to one first program (game program W1) and two second programs (video program X1 and video communication program X2). In the library, theprocessing unit 102 sets the text editing program W2 corresponding to the video communication program X2, so the window configuration (e) corresponds to a first program (text editing program W2) and a second program (video communication program X2). It is particularly noted that the examples in table 1 are only for illustrating the present invention, and are not intended to explain the scope of the present invention, and table 1 does not list all the embodiments to simplify the description.
With continued reference to Table 1, when the database (Table 1) is built, the database is stored in thestorage unit 104. When one or more first programs (e.g., game program, text editing program) in table 1 are activated, theprocessing unit 102 finds a main window (or foreground window) having the most foreground in the display area of thedisplay device 108 as a main program. As shown in fig. 2, when the game program W1 and the text editing program W2 are simultaneously activated, the display area of thedisplay device 108 simultaneously displays a window P1 of the game program W1 and a window P2 of the text editing program W2. At this time, theprocessing unit 102 finds the main window with the most foreground (formed) from the windows P1 and P2. As shown in FIG. 2, when theprocessing unit 102 finds that the window P1 is the most promising main window, theprocessing unit 102 takes the game program W1 as the main program.
In general, when a user is executing a program, the window is called the main window with the most prospect, and the color of the main window with the most prospect becomes most obvious, for example: the window becomes darker or lighter in color. Therefore, theprocessing unit 102 can determine the main window with the most promising property according to the color depth, lightness or brightness of the window, but the invention is not limited thereto. That is, when theprocessing unit 102 determines that the window P1 is darkened, theprocessing unit 102 determines that the window P1 is the main window with the most prospect, and sets the game program W1 as the main program.
In other embodiments, when theprocessing unit 102 uses the game program W1 as the main program, theprocessing unit 102 may also zoom out or close the window of the first program (e.g., the text editing program W2), but the invention is not limited thereto.
Then, according to the first identifications (W1-W2) of the database (Table 1), theprocessing unit 102 selects the working mode corresponding to the main program from the working modes stored in thestorage unit 104 according to the main program as the main working mode. As shown in fig. 2 and table 1, when theprocessing unit 102 recognizes the game program W1 as the main program, theprocessing unit 102 finds the operation mode corresponding to the game program W1 as the game mode from the library (table 1), and selects the game mode as the main operation mode.
Next, in the database (Table 1), theprocessing unit 102 selects the window configuration corresponding to the primary operating mode. As shown in Table 1, when theprocessing unit 102 selects the game mode as the main operation mode, theprocessing unit 102 finds the window configuration (g) corresponding to the game mode from the database (Table 1), and theprocessing unit 102 selects the window configuration (g) from the window configuration table 120 to prepare for dividing the display area of thedisplay device 108. As will be explained further below, theprocessing unit 102 divides the display area of thedisplay device 108.
FIG. 4A is a diagram illustrating a window configuration of adisplay device 108 according to an embodiment of the invention. FIG. 4B is a diagram illustrating the resolution of thedisplay device 108 according to an embodiment of the invention. FIG. 4C is a diagram illustrating a window configuration of adisplay device 108 according to another embodiment of the invention. Please refer to fig. 1, fig. 3, fig. 4A, fig. 4B and fig. 4C for describing the following embodiments.
In some embodiments, the size of the display area of thedisplay device 108 is generally the same as or close to the size of the display screen of thedisplay device 108, and one of ordinary skill in the art generally refers to the window size being the same as the display area of thedisplay device 108 in a full screen mode (full screen mode), but the invention is not limited thereto.
When theprocessing unit 102 selects the window configuration corresponding to the main operating mode, theprocessing unit 102 divides the display area of thedisplay device 108 into at least a first region R1 and a second region R2 according to the selected window configuration. The area of the first region R1 is greater than or equal to one-fourth of the area of the display region. That is, after theprocessing unit 102 selects the window configuration (g) from the window configuration table 120, theprocessing unit 102 divides the display area of thedisplay device 108 along a y-axis direction according to the window configuration (g), so that the display area is divided into a first area R1 and a second area R2, as shown in fig. 4A.
In some embodiments, the display area of thedisplay device 108 has a selectable resolution (resolution), such as: the resolution of the computer screen is as follows: 800 × 600dpi, 1280 × 720dpi, 1600 × 900dpi, 1920 × 1080dpi, etc. Taking the resolution of 800 × 600dpi as an example, theprocessing unit 102 may divide the x-direction length of the display area of thedisplay device 108 into 800 equal parts according to the resolution of 800 × 600dpi, and divide each equal part of the x-direction length (hereinafter referred to as x-bit value) by bit values of 0 to 799, respectively, as shown in fig. 4B. Theprocessing unit 102 can divide the y-direction length of the display area of thedisplay device 108 into equal parts 600, and divide each equal part of the y-direction length (hereinafter referred to as y-bit value) by the bit values 0-599, as shown in FIG. 4B.
As shown in FIG. 4B, the window configurations (a) - (k) can be set to cut along the y-direction of thedisplay device 108 from any x-bit value (and/or y-bit value) in the display area. The window configurations (a) - (k) may be configured to be cut along the x-direction of thedisplay device 108 from any x-bit value (and/or y-bit value) of the display area. For example, window configuration (g) defines a slice along the y-direction ofdisplay device 108 fromx-bit value 399 and y-bit value 0 tox-bit value 399 and y-bit value 599. The window configuration (g) defines a cut from thex-bit value 399 and the y-bit value 299 to thex-bit value 799 and the y-bit value 299 along the x-direction of thedisplay device 108. In addition, the window arrangements (a) to (k) may be arranged such that the x-direction cutting is performed first or the y-direction cutting is performed first. For example, the window arrangement (g) provides for cutting in the y-direction first, followed by cutting in the x-direction.
As shown in FIG. 4A and FIG. 4B, when theprocessing unit 102 selects the window configuration (g) from the window configuration table 120, theprocessing unit 102 cuts the display area from thex-bit value 399 and the y-bit value 0 to thex-bit value 399 and the y-bit value 599 along the y-direction of thedisplay device 108. In this way, the display area of thedisplay device 108 is divided into the first region R1 and the second region R2, as shown in fig. 4A.
Next, as shown in FIG. 4B, according to the selected window configuration (g), theprocessing unit 102 cuts the second region R2 along the x-direction of thedisplay device 108 from thex-bit value 399 and the y-bit value 299 to thex-bit value 799 and the y-bit value 299. As such, the second region R2 is cut into sub-regions S1 and S2, as shown in fig. 4C. Finally, theprocessing unit 102 cuts the display area of thedisplay device 108 as shown in FIG. 4C, and the window configuration (g) is the same.
Then, theprocessing unit 102 adjusts and displays the main window with the most perspective in the first region R1 of the display area. Based on the selected window configuration, theprocessing unit 102 displays and adjusts the window of the at least one second program in the second region R2.
Thus, in FIG. 4C and Table 1, theprocessing unit 102 selects the window configuration (g) corresponding to the game mode to cut the display area of thedisplay device 108. Therefore, the window P1 of the game program W1 is adjusted and displayed in the first region R1 of the display area, and the window P3 of the video program X1 and the window P4 of the video program X2 corresponding to the game program W1 are adjusted and displayed in the sub-region S1 and the sub-region S2 of the second region R2, respectively.
In some embodiments, after the main window with the most prospect (e.g., window P1 of the game program W1) is displayed in the first region R1, theprocessing unit 102 automatically resizes the main window with the most prospect to fit the operation habit of the user. Please refer to fig. 4B and 4C. In FIG. 4C, the x-direction length of the first region R1 is 400dpi (x bit range: 0 to 399), and the y-direction length of the first region R1 is 600dpi (y bit range: 0 to 599). Therefore, in some embodiments, the x-direction length of the main window displayed in the first region R1 is adjusted to 400dpi, and the y-direction length of the main window is adjusted to 600 dpi. That is, the main window shown in the first region R1 has the same length in the x-direction and the same length in the y-direction as the first region R1, but the invention is not limited thereto. After completing the adjustment of the x-direction length and the y-direction length of the main window, theprocessing unit 102 moves the main window to the first region R1 and fills the main window in the first region R1.
For example, referring to fig. 2 and 4C, when the window P1 of the game program W1 is used as the main window, theprocessing unit 102 first moves the window P1 to the first region R1, and theprocessing unit 102 further adjusts the x-direction length of the window P1 to be equal to the x-direction length of the first region R1 (e.g., 800dpi), and theprocessing unit 102 further adjusts the y-direction length of the window P1 to be equal to the y-direction length of the first region R1 (e.g., 600 dpi). Then, theprocessing unit 102 adjusts the window P1 to just fill the first region R1.
Similarly, theprocessing unit 102 adjusts the size and position of the windows of the second program (e.g., window P3 of video program X1 and window P4 of video program X2) to be displayed in sub-area S1 and sub-area S2, respectively, in the same way as the main window. Therefore, the present invention does not need to describe the method for adjusting the window of the second program. For example: theprocessing unit 102 adjusts window P3 of the video program X1 to just fill the sub-region S1, and theprocessing unit 102 adjusts window P4 of the video program X2 to just fill the sub-region S2.
In some embodiments, the window configurations (a) - (e) and (g) - (j) in the window configuration table 120 are all configured such that the area of the first region is greater than or equal to half the area of thedisplay device 108. The first area of the window configuration (a) is equal to the area of thedisplay device 108, and the second area of the window configuration (a) is not set. In addition, the window configuration (f) is to divide the display area of thedisplay device 108 into a first region, a second region and a third region, wherein the area of the first region is equal to about one third of the area of thedisplay device 108. The window configuration (k) is to divide the display area of thedisplay device 108 into a first region, a second region, a third region and a fourth region, wherein the area of the first region is approximately equal to one-fourth of the area of thedisplay device 108.
FIG. 5 is a flowchart illustrating adisplay method 500 according to an embodiment of the invention. Please refer to fig. 1 to 5 for the following embodiments. Thedisplay method 500 is primarily operated by theprocessing unit 102 and begins withstep 501.
Instep 501, thestorage unit 104 stores a library (shown in table 1), wherein the library includes: a plurality of first identifiers corresponding to the plurality of first programs, respectively, a plurality of second identifiers corresponding to the plurality of second programs, respectively, a plurality of operating modes, and a window allocation table 120 having a plurality of window allocations (a) - (k). Each of the plurality of operating modes corresponds to each of the plurality of window configurations (a) - (k), and each of the plurality of operating modes corresponds to each of the plurality of first programs, and each of the plurality of first programs has at least one second program corresponding thereto, and each of the plurality of window configurations (a) - (k) corresponds to the first program and the at least one second program corresponding thereto, respectively. The correspondence relationship is shown in table 1, but the present invention is not limited thereto.
In some embodiments, thememory unit 104 may execute a memory database under the control of theprocessing unit 102. Those skilled in the art can program theprocessing unit 102 to complete the database establishment and transfer to thestorage unit 104.
Instep 503, theprocessing unit 102 finds the main window having the most promising property in the display area of thedisplay device 108 from the one or more first programs (e.g., the game program W1 and the text editing program W2) that are activated as the main program. For example: in FIG. 2, when the game program W1 and the text editing program W2 are both activated, the window P1 of the game program W1 and the window P2 of the text editing program W2 are displayed in the display area of thedisplay device 108. Wherein theprocessing unit 102 finds the window P1 of the game program W1 as the main window with the most prospect, and takes the game program W1 as the main program. How theprocessing unit 102 determines the main window with the most promising view is described in detail in the foregoing, and therefore, the description thereof is omitted.
Instep 505, theprocessing unit 102 selects the operation mode corresponding to the main program as the main operation mode from the operation modes stored in thestorage unit 104 according to the first identifications of the first programs. As shown in table 1, when the game program W1 is the main program, theprocessing unit 102 selects the operation mode of the corresponding game program W1 as the game mode, and takes the game mode as the main operation mode.
Instep 507, a window configuration corresponding to the primary operating mode is selected. Referring to table 1, when theprocessing unit 102 sets the game mode as the main operation mode, theprocessing unit 102 selects the window configuration (g) corresponding to the game mode from table 1.
Instep 509, theprocessing unit 102 divides the display area into at least a first region R1 and a second region R2 according to the selected window configuration. Wherein the area of the first region R1 is greater than or equal to one-fourth of the area of the display region. That is, when the window configuration (g) is selected by theprocessing unit 102, theprocessing unit 102 divides the display area into the first region R1 and the second region R2 according to the window configuration (g), as shown in FIG. 4A. In fig. 4A, the area of the first region R1 is equal to about half of the area of the display region.
Instep 511, theprocessing unit 102 adjusts and displays the main window with the most perspective in the first region R1 of the display area. That is, instep 503, if theprocessing unit 102 determines that the window P1 of the game program W1 is the most promising main window, instep 511, theprocessing unit 102 adjusts the window P1 of the game program W1 and displays the window P1 in the first area R1. The method for adjusting and displaying the main window with the most promising results is described in detail above, and therefore, the detailed description thereof is omitted.
Instep 513, theprocessing unit 102 then determines whether a second program corresponding to the first program is started. For example, in fig. 2 and table 1, the second programs corresponding to the game program W1 are a video program X1 and a video communication program X2. If theprocessing unit 102 determines that the video program X1 and/or the video communication program X2 is not enabled, theprocessing unit 102 proceeds to step 515 and directly selects the window configuration (a) in the window configuration table 120. According to the window configuration (a), theprocessing unit 102 adjusts the area of the first region R1 to be the same as the area of the display region, and theprocessing unit 102 directly sets the area of the second region R2 to zero. Thus, the display area of thedisplay device 108 only displays the main window (window P1 of game program W1) with the most perspective.
In other embodiments, if theprocessing unit 102 determines that the video program X1 and/or the video communication program X2 is not activated, theprocessing unit 102 proceeds to step 515 and directly cancels the window configuration table 120 and directly executes the full screen mode in the display area of thedisplay device 108. At this time, all the activated programs can be selectively displayed in the display area of thedisplay device 108.
Instep 513, if theprocessing unit 102 determines that the video program X1 and the video communication program X2 are started, theprocessing unit 102 continues to maintain the selected window configuration (g), and proceeds to step 517.
Instep 517, theprocessing unit 102 displays and adjusts the window of the at least one second program in the second region R2 according to the selected window configuration. Instep 517, according to the window configuration (g), theprocessing unit 102 continues to divide the second region R2 into sub-regions S1 and S2, as shown in fig. 4C. Then, theprocessing unit 102 sets the window P3 of the video recording procedure X1 and the window P4 of the video communication procedure X2 in the sub-area S1 and the sub-area S2, respectively, adjusts the size of the window P3 of the video recording procedure X1 to be the same as the sub-area S1, and adjusts the size of the window P4 of the video communication procedure X2 to be the same as the sub-area S2. In some embodiments, the windows of each of the at least one second program that has been launched have the same size. That is, the size of the video program X1 is the same as the video communication program X2.
The method for adjusting the window of the second program is basically the same as the method for adjusting the main window, and has been described in detail before, so the details are not repeated here.
In some embodiments, thedisplay method 500 of the present invention can be packaged in a tool program, and a user can install the tool program on any computer device (e.g., a personal computer, a notebook computer, etc.), and the computer device having the tool program can directly execute thedisplay method 500 of the present invention.
In summary, according to thecomputer device 100 and thedisplay method 500 of the present invention, the user can automatically adjust the window displayed on the screen more conveniently, and the user does not need to arrange the windows manually, which results in unnecessary time waste.
Although the present invention has been described with respect to the preferred embodiments, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted without departing from the true spirit and scope of the invention, and therefore the scope of the invention should be limited only by the claims that follow.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms "a", "an" and "the" also include the plural forms unless the context clearly dictates otherwise. Furthermore, to the extent that the terms "includes," including, "" has, "" having, "or other variations are used in either the detailed description and/or the claims, these terms are intended to be inclusive in a manner similar to the term" comprising.