This C program simulates mouse cursor movement on Windows by smoothly moving the cursor from its current position to a randomly generated target position within the screen boundaries.
- Windows operating system
- C compiler
-
Compile the code using a C compiler. For example, using GCC:
gcc -o cursor.exe main.c cursor.c
-
Run the compiled executable:
cursor.exe
-
The program will continuously move the mouse cursor to random positions within the screen boundaries.
STEPS
: Number of steps for smooth movement.STEPSTIME
: Duration of each step in milliseconds.SCREENWIDTH
: Width of the screen in pixels.SCREENHEIGHT
: Height of the screen in pixels.