Screen word snatching realization method with word dragging function
A technology of screen word extraction and implementation method, applied in the direction of program control device, etc., can solve the problems of loss of screen word extraction function, inaccurate words and inability to realize, etc., to achieve the effect of eliminating copying
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0036] like figure 1 and figure 2 As shown, the present invention has a method for realizing word extraction from the screen with word marking function, and its specific implementation includes the following steps:
[0037] Step 1: Install the global mouse hook
[0038] Use the SetWindowsHookEx API function to load the global mouse hook in the dll program of the Windows operating system of the computer equipment. Regarding the specific usage of the SetWindowsHookEx function, many books have mentioned it, and this is not the focus of the present invention, so it will not be repeated here.
[0039] Set the preprocessing function after the mouse message is captured to GetMsgProc. The following messages of the mouse need to be processed in GetMsgProc:
[0040] WINAPI GetMsgProc(MSG*msg)
[0041] {
[0042] if(msg->message==WM_MOUSEMOVE){
[0043] g_ptCurrentPoint.x = msg->pt.x;
[0044] g_ptCurrentPoint.y=msg->pt.y; / / Get the current coordinates o...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 