Author Topic: Pet Peeve  (Read 1243 times)

0 Members and 1 Guest are viewing this topic.

Offline elemek

  • Thread Starter
  • Posts: 1
Pet Peeve
« on: Fri, 25 March 2011, 16:03:34 »
This actually applies to any peripheral, but I absolutely hate anything that causes my browser to move forward or back a page that is not moving the pointer over to the forward/back buttons in the browser bar and clicking. Delete on the keyboard, mouse buttons 4 and 5. I use these for other things, and having the browser pages when I use them is disconcerting at best, and harmful if I had content in that page that disappeared.
I think I figured out how to disable it for the keyboard, but cannot do so for the mouse without turning off the buttons entirely. I'm using a Logitech LX8, and have tried using setpoint to change this, but it seems to do nothing. Does anyone know a way to solve this, so that hitting these buttons will never ever change my browser page, but they still work just fine in any games?

Offline nanu

  • Posts: 290
    • http://T-T.be/portal
Pet Peeve
« Reply #1 on: Fri, 25 March 2011, 18:53:10 »
I empathize with you on accidental loss of browser form entry. It really becomes a non-issue when you form the habit of using a real text editor for any post not a one-liner. Apparently I'm still in the process of perfecting this habit, for over five years now.

I've done it all. The last time it happened I mistakenly hit Ctrl+R instead of Ctrl+T to search something, mid-post (thanks to lazy Google Instant in the address-bar pre-loading pages as you type, forcing me to make a new tab to do so)

Prior to that I somehow managed to either Ctrl+W or hit Alt and exit a browser entirely by continuing to type.

Opera is particularly dumb with inbuilt "features." Because of a conventional Windows method of navigating the cursor in a text area word-wise using Ctrl+Left Arrow or Ctrl+Right Arrow, you can accidentally instead navigate Opera backward or forwards by accidentally focusing outside of a form field. Oh, yes, you can always go forward in Opera so long as the loaded page contains a hyperlink, I think! What a nice feature! I guess this is what you call "forward thinking" :cool: YEAAAAAAAAA

I digress. Try this Autohotkey script (totally untested since my mouse is basic)

Code: [Select]

; make mouse buttons 4 and 5 do nothing in a certain browser.

;; uncomment one line to support a certain browser.
#IfWinActive, ahk_class Chrome_WidgetWin_0
;#IfWinActive, ahk_class MozillaUIWindowClass
;#IfWinActive, ahk_class OperaWindowClass
;; or try one of these if those don't work
;#IfWinActive, * - Google Chrome
;#IfWinActive, * - opera
;#IfWinActive, * - Mozilla Firefox

XButton1::return
XButton2::return
#IfWinActive ; end of context-sensitive hotkeys

; I suppose you could copy and paste the above for multiple browser support.
« Last Edit: Fri, 25 March 2011, 18:58:31 by nanu »