Mouse click with JNA

后端 未结 1 427
悲哀的现实
悲哀的现实 2020-12-19 06:17

I\'m trying to simulate mouse click at window with JNA.

public class App {

public static final int WM_LBUTTONUP = 514;
public static final int WM_LBUTTONDOW         


        
相关标签:
1条回答
  • 2020-12-19 07:00

    Just a wild guess: The click events should not be delivered to the main window but to the destination button objects themselves. On the given coordinates the button lay above the main window "hiding" it when a real click happens.

    0 讨论(0)
提交回复
热议问题