I need a C++ functions which calculates a point to which a click will be done in future.
**POINT ClickRandom(RECT Area, bool Debug);**
**Returned value** - a click position which should be not just randomized within *Area* but calculated a way where series of clicks will look naturally (most clicks in the center of *Area* and much less near to edges)
**Area** - button or other area withing which we are working.
**Debug** - if this value is true function should paint the *Area*'s 2-pixel border on the screen with bright yellow and the returned value as 3-pixel diameter purple dot.
* Paining on the screen should be done in memory first and when moved to screen, as direct screen painting usually is very slow if Aero is turned on.
* No memory or handle leaks.
* Code will be compiled to x64 only, keep this in mind during data type selection.
* Code has to be as simple as possible and easy to read.
* No third party libraries are allowed, only Windows, GDI, GDI+ API and other Visual Studio built-ins.
Result should be a Visual Studio C++ project with sources compiled to a test command line application which calculates a point in Area {10,10,100,100}.