比如浏览器切换到微信,微信切换到开发工具,有没有办法检测到,用什么方法都行,最好是脚本检测
1
Volekingsg 2020 年 8 月 28 日
Hammerspoon 可以做到
|
2
certainly 2020 年 8 月 28 日 via iPhone tell application "System Events" to set frontApp to name of first process whose frontmost is true
if (frontApp = "Safari") or (frontApp = "Webkit") then |
3
xurunfei OP @Volekingsg @certainly 感谢
|
4
xurunfei OP @certainly 再问一下能获取到当前输入法是英文状态还是中文状态吗,我 mac 就用了搜狗,shift 切换状态,想直接检测当前是中文输入还是英文输入,根据不同 app 切换
|
5
scukmh 2020 年 8 月 28 日
|