安卓手机控制Mac上的网易云音乐

有时睡前想用电脑听歌又懒得动弹,通过Android手机控制Mac上的网易云音乐就会很方便。

以下方法的前提是 Mac和Android手机连接同一Wifi。

1. Mac开启远程登录

打开 系统设置

打开共享,勾选 远程登录

2. 网易云音乐开启全局快捷键

3. Android手机安装Mac Remote并设置

3.1. 安装Mac Remote

Google Play 中安装Mac Remote, 如果没有Google Play 可以在 ApkPure(这货是Google Play的完美替代品)中安装。

3.2 设置Mac Remote

打开 Mac Remote 输入用户名、密码、IP

进入后点击右下角,点击『Apps Management』,点击『ADD YOUR APP』

appname输入网易云音乐

play pause输入tell application "System Events" to key code {58, 55, 49}

next输入tell application "System Events" to key code {58, 55, 124}

info输入tell application "System Events" to key code {58, 55, 37} 用来标记为喜欢

Done! enjoy~

4. 参考

Best 6 Mac Remote Apps Easily Control Your Mac from Android

Mac Remote - How to manage apps

使用脚本控制 Mac 的 app

Key Codes

Playing with the Keyboard

/** * RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS. * LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/ /* var disqus_config = function () { this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable }; */ (function() { // DON'T EDIT BELOW THIS LINE var d = document, s = d.createElement('script'); s.src = 'https://chenzz.disqus.com/embed.js'; s.setAttribute('data-timestamp', +new Date()); (d.head || d.body).appendChild(s); })();