MouseWheelOnOff Question

H

Hikaru Shizuka

Hi there, I just tried out the mousewheelonoff function from lebans.com and
for some reason it doesn't work in my MDB. I have my mdb and the sample in
the same directory, as well as mousehook.dll, and when I run the mouse on
and mouse off commands from the sample, it works perfectly. However, when I
put the exact same code into my own mdb, I get the error:

"Compile error:
Sub or Function not defined"

Any tips? I have the dll file in the correct folder, and the code was
copied directly, first from the web site, and then from the sample mdb
itself.
 
H

Hikaru Shizuka

Hikaru Shizuka said:
Hi there, I just tried out the mousewheelonoff function from lebans.com and
for some reason it doesn't work in my MDB. I have my mdb and the sample in
the same directory, as well as mousehook.dll, and when I run the mouse on
and mouse off commands from the sample, it works perfectly. However, when I
put the exact same code into my own mdb, I get the error:

"Compile error:
Sub or Function not defined"

Any tips? I have the dll file in the correct folder, and the code was
copied directly, first from the web site, and then from the sample mdb
itself.

Okay, I found the problem was the global function, I took that out, and now
it simply doesn't work. No error, I set up a command button to run the
code, and when I click, no error, but it doesn't disable the mousewheel
either. It's as if nothing happens.
 
S

Stephen Lebans

You have to import the code module "modMouseHook" from the sample MDB
into your own MDB. It contains the functions(and API declarations) you
are trying to call.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
H

Hikaru Shizuka

Yeah I figured that out myself about 20 minutes ago... hehe, but thank you.
It doesn't specifically state that in the instructions. Thanks anyways,
however, I'm a little new to this.
 
S

Stephen Lebans

At the very top of the MouseHook Web page, in Bold and Italic:

Please note this is an update from the March 09/04 release. Support has
now been added for Logitech Mice. The only difference between the
feature set for a MS Mouse and a Logitech Mouse is that you can scroll
an open Combo control from a MS Mouse only. Look at the code behind the
sample Forms to see how to turn the MouseWheel ON or Off. You need to
import into your own MDB the standard code module "modMouseHook" found
in the sample MDB included in the download zip file.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
H

Hikaru Shizuka

Ah, my bad my bad, I thought that was a message dealing specifically with
Logitech and Microsoft Mouses.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top