Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [DllImport("user32.dll")]
- static extern void mouse_event(int a, int b, int c, int d, int swed);
- [DllImport("user32.dll", SetLastError = true)]
- [return: MarshalAs(UnmanagedType.Bool)]
- static extern bool GetWindowRect(IntPtr hWnd, ref RECT lpRect);
- [DllImport("user32.dll", EntryPoint = "FindWindow")]
- static extern IntPtr FindWindowByCaption(IntPtr ZeroOnly, string lpWindowName);
- [DllImport("User32.Dll")]
- public static extern long SetCursorPos(int x, int y);
- [DllImport("user32.dll")]
- static extern short GetAsyncKeyState(Keys vkey);
- [StructLayout(LayoutKind.Sequential)]
- private struct RECT
- {
- public int Left;
- public int Top;
- public int Right;
- public int Bottom;
- }
- int x;
- int y;
- bool on = false;
- const int leftDown = 0x02;
- const int leftUp = 0x04;
- Point pos = new Point(0, 0);
Advertisement
Add Comment
Please, Sign In to add comment