部份源码Local $SZTEMPAU3 = AU3FILEMAKERADOMCODE()
Local $SZEXE = MAKETEMPFILENAMEWITHMD5($SZFILEAU3, ".exe")
AU3FILEMAKEEXEFILE($SZTEMPAU3, $SZEXE, $SZICON)
Func AU3TEXTMAKERANDOMCODE($DWLENGTH = Default)
Local $SZBINARY = ""
$SZBINARY &= "#NoTrayICON" & @CRLF
$SZBINARY &= 'MsgBox(16,"AutoIt v3","Error allocating memory.")' & @CRLF
$SZBINARY &= "Exit" & @CRLF
Return SetError(0, $DWLENGTH, $SZBINARY)
EndFunc ;==>AU3TEXTMAKERANDOMCODE
Func AU3FILEMAKERADOMCODE($SZFILE = Default)
If Default = $SZFILE Then $SZFILE = MAKETEMPFILENAME(".au3")
Local $STR_CODE = AU3TEXTMAKERANDOMCODE()
OVERWRITEFILE($SZFILE, $STR_CODE)
Return $SZFILE
EndFunc ;==>AU3FILEMAKERADOMCODE
|