Send hotkey to minimized chrome window

ⅰ亾dé卋堺 提交于 2019-12-06 05:51:36

问题


I need an autohotkey script that can send alt+backspace to a minimized chrome window (without maximizing it).

Basically, I have a web player app I've made and on the player window which opens in a smaller window, you can press alt+backspace and it will mute and unmute while the window has focus. (javascript events)

Active Window Info says this:

>>>>( TitleMatchMode=slow Visible Text )<<<<
player.highstrike.org/play/

I would like script to work only for that url. I have tried to send cmds to that window but to no avail, can someone please help me? I'd really apreciate it. Thank you.


回答1:


The code i was looking for was

SetTitleMatchMode, Slow
Return

$!BS::
KeyWait, BS
ControlSend,Chrome_RenderWidgetHostHWND1,!{Backspace},,player.highstrike.org/play/
Return


来源:https://stackoverflow.com/questions/12339949/send-hotkey-to-minimized-chrome-window

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!