I've had my own personal triggerbot for some time now and it always worked fine in Windows 7 when I'd use it. After upgrading to Windows 10 I decided to pull out my ol' trusty triggerbot to have a little fun and it's not firing the mouse event.
The console is outputting "Fire" so I know it is detecting the enemy but the mouse event doesn't fire the gun. Always worked fine in windows 7 but doesn't seem to be working in Win 10. Any ideas?
// Written in cpp
if (PosR(x, y) > 170 && PosG(x, y) < 50 && PosB(x, y) < 150)
cout << "Fire" << endl;
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
randomTime = rand() % 30 + 1;
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
randomTime = rand() % maxFireSpeed + minFireSpeed;