From search and help on here. I am able to detect my iPhone when its plugged in and i run my script.. I want to know how i can detect my iPhone anytime i remove and insert it back without having to run the script again.   Below is the code in detecting  #include <MsgBoxConstants.au3> $wbemFlagReturnImmediately = 0x10 $wbemFlagForwardOnly = 0x20 $WMI = ObjGet("winmgmts:\\" & @ComputerName & "\root\CIMV2") $aItems = $WMI.ExecQue