Jump to content


Photo

hotkeys with mouse


  • Please log in to reply
4 replies to this topic

#1 BrandonHotkey

BrandonHotkey
  • Members
  • 566 posts

Posted 26 May 2012 - 03:26 PM

Is it possible to start action with # + mouse action?
I mean
# + left button click
# + right button click
# + middle button click
# + scroll up
# + scroll down could run some action

Especialy I would like to have script that will run e.g. 10 mouse scrolls up when I will use MouseWheel with Windows key.

instead
#space::
 action()
return
have shortcut for mouse

#2 Gogo

Gogo
  • Guests

Posted 26 May 2012 - 03:47 PM

Is it possible to start action with # + mouse action?

Yes:
#WheelUp:: Send {WheelUp 10}        [color=#008000]; mouse hotkeys always use hook, so $ is obsolete[/color]
#WheelDown:: Send {WheelDown 10}


#3 BrandonHotkey

BrandonHotkey
  • Members
  • 566 posts

Posted 26 May 2012 - 07:08 PM

Very nice. Thanks. But I cannot get it working. (Nothing happens when I press Win key and scroll)

Not this does nothing:
#WheelUp::
  Send {WheelUp 20}
return
#WheelDown:: 
  Send {WheelDown 20}
return


#4 tomoe_uehara

tomoe_uehara
  • Members
  • 2077 posts

Posted 27 May 2012 - 08:37 AM

It works fine on my computer, I use Win 7 + AHK Basic, tried in notepad.

#5 BrandonHotkey

BrandonHotkey
  • Members
  • 566 posts

Posted 27 May 2012 - 09:51 AM

Yes it works generally, but not in Google Earth...

What to do? I would like I could zoom faster in Google Earth

It's even more strange when you realize that this:

#WheelUp:: 
  Send {WheelUp 80}
#WheelDown:: 
  Send {WheelDown 80}

Makes bad, but makes some action...