DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Idea - Universal browser keyboard shortcuts  (Read 6,771 times)

ada45373

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3
Idea - Universal browser keyboard shortcuts
« on: January 26, 2007, 12:49 PM »
How about a program so that web browsers operate with the same keyboard shortcuts. Have I not managed to find an already existing program for this?

Universalizer(browser standardizer?) would make keyboard actions uniform among various browsers. What I've tried with mixed results is shortcut keys handling left/right tab switching(via CapsLock + D/F) and back/forward page switching(via CapsLock + R/T.) If I could get such universal response, I would not have to remember the variations among browsers, and might even be able to ignore which browser is being used.

This approach could be used for other situations: scrolling pagedown, scrolling left/right, zooming in/out. Just as it's best for gestures to be universal among software, so too for keyboard actions.

Here's the AHK code which has performed OK at times, but seems mistake-prone. Is there a more reliable setup, or one that could be used to universalize more keyboard actions?

; Introduction - - provide uniform browser keying
; MatchMode = 2 for match anywhere within
;
; CAPSlok & R browser Page BACK
CapsLock & r::
SetTitleMatchMode, 2
IfWinActive, - Microsoft Internet Explorer
  Send, !{Left}
IfWinActive, - Maxthon Browser
Send, !{Left}
IfWinActive, Firefox
Send, !{Left}
; ..............
; CAPSlok & T browser Page FORWARD
CapsLock & t::
SetTitleMatchMode, 2
IfWinActive, - Microsoft Internet Explorer
        Send, !{Right}
IfWinActive, - Maxthon Browser
Send, !{Right}
IfWinActive, Firefox
Send, !{Right}
; ..........................
; CAPSlok & D browser Tab LEFT
CapsLock & d::
SetTitleMatchMode, 2
IfWinActive, - Microsoft Internet Explorer
        Send, !{Left}  ;  - there's NO TABBING
;          so this action's actually PAGE back
IfWinActive, - Maxthon Browser
Send, ^{Left}
IfWinActive, Firefox
Send, ^{PGUP}
; ......................
; CAPSlok & F browser Tab RIGHT
CapsLock & f::
SetTitleMatchMode, 2
IfWinActive, - Microsoft Internet Explorer
Send, !{RIGHT}  ;  - there's NO TABBING
;      so this action's actually PAGE forward
IfWinActive, - Maxthon Browser
Send, ^{RIGHT}
IfWinActive, Mozilla Firefox
Send, ^{PGDN}



I have tried to learn from TWmailrec's 'Key Macros for MS WORD' but I don't know autohotkey well enough to follow it. Using CapsLock is desirable because there are not conflicts with standard shortcuts, plus that key's location is more accessible to using a bunch of different combinations with one hand.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: Idea - Universal browser keyboard shortcuts
« Reply #1 on: January 30, 2007, 04:31 AM »
you can use GroupAdd command to group all browser apps, then create hotkeys for them using #IfWinActive.. btw, there's plenty of sample script at the AHK forums, you should have a look at them.. :)

Original address: https://www.donationcoder.com/forum/index.php?topic=7200.0