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 

WheelRight and WheelLeft events, WHEN?

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





PostPosted: Thu May 31, 2007 5:09 am    Post subject: WheelRight and WheelLeft events, WHEN? Reply with quote

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

PostPosted: Thu May 31, 2007 6:10 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
neXt



Joined: 19 Mar 2007
Posts: 463

PostPosted: Thu May 31, 2007 6:25 am    Post subject: Reply with quote

what sort of limitations do u get from using software to assin keys Confused
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
View user's profile Send private message
JGR



Joined: 15 Jun 2006
Posts: 52
Location: Unavailable until ~30th August

PostPosted: Thu May 31, 2007 7:11 am    Post subject: Reply with quote

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
View user's profile Send private message
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