A browser control method and browser
A control method and browser technology, applied in the field of human-computer interaction, can solve the problems of increased time spent on locating buttons, small operable area of buttons, inconvenient use, etc., and achieve the effect of easy operation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0075] This embodiment provides a browser control method, see figure 1 , the specific process of the method includes:
[0076] S101. Generate a layered transparent window if a mouse trigger click message of the browser window is received; the layered transparent window covers the browser window.
[0077] Generally speaking, when the user operates the mouse, clicking a button on the mouse can perform actions such as single click and double click, and a mouse trigger click message is generated. In order not to affect the user's general operation habit of the left mouse button, in the embodiment of the present invention, the present invention is implemented when the user clicks the right mouse button. Of course, those skilled in the art can easily understand that the mouse trigger click message mentioned in the embodiment of the present invention can also be triggered by triggering the left mouse button, the scroll wheel or other buttons capable of implementing a triggering acti...
Embodiment 2
[0099] This embodiment takes the WINDOWS system as an example to describe a browser control method provided by the present invention, see figure 2 , the specific process of the method includes:
[0100] S201. If the right mouse button click message WM_RBUTTONDOWN of the browser window is received, acquire the size and position of the browser window relative to the screen when the mouse right click message is received.
[0101] S202. Create a layered transparent window, where a parent window of the layered transparent window is the browser window, and the layered transparent window has the same size and position as the browser window.
[0102] Under WINDOWS system, when creating a layered transparent window, first use the CreateWindowEx function to create a layered transparent window with the WS_EX_LAYERED extended style, and the parent window is the browser window, and then use the SetWindowPos function to set the size and position of the layered transparent window with the c...
Embodiment 3
[0124] This embodiment provides a browser, see image 3 , the browser includes:
[0125] Mouse message listener 301, for receiving the mouse message of browser window;
[0126] The window generator 302 is used to generate a layered transparent window when the mouse message listener 301 receives a mouse trigger click message, and the layered transparent window is covered on the browser window;
[0127] The mouse message listener 301 is also used to monitor mouse messages in the layered transparent window;
[0128] A mouse displacement acquirer 303, configured to obtain corresponding mouse displacement information when the mouse message listener 301 receives a mouse movement message in the layered window;
[0129] A mouse track drawer 304, configured to draw a mouse track corresponding to the mouse displacement information in the layered transparent window;
[0130] The browser operation instruction executor 305 is used to match the mouse track and the browser operation instr...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


