CN112269642A - Application program control method, device, equipment and storage medium based on Windows system - Google Patents

Application program control method, device, equipment and storage medium based on Windows system Download PDF

Info

Publication number
CN112269642A
CN112269642A CN202011060156.0A CN202011060156A CN112269642A CN 112269642 A CN112269642 A CN 112269642A CN 202011060156 A CN202011060156 A CN 202011060156A CN 112269642 A CN112269642 A CN 112269642A
Authority
CN
China
Prior art keywords
program
window
list
displayed
programs
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
CN202011060156.0A
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.)
Fullsee Technology Co ltd
Original Assignee
Fullsee 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 Fullsee Technology Co ltd filed Critical Fullsee Technology Co ltd
Priority to CN202011060156.0A priority Critical patent/CN112269642A/en
Publication of CN112269642A publication Critical patent/CN112269642A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/15Correlation function computation including computation of convolution operations
    • 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/0482Interaction with lists of selectable items, e.g. menus

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Physics (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computing Systems (AREA)
  • Algebra (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application provides an application program control method, device, equipment and storage medium based on a Windows system, and the method comprises the following steps: calling a GetWindowText function in a Windows system to obtain a list of currently running application programs; selecting one or more application programs in the list as main programs and selecting another one or more application programs as auxiliary programs; configuring window size, display position and priority parameters of the auxiliary programs to be displayed in the list; and calling a SetWindowPos function in the Windows system based on the window size, the display position and the priority parameter, and displaying the window of the auxiliary program to be displayed in a preset manner before the window of one or more main programs. The application can get rid of the limitation of a computer screen, avoid frequent switching among a plurality of office software, and effectively improve the working efficiency.

Description

Application program control method, device, equipment and storage medium based on Windows system
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for controlling an application program based on a Windows system.
Background
Computers have been popularized in various aspects of daily work and life, office software is basically required to be used by more than 90% of office workers and students as long as the computers are opened, and the office software becomes essential basic software for work no matter whether drafting files, writing reports or statistically analyzing data. In many cases, a plurality of office software is required to be operated simultaneously, so that switching and data interaction among different office software become necessary. Due to the limitation of a computer screen, part of the software cannot be displayed on a desktop at the same time, and frequent switching of each office software can reduce office efficiency and is extremely inconvenient to operate.
Disclosure of Invention
In order to avoid the problem of reduced office efficiency caused by frequent switching of a plurality of office software, the application program control method, device, equipment and storage medium based on the Windows system are provided.
In a first aspect, the present application provides an application program control method based on a Windows system, including: calling a GetWindowText function in a Windows system to obtain a list of currently running application programs; selecting one or more application programs in the list as a main program and selecting another one or more application programs as auxiliary programs; configuring the window size, the display position and the priority parameter of the auxiliary program to be displayed in the list; and calling a SetWindowPos function in a Windows system based on the window size, the display position and the priority parameter, and displaying the window of the auxiliary program to be displayed in a preset manner in the window of one or more main programs.
Preferably, before displaying the window of the auxiliary program to be displayed before the window of the plurality of main programs, the method includes: and according to the size of the screen and the size of the window of each main program, averagely distributing the display area of the window of each main program by taking the central point of the screen as a demarcation point, and displaying the windows of the plurality of main programs in a tiled mode.
Preferably, after the obtaining the list of the currently running application programs, the method further includes: calling a GetWindowText function in a Windows system, acquiring the newly opened application program at a preset frequency, and adding the newly opened application program into the list according to the time sequence; or add the application to the list as needed.
Preferably, the configuring the window size, the display position, and the priority parameter of the auxiliary program to be displayed in the list includes: configuring the width and the height of a window of the auxiliary program to be displayed in the list so as to realize the configuration of the size of the window of the auxiliary program to be displayed; establishing a two-dimensional coordinate system by taking the central position of a certain main program window as a coordinate origin, and configuring the coordinates of the central position of the auxiliary program window in the two-dimensional coordinate system so as to realize the configuration of the display position of the auxiliary program to be displayed; and configuring the wFlags parameter of the auxiliary program to be displayed so as to realize the configuration of the priority parameter of the auxiliary program to be displayed.
Preferably, after the displaying the window of the auxiliary program to be displayed before the window of one or more of the main programs, the method further includes: and hiding or calling out the window of the auxiliary program to be displayed in response to a switching instruction.
In a second aspect, the present application provides an application control device based on a Windows system, including: the list acquisition module is used for calling a GetWindowText function in the Windows system and acquiring a list of currently running application programs; a program selection module for selecting one application program in the list as a main program and selecting another application program or another application programs as auxiliary programs; the parameter configuration module is used for configuring the window size, the display position and the priority parameter of the auxiliary program to be displayed in the list; and the window display module is used for calling a SetWindowPos function in a Windows system based on the window size, the display position and the priority parameter, and displaying the window of the auxiliary program to be displayed in a preset manner before the window of one or more main programs.
Preferably, the method further comprises the following steps: and the window position configuration module is used for averagely distributing the display area of the window of each main program by taking the central point of the screen as a dividing point according to the size of the screen and the size of the window of each main program, and displaying the windows of the main programs in a tiled mode.
Preferably, the method further comprises the following steps: the program adding module is used for calling a GetWindowText function in the Windows system, acquiring the newly opened application program at a preset frequency and adding the newly opened application program into the list according to the time sequence; or for adding the application to the list as needed.
Preferably, the parameter configuration module includes: the window size configuration unit is used for configuring the width and the height of the window of the auxiliary program to be displayed in the list so as to realize the configuration of the window size of the auxiliary program to be displayed; the window position configuration unit is used for establishing a two-dimensional coordinate system by taking the central position of the main program window as a coordinate origin, and configuring the coordinates of the central position of the auxiliary program window in the two-dimensional coordinate system so as to realize the configuration of the display position of the auxiliary program to be displayed; and the window parameter configuration unit is used for configuring the wFlags parameter of the auxiliary program to be displayed so as to realize the configuration of the priority parameter of the auxiliary program to be displayed.
Preferably, the method further comprises the following steps: and the window switching module is used for responding to a switching instruction and hiding or calling out the window of the auxiliary program to be displayed.
In a third aspect, the present application provides a terminal device comprising a memory and a processor, the memory having stored thereon a computer program, the processor implementing the method according to any one of the first aspect when executing the program.
In a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method according to any one of the first aspects.
In the application program control method, device, equipment and storage medium based on the Windows system provided by the embodiment of the application program control method, device, equipment and storage medium, a list of currently running application programs is obtained through a GetWindowText function, one application program is selected from the list as a main program, another application program or other application programs are selected as auxiliary programs, the window size, the display position and the priority parameter of the auxiliary program to be displayed in the list are configured, a SetWindowPos function in the Windows system is called based on the window size, the display position and the priority parameter, and a window of the auxiliary program to be displayed is displayed in front of the window of the main program in a top mode.
It should be understood that what is described in this summary section is not intended to limit key or critical features of the embodiments of the application, nor is it intended to limit the scope of the application. Other features of the present application will become apparent from the following description.
Drawings
The above and other features, advantages and aspects of various embodiments of the present application will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. In the drawings, like or similar reference characters designate like or similar elements, and wherein:
FIG. 1 is a flowchart illustrating an application control method based on a Windows system according to an embodiment of the present application;
FIG. 2 is a block diagram of an application control device based on a Windows system according to an embodiment of the present application;
fig. 3 shows a schematic structural diagram of a terminal device suitable for implementing an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
With the popularization of computers, people can not leave computers in work, study and life. Due to different working and learning environments, the scenes of using the computer are different, and even the operating systems are different.
Systems under the Windows 8 system, such as the Windows 7 system, have difficulty implementing multi-software office.
The system on the Windows 8 system, such as the Windows 10 system, has page split screen power supply, can solve the problem of using multi-office software at the same time, but the position of the multi-office software is not controllable, and the ideal top setting effect cannot be achieved.
In order to solve the above problem, embodiments of the present application provide a method, an apparatus, a device, and a storage medium for controlling an application program based on a Windows system.
The technical solution of the present application will be described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating an application control method based on a Windows system according to an embodiment of the present application. As shown in fig. 1, the application control method based on the Windows system includes the following steps:
and 102, calling a GetWindowText function in the Windows system to acquire a list of currently running application programs.
The GetWindowText function is capable of copying the title bar text of a specified window into a buffer. The prototype of this function is: int GetWindowText (HWND, LPTSTR lpString, Int nMaxCount);
wherein: HWND HWND is a handle to a window or control with text.
When a handle of a process or a control is obtained through a GetWindowText function, if a target window belongs to the current process, the GetWindowText function sends a WM _ GETTEXT message to a specified window or control; if the target window belongs to other processes and has a window title, GetWindowText returns the title text of the window, and if the window has no title, the function returns an empty string.
In this embodiment, when the list of the currently running application program is obtained through the GetWindowText function, a WM _ GETTEXT message may be sent to the currently running application program through the GetWindowText function, so as to copy the title strip text of the currently running application program into one cache region, thereby forming the list. In the list, for example, the applications in the list may be sorted in chronological order of the title bar text of the applications obtained by the GetWindowText function.
When a new application needs to be added to the list, the addition can be done in an automatic or manual manner.
For example, when a new application program is added to the list in an automatic manner, the GetWindowText function may be continuously called, a title bar text of the newly opened application program may be obtained at a preset frequency, and the title bar text may be added to the list according to the obtained chronological order. It should be noted that the preset frequency can be set according to the needs, for example, the preset frequency can be set for every 15 minutes or every 30 minutes.
For example, when a new application is added to the list manually, the application needed to be used can be added to the list according to the needs of the actual office. Of course, the manual addition is adopted, the addition may be performed according to the time sequence in which the application program is opened, or the addition may be performed to the list in advance according to the priority of use, which is not limited in the embodiment of the present application.
Step 104, one or more application programs are selected from the list as main programs, and another one or more application programs are selected as auxiliary programs.
The list stores the title bar text of the application program, and when the main program and/or the auxiliary program is/are selected, the title bar text of the corresponding application program can be selected. In some embodiments, when the main program and/or the auxiliary program are not selected, the title strip texts of the applications in the list are arranged according to the added time sequence, and after the main program is selected, the title strip texts corresponding to the main program do not participate in the sequencing of the title strip texts corresponding to the other applications.
In one example, a title bar text of a picture viewer, a title bar text of an Excel tool, and a title bar text of a Word tool are stored in the list, and when the contents in the Word tool need to be edited by referring to the contents in the picture and data in an Excel table, the Word tool can be selected as a main program, and the picture viewer and/or the Excel tool are/is used as an auxiliary program, so that the title bar text corresponding to the picture viewer and the title bar text corresponding to the Excel tool can be sorted according to the added time sequence in the list, and the title bar text corresponding to the Word tool does not participate in the sorting.
And 106, configuring the window size, the display position and the priority parameter of the auxiliary program to be displayed in the list.
When the window size of the auxiliary program to be displayed in the configuration list is small, the specific data of the width w and the height h of the opening of the auxiliary program to be displayed in the configuration list, and the specific data of the width w and the height h may be configured, which are not limited herein, and may be set with reference to the window size of the main program, or may be set as needed.
When the display position of the auxiliary program to be displayed in the configuration list is configured, a two-dimensional coordinate system may be established with the center position of the main program window as the origin of coordinates, and the coordinates of the auxiliary program to be displayed may be represented by the coordinates of the center position of the auxiliary program window to be displayed, so that the display position of the application program to be displayed in the configuration list may be implemented by configuring the center coordinates (x, y) of the application program window to be displayed.
The two-dimensional coordinate system can be established by taking the central position of the main program window as the origin of coordinates, and can also be established by taking the upper left corner, the lower left corner, the upper right corner, the lower right corner of the program window or other positions in the window as the origin of coordinates. Meanwhile, the coordinates of the auxiliary program to be displayed can be represented by the coordinates of the center position of the auxiliary program window to be displayed, and the coordinates of the auxiliary program to be displayed can also be represented by the upper left corner, the lower left corner, the upper right corner, the lower right corner or other positions in the window of the auxiliary program window to be displayed.
Of course, the display position of the auxiliary program to be displayed may also be configured by taking the desktop as a reference, for example, a two-dimensional coordinate system is established by taking an arbitrary position on the desktop as an origin, the display positions of the main program window and the auxiliary program window in the two-dimensional coordinate system may be configured respectively, and the configuration method of the display position of the main program window is the same as the configuration method of the display position of the auxiliary program window, and is not described herein again.
When configuring the priority parameters of the auxiliary programs to be displayed in the list, the wFlags parameters of the auxiliary programs to be displayed may be configured. The configuration of the wFlags parameter for the auxiliary programs to be displayed will be described below.
And 108, calling a SetWindowPos function in the Windows system based on the window size, the display position and the priority parameter, and displaying a window of the auxiliary program to be displayed in a preset mode in the window of one or more main programs.
The SetWindowPos function is capable of changing the size, position and z-order of a child window, a pop-up window and a top-level window, wherein the child window, the pop-up window and the top-level window are sequentially ordered on the screen, the top-level window is highest in setting level, and the top-level window is set as the first window in z-order.
The function prototype is:
BOOL SetWindowPos(HWN hWnd,HWND hWndlnsertAfter,int x,int y,int w,int h,UNIT.Flags);
wherein:
HWND HWND is the window handle of the auxiliary program to be displayed;
int x is an x-axis coordinate of the auxiliary program to be displayed;
int y is a y-axis coordinate of the auxiliary program to be displayed;
int w is the width of the auxiliary program to be displayed;
int h is the height of the auxiliary program to be displayed;
flags is a window locating identifier for an auxiliary program to be displayed.
Flags includes SWP _ SHOWWINDOW and SWP _ HIDEWINDOW, and the window corresponding to the flags can be the topmost window by setting the SWP _ SHOWWINDOW and the SWP _ HIDEWINDOW. The wFlags parameter of the auxiliary program to be displayed is configured above, i.e., the values of SWP _ SHOWWINDOW and SWP _ hidefow are configured.
Then, when an application program is selected as a main program, based on the size, the display position and the priority parameter of the window, a SetWindowPos function in a Windows system is called, and a window of an auxiliary program to be displayed is displayed in a top-positioned mode in front of the window of the main program, namely, the configured coordinate (x, y), the size (w, h) and the wFlags parameter of the application program to be displayed are written into the SetWindowPos function, so that the window of the application program to be displayed becomes a top-positioned window, the window of the auxiliary program to be displayed is always displayed in the top-positioned mode in front of the window of the main program, and the problem that the window of the auxiliary program is covered by the window of the main program when the main program is operated is solved.
In some application scenarios, for example, when the contents in the Word tool need to be edited by referring to the contents on the picture and the data in the Excel table, the user selects the Word tool as a main program, a picture viewer and the Excel tool as auxiliary programs, the size, position coordinates and priority parameters of the two auxiliary programs can be set respectively, the SetWindowPos function in the Windows system is called to be displayed in the upper left corner and the upper right corner of the window of the Word tool, and when the user edits the contents in the Word tool by referring to the contents on the picture and the data in the Excel table, the picture viewer and the Excel tool cannot be covered and disappear by the window of the Word tool due to losing focus.
When a plurality of application programs are selected as main programs, the display area of the window of each main program can be averagely distributed by taking the central point of the screen as a dividing point according to the size of the screen and the size of the window of each main program, and the windows of the main programs are displayed in a tiled mode.
For example, when two application programs are selected as the main programs, the central point of the screen can be used as a dividing point, and the areas on the left side and the right side of the central point are respectively divided into the display areas of the two main programs; the central point of the screen can be used as a demarcation point, the areas on the upper side and the lower side of the central point are divided into two display areas of the main program respectively, and meanwhile, the size of the window of the main program is changed, so that the window of the main program can be adapted to the corresponding display areas.
Of course, when three or more main programs are selected, the screen may be divided into a corresponding number of display regions using the central point as a dividing point.
When the number of the main programs is multiple, a two-dimensional coordinate system can be established by taking the central position of a certain main program as the origin of coordinates, the configuration mode of the auxiliary program is the same as that of the selected main program, and the detailed description is omitted here.
It should be noted that a plurality of main programs may share one or more selected auxiliary programs, or each main program may be individually configured with an auxiliary program corresponding thereto.
To facilitate display and hiding of the auxiliary program window, a shortcut key may be provided to call out and hide the auxiliary program window, such as a shortcut key including, but not limited to, shift + w. When the shortcut key is pressed down, the system can send out a switching instruction, and the window of the auxiliary program to be displayed is hidden or called out according to the switching instruction. Of course, when there are a plurality of main programs, a corresponding shortcut key may be configured for each main program.
In some embodiments, in order to prevent the hidden window from being called out or hidden due to the fact that the shortcut key is touched by mistake, the system can be configured to send out a switching instruction after the shortcut key is pressed for 3 seconds, and therefore the auxiliary program window can be prevented from being called out or hidden due to misoperation.
According to the embodiment of the application, a list of currently running application programs is obtained through a GetWindowText function, one application program is selected as a main program from the list, another application program or another application programs are selected as auxiliary programs, window size, display position and priority parameters of the auxiliary programs to be displayed in the list are configured, a SetWindowPos function in a Windows system is called based on the window size, the display position and the priority parameters, and a window of the auxiliary programs to be displayed is set in front of the window of the main program, so that the auxiliary programs can be prevented from being covered or disappearing by the main program due to losing focus, meanwhile, the limitation of a computer screen is also eliminated, frequent switching among a plurality of office software is avoided, and the working efficiency is effectively improved.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are exemplary embodiments and that the acts and modules referred to are not necessarily required in this application.
The above is a description of method embodiments, and the embodiments of the present application are further described below by way of apparatus embodiments.
Fig. 2 is a block diagram illustrating an application control apparatus based on a Windows system according to an embodiment of the present application. As shown in fig. 2, the application control device based on the Windows system includes:
the list obtaining module 205 is configured to call a GetWindowText function in the Windows system, and obtain a list of currently running application programs.
A program selecting module 210, configured to select one application program in the list as a main program and select another application program or application programs as auxiliary programs.
And the parameter configuration module 215 is configured to configure the window size, the display position and the priority parameter of the auxiliary program to be displayed in the list.
And a window display module 220, configured to call a SetWindowPos function in the Windows system based on the window size, the display position, and the priority parameter, and display a window of the auxiliary program to be displayed before the window of the main program.
In some embodiments, the apparatus further comprises:
the program adding module is used for calling a GetWindowText function in the Windows system, acquiring a newly opened application program at a preset frequency and adding the newly opened application program into the list according to the time sequence; or for adding applications to the list as needed.
In some embodiments, the parameter configuration module 215 includes:
the window size configuration unit is used for configuring the width and the height of a window of the auxiliary program to be displayed in the list so as to realize the configuration of the window size of the auxiliary program to be displayed;
the window position configuration unit is used for establishing a two-dimensional coordinate system by taking the central position of the main program window as a coordinate origin, and configuring the coordinates of the central position of the auxiliary program window in the two-dimensional coordinate system so as to realize the configuration of the display position of the auxiliary program to be displayed;
and the window parameter configuration unit is used for configuring the wFlags parameter of the auxiliary program to be displayed so as to realize the configuration of the priority parameter of the auxiliary program to be displayed.
In some embodiments, the apparatus further comprises:
and the window switching module is used for responding to a switching instruction and hiding or calling out the window of the auxiliary program to be displayed.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the described module may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Fig. 3 shows a schematic structural diagram of a terminal device suitable for implementing an embodiment of the present application.
As shown in fig. 3, the terminal device includes a Central Processing Unit (CPU)301 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)302 or a program loaded from a storage section 308 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data necessary for system operation are also stored. The CPU 301, ROM 302, and RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
The following components are connected to the I/O interface 305: an input portion 306 including a keyboard, a mouse, and the like; an output section 307 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 308 including a hard disk and the like; and a communication section 309 including a network interface card such as a LAN card, a modem, or the like. The communication section 309 performs communication processing via a network such as the internet. A drive 310 is also connected to the I/O interface 305 as needed. A removable medium 311 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 310 as necessary, so that a computer program read out therefrom is mounted into the storage section 308 as necessary.
In particular, according to embodiments of the present application, the process described above with reference to the flowchart fig. 1 may be implemented as a computer software program. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a machine-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 311. The computer program executes the above-described functions defined in the system of the present application when executed by the Central Processing Unit (CPU) 701.
It should be noted that the computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present application may be implemented by software or hardware. The described units or modules may also be provided in a processor, and may be described as: a processor includes a list acquisition module, a program selection module, and a parameter configuration module. The names of these units or modules do not limit the units or modules themselves in some cases, for example, the list obtaining module may also be described as a "module for calling a GetWindowText function in a Windows system to obtain a list of currently running applications".
As another aspect, the present application also provides a computer-readable storage medium, which may be contained in the terminal device described in the above embodiments; or may exist separately without being assembled into the terminal device. The computer-readable storage medium stores one or more programs that, when executed by one or more processors, perform the application control method described in the present application for Windows-based systems.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the application referred to in the present application is not limited to the embodiments with a particular combination of the above-mentioned features, but also encompasses other embodiments with any combination of the above-mentioned features or their equivalents without departing from the spirit of the application. For example, the above features may be replaced with (but not limited to) features having similar functions as those described in this application.

Claims (10)

1. An application program control method based on a Windows system is characterized by comprising the following steps:
calling a GetWindowText function in a Windows system to obtain a list of currently running application programs;
selecting one or more application programs in the list as a main program and selecting another one or more application programs as auxiliary programs;
configuring the window size, the display position and the priority parameter of the auxiliary program to be displayed in the list;
and calling a SetWindowPos function in a Windows system based on the window size, the display position and the priority parameter, and displaying the window of the auxiliary program to be displayed in a preset manner in the window of one or more main programs.
2. The method according to claim 1, wherein before displaying the window of the auxiliary program to be displayed before the window of the plurality of main programs, the method comprises:
and according to the size of the screen and the size of the window of each main program, averagely distributing the display area of the window of each main program by taking the central point of the screen as a demarcation point, and displaying the windows of the plurality of main programs in a tiled mode.
3. The method of claim 1, wherein after obtaining the list of currently running applications, further comprising:
calling a GetWindowText function in a Windows system, acquiring the newly opened application program at a preset frequency, and adding the newly opened application program into the list according to the time sequence; or
Adding the application to the list as needed.
4. The method according to any one of claims 1 to 3, wherein the configuring of window size, display position and priority parameters of auxiliary programs to be displayed in the list comprises:
configuring the width and the height of a window of the auxiliary program to be displayed in the list so as to realize the configuration of the size of the window of the auxiliary program to be displayed;
establishing a two-dimensional coordinate system by taking the central position of a certain main program window as a coordinate origin, and configuring the coordinates of the central position of the auxiliary program window in the two-dimensional coordinate system so as to realize the configuration of the display position of the auxiliary program to be displayed;
and configuring the wFlags parameter of the auxiliary program to be displayed so as to realize the configuration of the priority parameter of the auxiliary program to be displayed.
5. The method according to any one of claims 1 to 3, wherein after displaying the window of the auxiliary program to be displayed before the window of one or more of the main programs, further comprising:
and hiding or calling out the window of the auxiliary program to be displayed in response to a switching instruction.
6. An application program control device based on a Windows system, comprising:
the list acquisition module is used for calling a GetWindowText function in the Windows system and acquiring a list of currently running application programs;
a program selection module for selecting one application program in the list as a main program and selecting another application program or another application programs as auxiliary programs;
the parameter configuration module is used for configuring the window size, the display position and the priority parameter of the auxiliary program to be displayed in the list;
and the window display module is used for calling a SetWindowPos function in a Windows system based on the window size, the display position and the priority parameter, and displaying the window of the auxiliary program to be displayed in a preset manner before the window of one or more main programs.
7. The apparatus of claim 6, further comprising:
and the window position configuration module is used for averagely distributing the display area of the window of each main program by taking the central point of the screen as a dividing point according to the size of the screen and the size of the window of each main program, and displaying the windows of the main programs in a tiled mode.
8. The apparatus of claim 6, further comprising:
the program adding module is used for calling a GetWindowText function in the Windows system, acquiring the newly opened application program at a preset frequency and adding the newly opened application program into the list according to the time sequence; or
For adding the application to the list as needed.
9. An apparatus comprising a memory and a processor, the memory having stored thereon a computer program, wherein the processor, when executing the program, implements the method of any of claims 1 to 5.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1 to 5.
CN202011060156.0A 2020-09-30 2020-09-30 Application program control method, device, equipment and storage medium based on Windows system Pending CN112269642A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011060156.0A CN112269642A (en) 2020-09-30 2020-09-30 Application program control method, device, equipment and storage medium based on Windows system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011060156.0A CN112269642A (en) 2020-09-30 2020-09-30 Application program control method, device, equipment and storage medium based on Windows system

Publications (1)

Publication Number Publication Date
CN112269642A true CN112269642A (en) 2021-01-26

Family

ID=74338719

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011060156.0A Pending CN112269642A (en) 2020-09-30 2020-09-30 Application program control method, device, equipment and storage medium based on Windows system

Country Status (1)

Country Link
CN (1) CN112269642A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114063840A (en) * 2021-11-08 2022-02-18 浙江中控技术股份有限公司 Multi-window control method, system, equipment and medium based on window operating system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114063840A (en) * 2021-11-08 2022-02-18 浙江中控技术股份有限公司 Multi-window control method, system, equipment and medium based on window operating system

Similar Documents

Publication Publication Date Title
CN107861784B (en) Desktop icon sorting method and device and mobile terminal
US20230368144A1 (en) Online collaboration platform
CN112181225A (en) Desktop element adjusting method and device and electronic equipment
EP3932038B1 (en) Calling attention to a section of shared data
CN110032701B (en) Image display control method and device, storage medium and electronic equipment
CN107844953B (en) Conference file management method, device, terminal and computer readable storage medium
CN109145272B (en) Text rendering and layout method, device, equipment and storage medium
US11416503B2 (en) Mining data for generating consumable collaboration events
CN113467660A (en) Information sharing method and electronic equipment
CN108509142A (en) Writing software interaction method and device, terminal equipment and storage medium
CN111510646A (en) Video display method, display device, computer equipment and medium of spliced screen
CN107291340B (en) Method for realizing interface effect, computing equipment and storage medium
CN114528816B (en) Collaborative editing information display method and device, electronic equipment and readable medium
US20220050562A1 (en) Methods and apparatuses for generating a hosted application
EP4231145A1 (en) View display method and apparatus for table, and electronic device
CN112269642A (en) Application program control method, device, equipment and storage medium based on Windows system
CN114116098A (en) Application icon management method and device, electronic equipment and storage medium
CN110647327B (en) Method and device for dynamic control of user interface based on card
CN116610394A (en) Template and module-based data visualization page configuration method, system and device
WO2022228433A1 (en) Information processing method and apparatus, and electronic device
CN109190097B (en) Method and apparatus for outputting information
CN112363668A (en) Multi-view interaction method and device, mobile terminal and computer equipment
CN106126102A (en) Mobile terminal many wallpapers data interactive method and device
CN112633853A (en) Project management method and device and electronic equipment
CN111752428A (en) Icon arrangement method and device, electronic equipment and medium

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