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: web shortcut that goes to already open tab if open  (Read 6,765 times)

cedardoc

  • Participant
  • Joined in 2008
  • *
  • Posts: 36
Right now my shortcut to gmail will open a new tab even if I already have it open in a tab (firefox).  Things would be faster if the shortcut could just go to the one that's already loaded.  I figured this would already be in existence, but I can't find it.

Thanks,
DP

sri

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 689
Re: IDEA: web shortcut that goes to already open tab if open
« Reply #1 on: May 27, 2008, 08:42 AM »
This might not be the solution you are looking for. But I've put together a very basic AutoHotKey script which will switch to already running Firefox and press ctrl+1. Why 1? Because I always place Gmail in the first tab of Firefox.

Save the following as FirstTabFirefox.ahk:

Code
#SingleInstance force
SetTitleMatchMode, 2
IfWinExist Mozilla Firefox
{
    WinActivate, Mozilla Firefox
}
WinWaitActive, Mozilla Firefox
Send {Ctrl Down}1{Ctrl Up}

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