Dynadot โ€” .com Transfer

Mouse track app which language?

Spaceship Spaceship
Watch

slee

Established Member
Impact
0
ok this should be really simple thing to do for some of you guys.
All i want to do is have an application that runs on the desktop or in the system tray that tracks the coordinates of the mouse and any clicks. i want a start and stop button which could be set as the F2 key. the coordinates are then put into a text file and if the mouse is clicked i want it to insert a new line - thats it.

whats the best language to use to do this?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
You'll probably want to code this in C++.

Constantly storing the position of the mouse could make for a large text file. You might want to track the position of the mouse at one second intervals OR only record the position of the mouse when it has moved and stopped at a position.
 
0
•••
any reasons why c++?
i think you are right about the text file i think i will do it every few seconds.
ive done a little c++ in the past but is there a free compiler?
 
0
•••
ok ive been looking at some scripts in visual basic but still not really got anywhere can anyone help?

ive found some sample code but its all old code so the visual basic 2005 express software i have wont run it :(
 
0
•••
I think C++ would be best, because I'm not a big fan of visual basic and how it relies on the user having the proper activex extensions installed.

Anyway, if you're looking to do it in visual basic, I found a good example that does exactly what you're looking for (except for recording mouse clicks, but that could be easily implemented).

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=44934&lngWId=1

I've tested and successfully run and compiled it with Visual Basic 6.
 
1
•••
i would consider c++ but ive not got much experience with it. is there a free compiler i can use to try and use that?

thanks for the help :)
 
0
•••
0
•••
didnt know it was that easy i did find one on devshed though.

thanks for the help ive added to your rep :)

any tips on the C++?
 
0
•••
Domain Recover
DomainEasy โ€” Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back