SkillAgentSearch skills...

MouseLogger

Mouse logger written in C++

Install / Use

/learn @Moeinh77/MouseLogger
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

MouseLogger

C++ program to log mouse movements

The code captures your mouse pointer movements and stores them into 'locs.txt' . The captured locations are inside an array called 'points' .The logged locations stored in array 'points' can be used for repeating the movements of the mouse cursor . I have used 'windows.h' header in c++ for getting and setting the location of cursor . Link to windows headers guide

Re-drawing

Here is a demo of the code storing locations of cursor for a period of time while darwing something in paint and then it uses the stored locations to redraw what was drawn before.

We set the accuracy to 1 in the example above.By changing the accuracy you can determine how often locations will be stored if you use the acc=1 (less is better accuracy) then 1000 points will be stored in the array. if you increase the 'acc' less points will be stored and as the result there will be lower accuracy in following the cursor.for capturing the movement for a longer period of time you can increase the size of array points.

And if you move the mouse in circle while setting the cursors:

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated1mo ago
Forks0

Languages

C++

Security Score

75/100

Audited on Feb 7, 2026

No findings