AutoHotkey Community

It is currently May 27th, 2012, 5:45 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: March 16th, 2010, 6:56 pm 
Offline

Joined: December 3rd, 2008, 5:44 am
Posts: 4
Very (VERY) simple script to fix MS Mouse / Intellipoint wheel issues in Windows 7. As the Intellipoint driver sends mousewheel event with small deltas (smaller than the default value of 120), several programs just doesn't know how to handle them and fails to register the event.

This script catches the Intellipoint-generated events and sends a new, identical one but with a standard (120) delta and fixes the issue.

Intellipoint can send 70-120 small mousewheel events per second, thus the MaxHotkeysPerInterval directive.

Code:
; Simple, catch-all script:

#MaxHotkeysPerInterval 200
WheelDown::WheelDown
WheelUp::WheelUp


Another, more complete version, affecting only the windows of programs currently unable to handle the mouse delta. Affected programs known to me: Picasa, Quicken 2008

Code:
#MaxHotkeysPerInterval 200

GroupAdd, MousewheelHandler, ahk_class QFRAME
GroupAdd, MousewheelHandler, ahk_class ytWindow
; Add your own affected windows to the group here

#IfWinActive ahk_group MousewheelHandler
WheelDown::WheelDown
WheelUp::WheelUp


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 16th, 2010, 8:34 pm 
Offline
User avatar

Joined: May 5th, 2007, 7:24 pm
Posts: 1240
Location: Seville, Spain
Quote:
Code:
WheelDown::WheelDown
WheelUp::WheelUp

Wow, I'm impressed. I never thought those code lines that apparently do nothing actually fix mouse wheeling on certain kinds of mice.

_________________
fincs
Highly recommended: AutoHotkey_L (see why) (all my code snippets require it)
Formal request to polyethene - I support the unity of the AutoHotkey community
Get SciTE4AutoHotkey v3.0.00 (Release Candidate)
[My project list]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 17th, 2010, 3:43 am 
fincs might like to know the docs wrote:
When a script is launched, each remapping is translated into a pair of hotkeys. For example, a script containing a::b actually contains the following two hotkeys instead:
Code:
*a::
SetKeyDelay -1   ; If the destination key is a mouse button, SetMouseDelay is used instead.
Send {Blind}{b DownTemp}  ; DownTemp is like Down except that other Send commands in the script won't assume "b" should stay down during their Send.
return

*a up::
SetKeyDelay -1  ; See note below for why press-duration is not specified with either of these SetKeyDelays.
Send {Blind}{b Up}
return
PLEASE NOTE, the docs wrote:
The following keys are not supported by the built-in remapping method:
  • The mouse wheel (WheelUp/Down/Left/Right).
    ...

It creates key-up hotkeys for WheelDown and WheelUp which are never executed (only the key-down hotkeys are executed). You should probably use something simpler (more transparent at least):
Code:
WheelDown::Send {WheelDown}
WheelUp::Send {WheelUp}
Code:
WheelDown::Click WD
WheelUp::Click WU
Untested.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 17th, 2010, 10:36 pm 
Offline
User avatar

Joined: May 5th, 2007, 7:24 pm
Posts: 1240
Location: Seville, Spain
That was not a sarcasm...

_________________
fincs
Highly recommended: AutoHotkey_L (see why) (all my code snippets require it)
Formal request to polyethene - I support the unity of the AutoHotkey community
Get SciTE4AutoHotkey v3.0.00 (Release Candidate)
[My project list]


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: HotkeyStick, JamixZol, Yahoo [Bot] and 17 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group