The control is selected and the mouse shows four-way arrows:
Control.Send message (274, 61440, 0)
Control.Send message (274, 61450, 0)
Control Maximization:
Control.Send message (274, 61488, 0)
Parameter 2 is valid in 61488-61503
Move controls:
Control.Send message (274, 61449, 0)
2. Adjust the control size
Adjust the left:
Control.Send message (274, 61441, 0)
Adjust the right:
Control.Send message (274, 61442, 0)
Adjust the top edge:
Control.Send message (274, 61451, 0)
Control.Send message (274, 61443, 0)
Adjustment in the upper left corner:
Control.Send message (274, 61444, 0)
Adjustment in the upper right corner:
Control.Send message (274, 61445, 0)
Adjust the bottom:
Control.Send message (274, 61446, 0)
Adjustment in the lower left corner:
Control.Send message (274, 61447, 0)
Adjustment in the lower right corner:
Control.Send message (274, 61448, 0)
3. Minimize controls
Control.Send message (274, 61472, 0)
Parameter 2 is valid in 61472-61487
4. The mouse has a question mark (click the question mark again and disappears)
Send message (274, 61836,0)
Parameter 2 is valid in 61824-61839
5. Close the control
Control.Send message (16, 0, 0)
6...
7. Click the left mouse button
Control.Send message (513, 0, 0)
8. Clear window title
Control.Send message (12, 0, 0)
9. Copy
Edit box. Send message (769, 0, 0)
10. Paste
Edit box. Send message (770, 0, 0)
11.Select all
Edit box. Send message (177, 0, -1)
12. Clear content
Edit box. Send message (12, 1, 0)
13. Button click
Send message (send button handle, 245, 0, 0)
14. Delete
Control.Send message (768, 0, 0)
15. Cut
Control.Send message (771, 0, 0)
16. Revoke
Control.Send message (772, 0, 0)
17. Exit
Control.Send message(1,0,0)
18. Get focus
Control.Send message(7,0,0)
19. Losing focus
Control.Send message(8,0,0)
20. End
Control.Send message(25,0,0)
21. Right-click
Control.Send message (123, 0, 0)
22. Cancel Select All
Edit box. Send message (177, 0, 0)
23. Send text (DLL command. It can be copied directly to Easy Language)
. Version 2
.DLL command Send text message, integer type, "SendMessageA"
Parameters window handle, integer type
. Parameter identification, integer type
Parameter Message 1, integer type
Parameter Message 2, Text Type
Call method: Send text message (handle, 194, 1, "text content")
14. Send key message (DLL command. It can be copied directly to Yi Language)
. Version 2
.DLL command key message, , "PostMessageA", , Send key message to the specified window handle
. Parameter handle, integer type
. Parameters Parameters, integer types
. Parameters key code, integer type
. Parameters Parameters, integer types
Call method: key message (handle, 258, key code, 0)
Edit box 1. Send message (#WM_VSCROLL, 0, 0)'Scroll up a line
Edit box 1. Send message (#WM_VSCROLL, 1, 0)'Scroll down a line
Edit box 1. Send message (#WM_VSCROLL, 2, 0)'Scroll up to head
Edit box 1. Send message (#WM_VSCROLL, 3, 0)'Scroll down to the end
Edit box 1. Send message (#WM_HSCROLL, 1, 0)'Scroll one line to the left
Edit box 1. Send message (#WM_HSCROLL, 2, 0)'Scroll a line to the right
Edit box 1. Send message (#WM_HSCROLL, 3, 0)'Scroll left to head
Edit box 1. Send message (#WM_HSCROLL, 4, 0)'Scroll right to tail
.Constant WM_HSCROLL, "276", , when a window's standard horizontal scroll bar generates a scroll event, send this message to that window, and also send it to the control that owns it
.Constant WM_VSCROLL, "277", , when a window's standard vertical scroll bar generates a scroll event, send this message to that window, also send it to the control that owns it
Easy Language: Send Message()
How to send a message to a control in a specified window?
I made a program and wanted to fill in the edit box in the sub-window of another program window. How should I implement it?
Find the handle, send the message (handle, 12, 0, send the data)
If you install VB, you will find the "API Text Browser" in the program menu and you can check it. They are all in hexadecimal and converted to decimal using a calculator.
1. Move control Control. Send message (274, 61458, 0)
The value of parameter 1 is available from 61457--61471, and the result is the same, both are moving controls.
There is another one that everyone is familiar with, which is the control. Send information (161, 2, 0)
2. Adjust the control size Control. Send information (274, 61441, 0) (274, 61442, 0) (274, 61443, 0) (274, 61444, 0) (274, 61445, 0) (274, 61446, 0) (274, 61447, 0) (274, 61448, 0) Corresponding to the left width of the control Right width Top height Northwest corner Northeast corner Base width Southwest corner Dimensions of the northeast corner
In addition, the control.Send information (161, 10, 0) (161, 11, 0) (161, 12, 0) (161, 13, 0) (161, 14, 0) (161, 15, 0) (161, 16, 0) (161, 16, 0) also the left width of the control, right width, top height, northwest corner, northeast corner, bottom width, southwest corner, northeast corner.
3. Control Maximization Control.Send information (274, 61450, 0) where the value of parameter 1 is available from 61488--61503, and the result is the same.
4. Control Minimization Control.Send information (274, 61473, 0) where the value of parameter 1 is available from 61472--61487, and the result is the same.
5. Start screen saver immediately (if the screen saver is not set on the computer, this information will not work) Send the message (274, 61760, 0) The value of parameter 1 is available from 61760--61776, and the result is the same.
6. Out of the dialog box - enter standby in 15 seconds (available under win98, winXP is invalid, other not tried) control. Send information (274, 61840, 0) where the value of parameter 1 is available from 61840--61854, the result is the same.
7. After clicking the control, the mouse has a question mark, and then it disappears. Control.Send message (274, 61836, 0)
8. Close window control. Send message (16, 0, 0)
9. Send the message in which the left mouse button of the send control. Send the message (513, 0, 0)
10. Send the message in which the left mouse button of the send control. Send the message (514, 0, 0)
11. Clear the title control of the window. Send message (12, 0, 0) The following is in Notepad:
12. Copy Edit box. Send message (769, 0, 0)
13. Paste Edit box. Send message (770, 0, 0)
14. Select all Edit box. Send message (177, 0, -1)
15. Image box 1. Send information (274, 61458, 0) This allows you to drag the image box on the window
16. You can use sending a mouse click event to a control by using sending a message (window handle, 513, 0, 0) and sending a message (window handle, 514, 0, 0) to complete sending a mouse click event to a control. However, for Yi Language, some controls do not support sending messages (window handle, 513, 0, 0) and sending messages (window handle, 514, 0, 0) for other programs.
17. _Start the window. Send a message (16,0,0) and close the window.
How to facilitate sending messages to complete the mouse click event (with specific location)?
Send a message (window handle, 514, 0, 65536 × vertical coordinate + horizontal coordinate) Send a message (window handle, 514, 0, 65536 × vertical coordinate + horizontal coordinate)
How to send a message to make the combo box pop up the drop-down list? ?
Combo box 1. Send message (335, 1, 0) extend
Combo Box 1. Send Message (335, 0, 0) Degeneration
How to send a message to a process of formulating --Enter
Send a message (process id,?,13,?)
_Delivery message (window handle, 256, key code, 0) 'Press
_Delivery message (window handle, 257, key code, 0) 'Let go
Send text to the program's edit box using SendMessageA (edit box handle, 258, byte set, 0)
PostMessage is just a message, without waiting for a return
SendMessage until there is a return value
Send a message (Edit box handle, #EM_SETSEL, start position, end position) ‘Select the edit box to specify the location text
Some parameters for sending messages in E~
15. Set content
Edit box. Send message (194, 0, "Content")
16. Button click
Send message (send button handle, 245, 0, "0")
Click the button is
Button 1. Send message (245, 0, 0)
Transparent tag events
Send message (161, 2, 0)
Quote with the original collection author: Windows has many tens of thousands of message parameters. I have sorted out the parameters I used when using the Easy Language Send Message () command. I hope that if you know more, you can also post it with the post. Please share it with everyone.
1. Move the controls
Control.Send message (274, 61458, 0)
Control.Send message (161, 2, 0)
2. Adjust the control size
Adjust the left:
Control.Send message (274, 61441, 0)
Adjust the right:
Control.Send message (274, 61442, 0)
Adjust the top edge:
Control.Send message (274, 61443, 0)
Adjustment in the upper left corner:
Control.Send message (274, 61444, 0)
Adjustment in the upper right corner:
Control.Send message (274, 61445, 0)
Adjust the bottom:
Control.Send message (274, 61446, 0)
Adjustment in the lower left corner:
Control.Send message (274, 61447, 0)
Adjustment in the lower right corner:
Control.Send message (274, 61448, 0)
3. Maximize controls
Control.Send message (274, 61488, 0)
4. Minimize controls
Control.Send message (274, 61473, 0)
5. The mouse has a question mark (click the question mark again and disappears)
Send message (274, 61836, 0)
6. Close the control
Control.Send message (16, 0, 0)
7. Click the left mouse button
Control.Send message (513, 0, 0)
8. Clear window title
Control.Send message (12, 0, 0)
9. Copy
Edit box. Send message (769, 0, 0)
10. Paste
Edit box. Send message (770, 0, 0)
11.Select all
Edit box. Send message (177, 0, -1)
12. Clear content
Edit box. Send message (12, 1, 0)
13. Button click
Send message (send button handle, 245, 0, 0)
14. Delete
Control.Send message (768, 0, 0)
15. Cut
Control.Send message (771, 0, 0)
16. Revoke
Control.Send message (772, 0, 0)
17. Exit
Control.Send message(1,0,0)
18. Get focus
Control.Send message(7,0,0)
19. Losing focus
Control.Send message(8,0,0)
20. End
Control.Send message(25,0,0)
21. Right-click
Control.Send message (123, 0, 0)
22. Cancel Select All
Edit box. Send message (177, 0, 0)
23. Send text (DLL command. It can be copied directly to Easy Language)
. Version 2
.DLL command Send text message, integer type, "SendMessageA"
Parameters window handle, integer type
. Parameter identification, integer type
Parameter Message 1, integer type
Parameter Message 2, Text Type
Call method: Send text message (handle, 194, 1, "text content")
14. Send key message (DLL command. It can be copied directly to Yi Language)
. Version 2
.DLL command key message, , , "PostMessageA", , Send key message to the specified window handle
. Parameter handle, integer type
. Parameters Parameters, integer types
. Parameters key code, integer type
. Parameters Parameters, integer types
Call method: key message (handle, 258, key code, 0)