如何映射全局键以刷新? [英] How to map a global key to refresh?

查看:26
本文介绍了如何映射全局键以刷新?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Winamp 有一个简洁的功能.全局键.这样,即使 Winamp GUI 没有焦点,我也可以更改正在播放的歌曲.

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

我正在寻找与 Firefox 或 Chrome 类似的解决方案.

我使用 Eclipse 编写 PHP 代码.它自动 SSH 并保存到另一台机器(测试)我可以使用带有映射虚拟驱动器的 XRefresh 之类的东西,但我无法在测试机上安装 Samba.

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.

现在我必须:

CTRL+S(保存和自动更新)
ALT+TAB(切换到 Firefox GUI)
F5(刷新当前 Firefox 页面)
ALT+TAB(回到 Eclipse)

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

我正在寻找类似的东西:

CTRL+S(保存和自动更新)
CTRL+X(刷新 Firefox - 同时专注于 Eclipse)

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

我查看了 Firefox 插件,但没有发现任何我需要的东西.铬也不是.XRefresh 将是一个完美的解决方案,但如上所述,无法通过 SSH/Samba 进入测试机器.

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.

推荐答案

Autohotkey

让我为 awesome.ahc 文件添加我的结果:

Let me add my result for the awesome.ahc file:

^s::
SetTitleMatchMode, 2
IfWinExist, Mozilla Firefox
{
   WinActivate, Mozilla Firefox
   ControlSend, ahk_parent, {F5}, Mozilla Firefox
}
Return

这将切换到 Firefox 并刷新当前活动的选项卡.

This will switch to firefox and refresh the currently active tab.

这篇关于如何映射全局键以刷新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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