 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
PhantomLancer Master Cheater
Reputation: 0
Joined: 11 Nov 2007 Posts: 356
|
Posted: Thu May 22, 2008 3:18 am Post subject: VB8 click at spot help |
|
|
Okay ive got somewhat of a code but the code isnt working i got the following errors with this code..
Code: | Private Sub ClickAt(ByVal X As Long, ByVal Y As Long)
'Click at a certain XY position on the screen.
SetCursorPos(X, Y)
Wait(10)
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)
Wait(10)
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)
Wait(10)
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)
Wait(10)
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0) |
'SetCursorPos' is not declared.
And
'mouse_event' is not declared.
ive tried doing
Code: | Declare Function SetCursorPos Lib "user32.dll" () As Long |
then it gave me this error
Too many arguments to 'Declare Ansi Function SetCursorPos Lib "winmm.dll"() As Long'.
_________________
|
|
Back to top |
|
 |
Typhoon808 Expert Cheater
Reputation: 0
Joined: 27 Mar 2008 Posts: 175 Location: Wales
|
Posted: Thu May 22, 2008 4:59 am Post subject: |
|
|
There are no arguments for the SetCurserPos function. Try using:
Code: | Declare Function SetCursorPos Lib "user32" Alias "SetCursorPos" (ByVal x As Integer, ByVal y As Integer) As Integer |
Your function looks like a VB6 declaration with no arguments.
|
|
Back to top |
|
 |
PhantomLancer Master Cheater
Reputation: 0
Joined: 11 Nov 2007 Posts: 356
|
Posted: Thu May 22, 2008 10:24 am Post subject: |
|
|
thanks it helped but now i got to figure out my mouse_events one
_________________
|
|
Back to top |
|
 |
tombana Master Cheater
Reputation: 2
Joined: 14 Jun 2007 Posts: 456 Location: The Netherlands
|
Posted: Thu May 22, 2008 10:33 am Post subject: |
|
|
Search google for something like vb8 mouse_event declaration
|
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|