; changes the extra mouse buttons to add auto correct entries, back then forward XButton1:: Send {Click}{Click}+{left}^c{Click Right} return ; !XButton1:: FileAppend, `n::%Clipboard%, %A_ScriptFullPath% Send {Click}{Click}+{left}^c FileAppend, ::%Clipboard%, %A_ScriptFullPath% reload return ;
The idea here is to easily add auto correct entries in firefox. One button copies and right clicks so I can choose a suggestied correction and an alt click of the same button adds the chosen correction and reloads the script.
It's working great except that in some firefox windows this portion of the code causes the browser to go back (the buttons original function).
!XButton1:: FileAppend, `n::%Clipboard%, %A_ScriptFullPath% Send {Click}{Click}+{left}^c FileAppend, ::%Clipboard%, %A_ScriptFullPath% reload return ;
Firefox does not have a function to disable mouse buttons, so I am forced to look outside firefox.
I guess my question is how do I utterly replace a buttons function with autohotkey to the depth required to fool firefox into thinking said button was never pressed beyond the actions I specify in the code?
Thank you for your time.