📄 scriptfunc.pas
字号:
MainTable: array [0..12] of String =
(
'function WizardForm: TWizardForm;',
'function MainForm: TMainForm;',
'function ActiveLanguage: String;',
'function IsComponentSelected(const Components: String): Boolean;',
'function IsTaskSelected(const Tasks: String): Boolean;',
'function ExpandConstant(const S: String): String;',
'function ExpandConstantEx(const S: String; const CustomConst, CustomValue: String): String;',
'function ExitSetupMsgBox: Boolean;',
'function GetShellFolder(Common: Boolean; const ID: TShellFolderID): String;',
'function GetShellFolderByCSIDL(const Folder: Integer; const Create: Boolean): String;',
'function InstallOnThisVersion(const MinVersion, OnlyBelowVersion: String): Integer;',
'function GetWindowsVersion: Cardinal;',
'function GetWindowsVersionString: String;'
);
{ Msgs }
MsgsTable: array[0..0] of String =
(
'function SetupMessage(const ID: TSetupMessageID): String;'
);
{ System }
SystemTable: array [0..1] of String =
(
'function Random(const Range: Integer): Integer;',
'function FileSize(const Name: String; var Size: Integer): Boolean;'
);
{ SysUtils }
SysUtilsTable: array [0..27] of String =
(
'procedure Beep;',
'function Trim(const S: string): string;',
'function TrimLeft(const S: string): string;',
'function TrimRight(const S: string): string;',
'function GetCurrentDir: string;',
'function SetCurrentDir(const Dir: string): Boolean;',
'function ExpandFileName(const FileName: string): string;',
'function ExpandUNCFileName(const FileName: string): string;',
'function ExtractRelativePath(const BaseName, DestName: string): string;',
'function ExtractFileDir(const FileName: string): string;',
'function ExtractFileDrive(const FileName: string): string;',
'function ExtractFileExt(const FileName: string): string;',
'function ExtractFileName(const FileName: string): string;',
'function ExtractFilePath(const FileName: string): string;',
'function ChangeFileExt(const FileName, Extension: string): string;',
'function FileSearch(const Name, DirList: string): string;',
'function RenameFile(const OldName, NewName: string): Boolean;',
'function DeleteFile(const FileName: string): Boolean;',
'function CreateDir(const Dir: string): Boolean;',
'function RemoveDir(const Dir: string): Boolean;',
'function CompareStr(const S1, S2: string): Integer;',
'function CompareText(const S1, S2: string): Integer;',
'function Format1(const Format, S1: String): String;',
'function Format2(const Format, S1, S2: String): String;',
'function Format3(const Format, S1, S2, S3: String): String;',
'function Format4(const Format, S1, S2, S3, S4: String): String;',
'function GetDateTimeString(const DateTimeFormat: String; const DateSeparator, TimeSeparator: Char): String;',
'function SysErrorMessage(ErrorCode: Integer): String;'
);
SysUtilsDelphiTable: array [0..2] of String =
(
'function FindFirst(const FileName: String; var FindRec: TFindRec): Boolean;',
'function FindNext(var FindRec: TFindRec): Boolean;',
'procedure FindClose(var FindRec: TFindRec);'
);
{ FileCtrl }
FileCtrlTable: array [0..0] of String =
(
'function ForceDirectories(Dir: string): Boolean;'
);
{ VerInfo }
VerInfoTable: array [0..1] of String =
(
'function GetVersionNumbers(const Filename: String; var VersionMS, VersionLS: Cardinal): Boolean;',
'function GetVersionNumbersString(const Filename: String; var Version: String): Boolean;'
);
{ Windows }
WindowsTable: array [0..15] of String =
(
'procedure Sleep(const Milliseconds: LongInt);',
'function FindWindowByClassName(const ClassName: String): HWND;',
'function FindWindowByWindowName(const WindowName: String): HWND;',
'function SendMessage(const Wnd: HWND; const Msg, WParam, LParam: Longint): Longint;',
'function PostMessage(const Wnd: HWND; const Msg, WParam, LParam: Longint): Boolean;',
'function SendNotifyMessage(const Wnd: HWND; const Msg, WParam, LParam: Longint): Boolean;',
'function RegisterWindowMessage(const Name: String): Longint;',
'function SendBroadcastMessage(const Msg, WParam, LParam: Longint): Longint;',
'function PostBroadcastMessage(const Msg, WParam, LParam: Longint): Boolean;',
'function SendBroadcastNotifyMessage(const Msg, WParam, LParam: Longint): Boolean;',
'function LoadDLL(const DLLName: String; var ErrorCode: Integer): Longint;',
'function CallDLLProc(const DLLHandle: Longint; const ProcName: String; const Param1, Param2: Longint; var Result: Longint): Boolean;',
'function FreeDLL(const DLLHandle: Longint): Boolean;',
'procedure CreateMutex(const Name: String);',
'procedure OemToCharBuff(var S: String);',
'procedure CharToOemBuff(var S: String);'
);
{ Ole2 }
Ole2Table: array [0..0] of String =
(
'procedure CoFreeUnusedLibraries;'
);
{ Logging }
LoggingTable: array [0..0] of String =
(
'procedure Log(const S: String);'
);
{ Other }
OtherTable: array [0..23] of String =
(
'procedure BringToFrontAndRestore;',
'function WizardDirValue: String;',
'function WizardGroupValue: String;',
'function WizardNoIcons: Boolean;',
'function WizardSetupType(const Description: Boolean): String;',
'function WizardSelectedComponents(const Descriptions: Boolean): String;',
'function WizardSelectedTasks(const Descriptions: Boolean): String;',
'function WizardSilent: Boolean;',
'function IsUninstaller: Boolean;',
'function UninstallSilent: Boolean;',
'function CurrentFileName: String;',
'function CastStringToInteger(var S: String): Longint;',
'function CastIntegerToString(const L: Longint): String;',
'procedure Abort;',
'function GetExceptionMessage: String;',
'procedure RaiseException(const Msg: String);',
'procedure ShowExceptionMessage;',
'function Terminated: Boolean;',
'function GetPreviousData(const ValueName, DefaultValueData: String): String;',
'function SetPreviousData(const PreviousDataKey: Integer; const ValueName, ValueData: String): Boolean;',
'function LoadStringFromFile(const FileName: String; var S: String): Boolean;',
'function LoadStringsFromFile(const FileName: String; var S: TArrayOfString): Boolean;',
'function SaveStringToFile(const FileName, S: String; const Append: Boolean): Boolean;',
'function SaveStringsToFile(const FileName: String; const S: TArrayOfString; const Append: Boolean): Boolean;'
);
implementation
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -