To use Delphi XE5 to send mouse clicks to an inactive window, you can use the PostMessage function, which can simulate the user's mouse operations in the internal coordinate system of the specified window. For example, you can use the following code: PostMessage(hWnd, WM_LBUTTONDOWN, 0, MAKELPARAM(x, y)), where hWnd is the handle of the specified window, and x and y are the mouse coordinates in the internal coordinate system of the specified window.
How to simulate sending a mouse click to an inactive window in Delphi XE5 according to the internal coordinates of the window? Please give detailed examples...
Guess you like
Origin blog.csdn.net/weixin_35756373/article/details/129555470
Ranking