Skip to content

Instantly share code, notes, and snippets.

@pao
Created February 10, 2011 00:56
Show Gist options
  • Save pao/819716 to your computer and use it in GitHub Desktop.
Save pao/819716 to your computer and use it in GitHub Desktop.
AutoHotkey script fancified to work with the Firefox Home Dash add-on.
#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