Click in specific window

Hey guys, I was wondering is it possible to make a program that only clicks in a specific window ?

I made a program that clicks every 2 seconds but I want to click only in a specific window.
Thanks.

1
2
3
        //mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
        //mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
        //Sleep(2000); 
Last edited on
Topic archived. No new replies allowed.