看板 Visual_Basic 關於我們 聯絡資訊
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
cole945:Declare那行的兩個參數應是Integer而不是Long 07/25 23:32
ifanoski:感謝感謝~網路上得都是long不過用了integer真的可以ㄟ~ 07/26 03:12
cole945:因為vb6時long才是32-bits,但.NET後long變64-bits.. 07/26 08:21