Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm happily typing HTML in Notepad++ on my Windows machine with 2 monitors, one has Notepad++ and the other has Firefox.

After I finished typing the HTML I would like to see the updated result in Firefox, so I click the Firefox window to highlight it (or Alt + Tab to it when I only have a few windows open), and then press F5, and I see my updated page.

What I want is to have some keyboard shortcut to refresh Firefox while I'm still working in Notepad++, so that I don't have to Alt + Tab all the time.

How could this be done?

share|improve this question

You could just right-click on the page and choose Reload Every..., then choose how often you want to reload the page.

Edit: Reload Every is available as part of the Tab Mix Plus addon, or the Reload Every addon.

share|improve this answer
Probably helps if they have that extension installed... @YuriKolovsky: Here's the URL if you want to explore this solution (I use it myself for the same thing you are): – Mistiry Sep 28 '10 at 17:12
@Mistiry - I don't have that addon...Okay, just checked and it must have come as part of Tab Mix Plus (which I load on every Firefox install). Thanks for the correction - I'll edit my post accordingly. – misterjaytee Sep 28 '10 at 17:33
reloading the page every now and then, although useful for just html/css, but would be a big problem when writing server side code... (oh and thx for the link Mistiry) – Timo Huovinen Sep 28 '10 at 18:12
Would it be possible to create some windows key combination or notepad++ function or something that runs a refresh on all firefox windows? – Timo Huovinen Sep 28 '10 at 18:14

If you want to set a hotkey, you can do it with scripting. Autoit has options for this sort of purpose. You will need the Firefox Library and the MozRepl plugin.

Here is the script that will do it for you:

HotKeySet("!M",'_FFRefresh') ;sets hotkey to Alt+Shift+m to trigger function

While 1 ;loop to keep alive


Func _FFRefresh()
    _FFConnect() ;connect to firefox
    _FFAction("reload") ;refresh window
    _FFDisConnect() ;disconnect from firefox
share|improve this answer
this is new to me, I will try it out and report back tomorrow. – Timo Huovinen Sep 28 '10 at 19:23
This will only work on the last active tab at the moment, but I'll see if I can figure out how to refresh everything. – MaQleod Sep 28 '10 at 19:50
so I download & install autoIt v3, then I install mozRepl plugin, what then what? could you make a small mini-guide for the less experienced? – Timo Huovinen Sep 28 '10 at 20:37
So the MozRepl plugin provides the COM interface that the firefox library needs. You can set it to autostart and then start it in the Firefox Tools Menu under MozRepl. The firefox library gets saved in the Include folder of your AutoIt installation. You will have a basic version of Scite that came with AutoIt that you can edit scripts in. You can also compile them there using Ctrl+F7. You would just need to copy and paste the script above into Scite and save it. You can run the script from Scite, you can right click it in explorer and run it, or you can compile it and run it. – MaQleod Sep 28 '10 at 21:55
up vote 1 down vote accepted

ended up using this:

and this:

share|improve this answer

There is also - it refreshes the browser when you save the document in Notepad++

share|improve this answer
thank you, I will have to try it out – Timo Huovinen Dec 3 '14 at 14:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .