Mouse Recording

Just starting out? Need help? Post your questions and find answers here.
spongehammer
User
User
Posts: 84
Joined: Sat Jul 19, 2003 6:45 pm
Location: UK

Mouse Recording

Post by spongehammer »

Hi All,

i was searching for some code to give me an idea as to how to write my own mouse recorder. I did find this;
http://www.purearea.net/pb/showcase/sho ... =20&sort=2

which is great, and does most of what i need. Does anyone have any code which shows how this might be achieved.
I am guessing that i would need to use hooks but i am not sure.

Thanks
I looked up 'paranoid' in the dictionary this morning.
It said, 'what do you want to know that for?'
User avatar
Mischa
Enthusiast
Enthusiast
Posts: 115
Joined: Fri Aug 15, 2003 7:43 pm

Post by Mischa »

Not the actual version!

Take this:
http://www.thinkrelative.de/Recorder.exe

You don't need hooks for simple mouse recording.
I've only used:
GetAsyncKeyState_(), GetCursorPos_(), mouse_event_()
and SetCursorPos_(). Thats all.

Some hints:

multi monitoring = screen coordinates could be negative :wink:
Doubleclick time = system dependent!

Regards,
Mischa
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post by traumatic »

Mischa wrote:Doubleclick time = system dependent!
You've never seen my mom trying to double click... ;)
Good programmers don't comment their code. It was hard to write, should be hard to read.
spongehammer
User
User
Posts: 84
Joined: Sat Jul 19, 2003 6:45 pm
Location: UK

Post by spongehammer »

Thanks Mischa,

that's the sort of pointer i needed :D

Chris
I looked up 'paranoid' in the dictionary this morning.
It said, 'what do you want to know that for?'
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

traumatic wrote:
Mischa wrote:Doubleclick time = system dependent!
You've never seen my mom trying to double click... ;)
hehehehe
my girlfriend doubleclicks everything. even links and buttons on a webpage. can't imagine why and I've told her she don't have to do that, but, she still does it :lol:
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

Any way to speed up the playback many times over, maybe 1000%? :?
--Kale

Image
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post by dagcrack »

it would be nice if it cached keys also.
:D
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Post by NoahPhense »

Kale wrote:
Any way to speed up the playback many times over, maybe 1000%? :?
heh.. how about a speed 'slider' .. ;)
Post Reply