作者ifanoski (Ifan)
看板Visual_Basic
标题[.NET] 奇怪的控制滑鼠问题
时间Wed Jul 25 21:17:29 2007
Declare Function SetCursorPos Lib "user32" (ByVal x As Long, ByVal y As Long)
As Long
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
SetCursorPos(799, 799)
End Sub
这样子只有x轴到799
y轴每次都会是0
为什麽阿
好灵异
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 122.126.10.45
1F:推 cole945:Declare那行的两个参数应是Integer而不是Long 07/25 23:32
2F:推 ifanoski:感谢感谢~网路上得都是long不过用了integer真的可以ㄟ~ 07/26 03:12
3F:推 cole945:因为vb6时long才是32-bits,但.NET後long变64-bits.. 07/26 08:21