Hi,
while debugging sometimes I need the au3 stripped script with /mo parameter, so that error lines in the error message match the script. Things I use often I put inside sendto folder (shell:sendto) so I can push my file to this with right click fast. A long time I had problems with some of my scripts stripping this way because the some paths to my script included spaces (you should not do that). But here’s my solution fixing that problem:
Local $sPathToAU3Stripper = "" ; fill in the path here
Local $sPath
If $CmdLineRaw = "" Then ; you didn't do it with sendto
$sPath = FileOpenDialog("Which file you want to AU3-strip?", "","AU3 (*.au3)", 3)
If @error Then
MsgBox(0, 'Error FileOpenDialog:', @error)
Exit
EndIf
Else
$sPath = $CMDLINE[1]
EndIf
Local $sPath_quoted = '"' & $sPath & '"'
ShellExecuteWait($sPathToAU3Stripper, $sPath_quoted & ' /mo', "", "", @SW_HIDE)
I hope someone will find it useful.
Regards, Conrad