有沒有辦法在我的應用程序之外使用C++強制單擊鼠標?例如,如果鼠標在某個座標中,則它被強制點擊。Mouse Click with C++
0
A
回答
1
試試這個:
HWND h = (hwnd of window)
WORD mouseX = 10;// x coord of mouse
WORD mouseY = 10;// y coord of mouse
PostMessage(hWnd,WM_LBUTTONDOWN,0,MAKELPARAM(mouseX,mouseY));
從this site服用。
+0
謝謝!這工作! – 2012-07-08 02:19:45
1
相關問題
- 1. Actionscript On Mouse Click
- 2. JqPlot EnhancedLegendRenderer with Mouse events
- 3. WPF Move elemnt with mouse
- 4. How to Console.Beep while(during)mouse click?
- 5. Flash Error#1009 on mouse click
- 6. draw sprite on mouse click Where
- 7. jquery:live(click)ajax with one(click)event
- 8. Translate web formular mouse click actions into curl commands
- 9. 如何在Click Mouse中禁用嗶聲?
- 10. tigger(click)with value
- 11. Single Click with mouseListener on JPanel [] []表
- 12. Flex 4 RichEditableText with right click menu
- 13. WPF DataGrid CheckBox Check/Uncheck with click click
- 14. WPF StackPanel with Click和DoubleClick
- 15. Jquery $()。click not working with flask
- 16. jqueryui button click not working with url.action
- 17. jquery click event not working with children
- 18. Mouse Enter&Mouse Leave on a form
- 19. preventDefault on mouse up
- 20. MOUSE-EXTEND-CLICK EVENT正在進行開發人員Studio for OpenEdge 11.6
- 21. xrandr:jail mouse
- 22. GWT onResize&mouse up
- 23. window.location.href with $(「。confirm」)。click(function(e)does not full url
- 24. JQuery Table Mouse Over Images
- 25. c#DataGridViewButtonColumn auto click
- 26. LWJGL 3 Mouse Movement
- 27. jquery mouse over
- 28. Javascript mouse over
- 29. Cocoa Move Mouse
- 30. JQVMap Event(Mouse Position)
哪個環境? OS? – reuben 2012-07-07 23:11:45
在您自己的應用程序或系統上的任何應用程序中? – Linuxios 2012-07-07 23:12:18
@reuben Windows 7和是 – 2012-07-07 23:12:27