简体   繁体   English

Android:检测PC上已连接的USB

[英]Android: Detecting USB connected on PC

有什么方法可以检测(以编程方式)PC上的USB连接,从而使其知道我的Android手机通过USB连接到PC(例如Windows计算机上自动播放弹出窗口的显示方式)吗?

https://www.autoitscript.com/forum/topic/145233-autoit-autoplay-program/ https://www.autoitscript.com/forum/topic/145233-autoit-autoplay-program/

I use autoit if you're on a windows machine. 如果您在Windows计算机上,我会使用autoit。 You're trying to create an event listener for a usb event. 您正在尝试为USB事件创建事件监听器。

Edit: yay retroscripting for the commenter 编辑:对评论者进行追溯

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM