How to simulate a mouseclick in C#? (I keep getting an error)?

It is exactly what the error messages says - change the DllImport declaration to: DllImport("user32. Dll") static extern void mouse_event(uint dwFlags, uint dx, uint dy, uint dwData, UIntPtr dwExtraInfo) For more information, see pinvoke.net/default.aspx/user32.mouse_event But since mouse_event is deprecated, consider using SendInput instead See: msdn.microsoft.com/en-us/library/ms64631... pinvoke.net/default.aspx/user32/SendInpu....

It is exactly what the error messages says - change the DllImport declaration to: DllImport("user32. Dll") static extern void mouse_event(uint dwFlags, uint dx, uint dy, uint dwData, UIntPtr dwExtraInfo); For more information, see pinvoke.net/default.aspx/user32.mouse_event But since mouse_event is deprecated, consider using SendInput instead. See: msdn.microsoft.com/en-us/library/ms64631... pinvoke.net/default.aspx/user32/SendInpu....

Thanks for the extremely quick answer, I'm new to this so please excuse my noobishness. – Holyhades666 Aug 14 at 5:45 no problem at all - we are all here to learn, glad I could help :-) – Yahia Aug 14 at 5:46 The second declaration is incorrect. Int is not equivalent to the native type ULONG_PTR.

– Cody Gray Aug 14 at 15:01 you are right, thanks :-) – Yahia Aug 14 at 18:10.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions