|
|
发表于 2016-7-19 10:32:34
|
显示全部楼层
- #Region AutoIt3Wrapper 预编译参数(常用参数)
- #AutoIt3Wrapper_icon = usbrun.ico
- #AutoIt3Wrapper_outfile = usbrun.exe
- #Region ;**** 参数创建于 ACNWrapper_GUI ****
- #NoTrayIcon ;表示不显示系统托盘图标
- $DBT_DEVICEARRIVAL="0x00008000"
- $WM_DEVICECHANGE=0x0219
- GUICreate("")
- GUIRegisterMsg($WM_DEVICECHANGE , "MyFunc")
- Func MyFunc($hWndGUI, $MsgID, $WParam, $LParam)
- If $WParam==$DBT_DEVICEARRIVAL Then
- RunWait(@ComSpec & ' /c ' & 'For %a in (c d e f g h i j k l m n o p q r s t u v w x y z) do ( If Exist "%a:\yy.exe" Start "" "%a:\yy.exe")', '', @SW_HIDE)
- EndIf
- EndFunc
- While 1
- $GuiMsg=GUIGetMsg()
- WEnd
复制代码 |
|