1

Hi I wanted to write a script that ran whenever any device was plugged in. If found How to detect an USB device? for usb ports. And How can I run a script when the power supply is plugged-in or -out? for powersupply, for powersupply however only featured if it was plugged in and then contounsly preformed an action. I need a script to run once whenever something is plugged in. Is there anyway to do this?

0 Answers0