Programmatically click and move mouse with VB.NET

后端 未结 2 1434
时光说笑
时光说笑 2020-12-16 05:22

I want to build a program in VB .net that will allow me to control my pc with my laptop. The only question I really have is, how can I programmatically click without using s

相关标签:
2条回答
  • 2020-12-16 05:47

    You can set the Cursor position with the property Cursor.Position.

    You will need to P/Invoke mouse_event in user32.dll in order to simulate the mouse click.

    Sample code in C# is here: http://www.gamedev.net/community/forums/topic.asp?topic_id=321029

    0 讨论(0)
  • 2020-12-16 05:48

    Found it :-p thanks anyways http://www.dreamincode.net/forums/showtopic67915.htm

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