AutoHotkey Community

It is currently May 25th, 2012, 7:15 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: May 31st, 2007, 5:09 am 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 31st, 2007, 6:10 am 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8647
Location: Salem, MA
so the mouseWheel Left and right (not common, btw) actually send Right and Left (as in the arrow keys)?

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 31st, 2007, 6:25 am 
Offline

Joined: March 19th, 2007, 12:43 am
Posts: 532
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 31st, 2007, 7:11 am 
Offline

Joined: June 15th, 2006, 6:29 am
Posts: 59
Location: Oriel College
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


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: azure, Bing [Bot], Tilter_of_Windmills and 68 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