如何重新加载/刷新网页,而不必离开我的web开发IDE? [英] How to reload/refresh a web page without leaving my web development IDE?

查看:180
本文介绍了如何重新加载/刷新网页,而不必离开我的web开发IDE?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我建立网站我用2台显示器。我有主监视器,并在网页上我的开发IDE辅助屏幕上打开。

When I build websites I use 2 monitors. I have my development IDE on the main monitor and the web page open on the secondary screen.

我得到恼火,每次我需要刷新网页我得去我的鼠标,移动到其他屏幕,然后单击刷新。

I get annoyed that everytime I need to refresh the web page I have to go to my mouse, move over to the other screen and click refresh.

我想有映射到重新加载网页时,我需要一个快捷键。以类似的方式来Winamp的如何键映射到喜欢打常用功能/暂停等。

I would like to have a shortcut key mapped to reloading the web page whenever I need. In a similar way to how Winamp maps keys to common functions like play/pause etc.

我发现,现有的Firefox的过程中可以通过命令行得以控制,但它可以做的最好的是创建一个新的窗口与特定的URL。

I have discovered that an existing FireFox process can be controled from the command line, however the best it can do is create a new window with a specific URL.

firefox -remote "openURL(www.mozilla.org, new-tab)"

该文档是在这里:<一href=\"https://developer.mozilla.org/en/Command_Line_Options\">https://developer.mozilla.org/en/Command_Line_Options

还有一个Firefox扩展,将定期刷新网页。然而,这将导致在页面的一个恒定抖动,也将是浪费的资源。

There is also a firefox extension that will refresh the web page periodically. However this results in a constant flickering of the page and will also be wasteful with resources.

<一个href=\"https://addons.mozilla.org/en-US/firefox/addon/115/\">https://addons.mozilla.org/en-US/firefox/addon/115/


  • 可定制的全局热键为Firefox / Chrome浏览器重新加载当前选中的标签

  • 的浏览器插件,可以从全局热键
  • 被解雇
  • 要从命令行重新加载当前选中的标签,我可以再映射到一个快捷键的命令(是否有可能增加与extentsion额外的远程命令?)

有谁知道我怎么能做到这一点?谢谢!

推荐答案

在Windows XP中,这应该工作:

In Windows XP, this should work:


  • 创建一个名为VBS文件 refresh.vbs

  • Create a VBS file called refresh.vbs:

Set WshShell = WScript.CreateObject("WScript.Shell") 
WshShell.AppActivate("Firefox")
WshShell.SendKeys "{F5}"
WshShell.AppActivate("TextPad")


  • 创建快捷方式到桌面上的文件。

    右键单击该快捷方式图标,然后转到属性

    Right-click the shortcut icon and go to Properties.


    • 常规选项卡,点击旁边的更改按钮以打开。
      浏览到 C:\\ WINDOWS \\ SYSTEM32 \\的Cscript.exe
      选用基于微软控制台脚本宿主。

    • In the General tab, click on the Change button next to "Opens with". Browse to C:\WINDOWS\system32\cscript.exe Select Microsoft Console Based Script Host.

    快捷方式设置页,输入快捷键例如 CTRL + ALT + R 。在运行下拉列表中,选择最大限度地减小

    In the Shortcut tab, enter a Shortcut key e.g CTRL + ALT + R. In the Run dropdown, select Minimised.

    现在,当你按下 CTRL + ALT + R ,将刷新当前选项卡在Firefox。

    Now, when you hit CTRL + ALT + R, it will refresh the current tab in Firefox.

    这篇关于如何重新加载/刷新网页,而不必离开我的web开发IDE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆