AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How do you disable the Mouse Wheel?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Harmor



Joined: 06 Nov 2005
Posts: 183

PostPosted: Fri Oct 13, 2006 10:16 pm    Post subject: How do you disable the Mouse Wheel? Reply with quote

I tried using
Code:
#InstallMouseHook

$WheelUp::
$WheelDown::
   ; Disable
return


but the program I'm using still is recognizing it. Is there something I'm missing?
_________________
//TODO: Create kewl sig...
Back to top
View user's profile Send private message
slomz



Joined: 03 Sep 2006
Posts: 608
Location: Iowa, U.S.

PostPosted: Fri Oct 13, 2006 10:59 pm    Post subject: Reply with quote

KeyState?? Use a GetKeystate and use some if statements or something to see if it exists or not then do what you need to next.
Back to top
View user's profile Send private message AIM Address
Harmor



Joined: 06 Nov 2005
Posts: 183

PostPosted: Fri Oct 13, 2006 11:46 pm    Post subject: Reply with quote

No see I want to disable it.
_________________
//TODO: Create kewl sig...
Back to top
View user's profile Send private message
Laszlo



Joined: 14 Feb 2005
Posts: 4015
Location: Pittsburgh

PostPosted: Sat Oct 14, 2006 3:32 am    Post subject: Reply with quote

It looks better if you go to the Control Panel / Mouse, and disable the mouse wheel from there. If an application still sees the wheel after you assigned no action to it in an AHK script, that application probably has its own mouse hook, which you cannot disable from AHK.
Back to top
View user's profile Send private message
slomz



Joined: 03 Sep 2006
Posts: 608
Location: Iowa, U.S.

PostPosted: Sat Oct 14, 2006 4:55 am    Post subject: Reply with quote

Harmor wrote:
No see I want to disable it.


Yes I know use a getkeystate or something, and if you do have a mousewheel existing, then disable it.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group