views:

130

answers:

2

Winamp has a neat feature. Global keys. That way I can change the playing song even if Winamp GUI doesn't have focus.

I am looking for a similar solution to Firefox or Chrome.

I use Eclipse to code PHP. It auto SSH's and saves to another machine (testing) I could use something like XRefresh with a mapped virtual drive but I cant install Samba on the testing machine.

Right now I have to:

CTRL+S (save and auto-update)
ALT+TAB (switch to Firefox GUI)
F5 (refresh current Firefox page)
ALT+TAB (back to Eclipse)

I am looking for something like:

CTRL+S (save and auto-update)
CTRL+X (refresh Firefox - while keeping focus on Eclipse)

I've looked over Firefox Plug-ins but found nothing to my needs. Chrome neither. XRefresh would be a perfect solution but, as said, cant SSH/Samba into the testing machine.

+2  A: 

Autohotkey

demoncodemonkey
demoncodemonkey this is exactly what I was looking for! Thank you so much.
Frankie
+1  A: 

As demoncodemonkey greatly suggested you can use Autohotkey. This is my script sample.

^x::                  ; listen for a CTRL+x
   Send ^s               ; sends a CTRL+s save command to Eclipse
   Sleep 500             ; sleeps a bit to allow SSH to transfer file
   Send !{tab}^r         ; alt-tab followed by a browser refresh
   Sleep 100             ; firefox, needs just a bit to allow ALT-TAB
   Send !{tab}           ; tabs back to eclipse

This is even better than I had in mind as I can do it all with only a single command. Very impressive. Thanks again demoncodemonkey.

Frankie
Nice. I probably would have used the WinActivate function instead because your script won't work if you have just Alt+Tabbed to a different window. But I guess it will work most of the time. BTW once you start with AHK there is no going back :)
demoncodemonkey