码迷,mamicode.com
首页 > 其他好文 > 详细

AU3编译信息完善

时间:2015-01-13 15:52:35      阅读:99      评论:0      收藏:0      [点我收藏+]

标签:

在帮助文档中查找 #pragma

 

#pragma compile(Out, myProg.exe)
; Uncomment to use the following icon. Make sure the file path is correct and matches the installation of your AutoIt install path.
; #pragma compile(Icon, C:\Program Files\AutoIt3\Icons\au3.ico)
#pragma compile(ExecLevel, highestavailable)
#pragma compile(Compatibility, win7)
#pragma compile(UPX, False)
#pragma compile(FileDescription, myProg - a description of the application)
#pragma compile(ProductName, myProg)
#pragma compile(ProductVersion, 3.7)
#pragma compile(FileVersion, 3.7.0.0, 3.7.100.201) ; The last parameter is optional.
#pragma compile(LegalCopyright, © Joe Bloggs)
#pragma compile(LegalTrademarks, "Trademark something, and some text in "quotes" etc...‘)
#pragma compile(CompanyName, Joe Bloggs & Co‘)

#include <MsgBoxConstants.au3>

If @Compiled Then
    Example()
Else
    MsgBox($MB_SYSTEMMODAL, "", "Please compile before running.")
EndIf

Func Example()
    ; Retrieve the file version of the AutoIt executable.
    Local $sFileVersion = FileGetVersion(@AutoItExe)

    ; Display the file version. This should be equal to @AutoItVersion.
    MsgBox($MB_SYSTEMMODAL, "", $sFileVersion)
EndFunc   ;==>Example

 

AU3编译信息完善

标签:

原文地址:http://www.cnblogs.com/micele/p/4221386.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!