Jump to content
JBeef

mousehook

Recommended Posts

JBeef

none of the links to mousehook work

Jap

Share this post


Link to post
Share on other sites
SmOke_N

none of the links to mousehook work

Jap

It was deleted, no sense in asking why, it's just gone unless Jon chooses to put it up from a back up, or Larry returns to put it back.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
Zedna

It was deleted, no sense in asking why, it's just gone unless Jon chooses to put it up from a back up, or Larry returns to put it back.

I have all that MouseHook from Larry saved on my HDD.

Here it is as attachment but probably I will remove it in the future when my attachments space will be full again.

I must delete lot of my old attachments already.

EDIT: MouseHook1.zip is older version, MouseHook2.zip is latest version also with sources for his DLL

EDIT2: removed attachments, see post #9 with original DLL from Larry

Edited by Zedna

Share this post


Link to post
Share on other sites
Helomotorola

Thank

Share this post


Link to post
Share on other sites
tobamai

Hey guys,

Both of these zip files have dll's that were compiled with a standing typo that prevents them from recognizing a mousewheelup message. ( discussed and fixed very briefly here: http://www.autoitscript.com/forum/lofivers...php?t46276.html )

So I compiled a copy that works, although I haven't tested it with anything but the mousewheel hooks. Just one change to the original source at line 179 and then a compile:

wParm = AU3_WM_MOUSEWHEELDOWN;

- tobamai

hook.dll

Share this post


Link to post
Share on other sites
Aprilgogo

Hey guys,

Both of these zip files have dll's that were compiled with a standing typo that prevents them from recognizing a mousewheelup message. ( discussed and fixed very briefly here: http://www.autoitscript.com/forum/lofivers...php?t46276.html )

So I compiled a copy that works, although I haven't tested it with anything but the mousewheel hooks. Just one change to the original source at line 179 and then a compile:

wParm = AU3_WM_MOUSEWHEELDOWN;

- tobamai

Hi, tobamai,

I downloaded Zedna's MouseHook2.zip and tried to recompile it. I found line 179 is exactly the same as your change describes. But Line 177 should be changed from:

AU3_WM_MOUSEWHEELUP;

to:

wParm = AU3_WM_MOUSEWHEELUP;

And what does line 182 mean? Should it be changed to the following?

wParm = AU3_WM_MOUSEWHEELUP;

Another typo I found is at line 218, it should be:

PostMessage(m_hHwndKey, AU3_WM_KEYUP, wParam, iState);

Otherwise we will not get a WM_KEYUP notification.

BTW, I'm using VC++ 6.0, who can tell me why I can only build the code in "Win32 Release" but get an "error LNK2001: unresolved external symbol _main" error in "Win32 Debug"? And finally, how to fix it?

Here is the fixed dll. Please pay attention that I didn't fully test it.

hook.dll

Share this post


Link to post
Share on other sites
Aprilgogo

Could someone correct the all the typos and recompile the above DLL? I noticed tobamai's is only 5KB but my dll exceeds 20KB. I'm really not good at the DLL thing. Thank you.

Share this post


Link to post
Share on other sites
LarryDalooza

Here is my fixed source... (attached) download PellesC and load the project file.

Lar.

hook.zip

Edited by LarryDalooza

f_mrcleansmalm_77ce002.jpgAutoIt has helped make me wealthy

Share this post


Link to post
Share on other sites
LarryDalooza

Try that zip again... I edited it because the code reversed KeyDown,KeyUp...

Lar


f_mrcleansmalm_77ce002.jpgAutoIt has helped make me wealthy

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×