First, let's look at the example code:
.Version 2 .Support library spec .Subprogram _window1_Created kk = API_SetWindowLong (Label1.取window句柄 (), -4, to integer (&Mycallback)) .Subprogram Mycallback, Integer type .parameter Hwnd .parameter uMsg .parameter 消息parameterWP .parameter 消息parameterLP .Local variables msg, MSG .Local variables pt, POINTAPI .If true (uMsg = 512) ' Mobile Message API_GetMessage (msg, Hwnd, 0, 0) pt.Horizontal position = .Horizontal position pt.Vertical position = .Vertical position API_ScreenToClient (Hwnd, pt) Debug output (To text (pt.Vertical position) + “/” + To text (pt.Horizontal position)) .If true结束 return (API_CallWindowProc (kk, Hwnd, uMsg, 消息parameterWP, 消息parameterLP))
Use API
.Version 2 .DLLOrder API_GetMessage, Integer type, "user32", "GetMessageA", , Return a message from the clue message queue .parameter lpMsg, MSG .parameter hwnd, Integer type .parameter wMsgFilterMin, Integer type .parameter wMsgFilterMax, Integer type .DLLOrder API_TranslateMessage, Integer type, "user32", "TranslateMessage", , Convert virtual keyword messages .parameter lpMsg, MSG .DLLOrder API_DispatchMessage, Integer type, "user32", "DispatchMessageA", , Send a message to the window .parameter lpMsg, MSG .DLLOrder API_SetWindowLong, Integer type, "user32", "SetWindowLongA", , Set information for specified windows in the window structure Specify the previous value of the data .parameter hwnd, Integer type .parameter nIndex, Integer type .parameter dwNewLong, Integer type .DLLOrder API_CallWindowProc, Integer type, "user32", "CallWindowProcA", , Message reply window function .parameter lpPrevWndFunc, Integer type .parameter hwnd, Integer type .parameter msg, Integer type .parameter wParam, Integer type .parameter lParam, Integer type .DLLOrder API_ScreenToClient, Integer type, "user32", "ScreenToClient", , Determine the client area coordinates of a specified point on the screen Non-zero means success,Zero means failure .parameter hwnd, Integer type, , A handle to a window,This window defines the client area coordinate system to be used .parameter lpPoint, POINTAPI, , POINTAPI,The screen coordinate system contains the structure of the screen point。This function will be accompanied by the corresponding client area coordinates(Depend onhwndDecide)Loading structure;
Use data types
.Version 2 .Data Type POINTAPI, , coordinate; .member Horizontal position, Integer type .member Vertical position, Integer type .Data Type MSG .member hwnd, Integer type .member message, Integer type .member wParam, Integer type .member lParam, Integer type .member time, Integer type .member pt, POINTAPI
The above is the actual method to introduce to you about the left side of the Easy Language acquisition window. Thank you for your support.