AutoHotkey Community

It is currently May 27th, 2012, 6:18 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: November 29th, 2010, 6:00 am 
I want to know how to use the mouse's wheel button. Not the press down one but if you push it to the side.

Hotkey?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 29th, 2010, 6:04 am 
Offline

Joined: November 28th, 2009, 4:45 am
Posts: 3089
Key list wrote:
WheelDown - this is equivalent to rotating the mouse wheel down (toward you)
WheelUp - the opposite of the above
WheelLeft and WheelRight [v1.0.48+] - these two require a mouse with left/right scrolling capability, but they have no effect on operating systems older than Windows Vista.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 29th, 2010, 6:17 am 
sorry didnt work:
Code:
WheelLeft::
  Disable_Window_Under_Cursor()
  Return
 
Disable_Window_Under_Cursor()
{
  MouseGetPos,,, WinHndl, CtlHndl, 2
  WinGet, Style, Style, ahk_id %WinHndl%
    WinSet, Disable,, ahk_id %WinHndl%
  WinGet, Style, Style, ahk_id %CtlHndl%
    WinSet, Disable,, ahk_id %CtlHndl%

}

WheelRight::
  Enable_Window_Under_Cursor()
  Return
 
Enable_Window_Under_Cursor()
{
  MouseGetPos,,, WinHndl, CtlHndl, 2
  WinGet, Style, Style, ahk_id %WinHndl%
    WinSet, Enable,, ahk_id %WinHndl%
  WinGet, Style, Style, ahk_id %CtlHndl%
    WinSet, Enable,, ahk_id %CtlHndl%
}


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 30th, 2010, 2:09 pm 
Offline

Joined: April 19th, 2007, 8:05 am
Posts: 48
WheelLeft and WheelRight works on my Vista and Windows 7 system


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 30th, 2010, 7:38 pm 
when i press my WheelLeft and WheelRight. The Scroll Lock lights up?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 1st, 2010, 2:07 pm 
Offline

Joined: April 19th, 2007, 8:05 am
Posts: 48
I haven't test the code posted there. but

WheelLeft::msgbox

works for me.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], hd0202 and 50 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