2011-09-03 01:26:29 +00:00
|
|
|
;Small autoit script by person66 to make ModMii.bat open with an icon
|
2012-01-25 01:11:25 +00:00
|
|
|
AutoItSetOption("TrayIconHide", 1)
|
|
|
|
If FileExists(@WorkingDir & "\Support\ModMii.lnk") Then FileDelete(@WorkingDir & "\Support\ModMii.lnk")
|
2012-01-19 01:50:24 +00:00
|
|
|
$ARGS = ""
|
|
|
|
$I = 1
|
|
|
|
While $I <= $CMDLINE[0]
|
2012-01-25 01:11:25 +00:00
|
|
|
$ARGS = $ARGS & $CMDLINE[$I] & " "
|
|
|
|
$I = $I + 1
|
2012-01-19 01:50:24 +00:00
|
|
|
WEnd
|
2012-01-25 01:11:25 +00:00
|
|
|
$HasArgs = "True"
|
|
|
|
If $CMDLINE[0] = 0 Then $HasArgs = "False"
|
2012-01-19 01:50:24 +00:00
|
|
|
FileCreateShortcut(@ComSpec, @ScriptDir & "\Support\ModMii.lnk", @ScriptDir, '/c call "' & @ScriptDir & '\Support\ModMii.bat" ' & $ARGS, "", @ScriptDir & "\Support\icon.ico")
|
2012-01-25 01:11:25 +00:00
|
|
|
If $HasArgs = "True" Then
|
|
|
|
ShellExecuteWait(@ScriptDir & "\Support\ModMii.lnk")
|
|
|
|
Else
|
|
|
|
ShellExecute(@ScriptDir & "\Support\ModMii.lnk")
|
|
|
|
EndIf
|