![]() ![]() Private void start_Click(object sender, EventArgs e) Short retVal = GetKeyState((int)keyValue) Private void TimerCheck_Tick(object sender, EventArgs e) TimerCheck.Tick += new EventHandler(TimerCheck_Tick) Timer.Tick += new EventHandler(timer_Tick) Private void Form1_Load(object sender, EventArgs e) Private static extern short GetKeyState(int ke圜ode) Private const int MOUSEEVENTF_RIGHTUP = 0x10 Private const int MOUSEEVENTF_RIGHTDOWN = 0x08 Private const int MOUSEEVENTF_LEFTUP = 0x04 Private const int MOUSEEVENTF_LEFTDOWN = 0x02 Public static extern void mouse_event(uint dwFlags, uint dx, uint dy, uint cButtons, uint dwExtraInfo) There are events for this inside the visual studio Forms but they only apply if the program is in focus. I can not find anything that you can use to know when you press the mouse button. I want the program to click while holding down the mouse button and I want it to stop clicking when you release the mouse button. I wnat help please here is some of description : ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |