• Log in or sign up for an account here: https://www.sythe.org/login

Green error ? double you tee eff ?

Joined
Sep 15, 2007
Sythe Gold
0
Messages
536
Location
Wilderness
Ok , when i try to run my autoclicker in the source debugger i get this error

A call to PInvoke function 'WindowsApplication1!WindowsApplication1.Form1::mouse_event' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.

here is the line of code that is highlighted green

Code:
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)

now, when i run it in the .exe in the bin i works fien , but i would really like to correct this


any infio PLEASE???
 
hey lol u stole double u tee eff from my post =P well anyway im pretty sure cuz of the 0, 0, 0, 0
 
Two Factor Authentication User
The reason is that you are probably using the Visual Basic 6 call for it. When converting native methods from VB6 to .NET, you need to change the number types from Long to Integer.

VB6 way:
Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)

VB.NET way:
Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Integer, ByVal dx As Integer, ByVal dy As Integer, ByVal cButtons As Integer, ByVal dwExtraInfo As Integer)
 
duelarena.gg
Back
Top