 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Rickote Guest
|
Posted: Thu May 31, 2007 5:09 am Post subject: WheelRight and WheelLeft events, WHEN? |
|
|
I tried several things and tricks, and I don't find a way to detect the WheelRight and WheelLeft event available in todays so many mouses.
I can asign these to keys with the Mouse specific utility as SetPoint for Logitech and then handle the keys in HK as some people pointed out, but that has a number of limitations.
In my case I have a few CAD apps that scroll drawings with different hotkeys and/or mouse scroll, no compatibles in some case. HK ifWinActive function is really helpfull to discriminate what keys to send to whoever is active, the problem is that I can not forward the left/right scroll for the cad apps that support it. I could emulate a r/l scroll sending an API message from my assigned keystroke such as:
~Right:: ;Scroll Right
ControlGetFocus, fcontrol, A
Loop 5 ;
SendMessage, 0x114, 1, 0, %fcontrol%, A
return
THis work relatively ok with MS explorer, but not with My Orcad Cad program that ignores this scroll message. Even explorer takes only a few loop steps every time I hit my scroll right/left because mouse actions only happen once versus repetitively as a continously pressed key.
Any better solution at this time?
Rickote. |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Thu May 31, 2007 6:10 am Post subject: |
|
|
so the mouseWheel Left and right (not common, btw) actually send Right and Left (as in the arrow keys)? _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
neXt
Joined: 19 Mar 2007 Posts: 463
|
Posted: Thu May 31, 2007 6:25 am Post subject: |
|
|
what sort of limitations do u get from using software to assin keys
Anyway, i saw some topics saying that you can get virtual key name from non-standart keyboards, look into that, but i'm not sure if it works on mices too. |
|
| Back to top |
|
 |
JGR
Joined: 15 Jun 2006 Posts: 52 Location: Unavailable until ~30th August
|
Posted: Thu May 31, 2007 7:11 am Post subject: |
|
|
Look in your key history, it may be registered as XButton1/2 or as a numeric code.
(You would need the mouse hook installed to test this).
JGR |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|