Created
February 10, 2011 00:56
-
-
Save pao/819716 to your computer and use it in GitHub Desktop.
AutoHotkey script fancified to work with the Firefox Home Dash add-on.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoTrayIcon | |
; Original tab switch behavior for most applications | |
#IfWinNotActive ahk_class MozillaWindowClass | |
Browser_Back::^PgUp | |
Browser_Forward::^PgDn | |
#IfWinNotActive | |
; Firefox-specific behavior for Home Dash | |
#IfWinActive ahk_class MozillaWindowClass | |
*Browser_Back:: | |
SetDefaultMouseSpeed, 0 | |
if (!Dashing) { | |
MouseGetPos, x, y | |
Dashing:=true | |
} | |
Click WheelUp 20 40 2 | |
SetTimer, HitEnter, -3000 | |
return | |
*Browser_Forward:: | |
SetDefaultMouseSpeed, 0 | |
if (!Dashing) { | |
MouseGetPos, x, y | |
Dashing:=true | |
} | |
Click WheelDown 20 40 2 | |
SetTimer, HitEnter, -3000 | |
return | |
*Enter:: | |
SetTimer, HitEnter, Off | |
Gosub, HitEnter | |
return | |
#IfWinActive | |
HitEnter: | |
Send {Enter} | |
if (Dashing) { | |
MouseMove, x, y, 0 | |
Dashing:=false | |
} | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment