Author | Message | Time |
---|---|---|
Insolence | Having a hell of a time simply moving the mouse, here's what I got so far: [code] [DllImport("user32.dll")] public extern static int SendMessage( IntPtr hwnd, uint msg, uint wParam, long lParam);[/code] [code]User32.SendMessage(this.Handle, (int)WM.MOUSEMOVE, 0, MakeLong ( PixelRect[i,0], PixelRect[i,1] ) );[/code] WM.MOUSEDOWN = 0x0200 like it should, I can't think of any other things to check. I've changed the import castings (is that what you'd call it?) many times... not sure what else I can do =\ | August 14, 2005, 8:37 AM |
TehUser | WM_MOUSEMOVE is the notification windows get when the mouse has moved. As far as I know, it doesn't actually move the cursor. What you want is SetCursorPos. | August 14, 2005, 2:14 PM |
Insolence | That seems to be working, thanks a ton :) | August 14, 2005, 6:57 PM |