|
|
|
#1
|
|||
|
|||
|
BBoxScript
BBoxScript is testworking 100% lang english Last edited by Dante1995; 28-12-2014 at 20:54. |
| The Following 5 Users Say Thank You to Dante1995 For This Useful Post: | ||
Andrey167 (04-11-2014), arkantos7 (05-11-2014), ChronoCross (04-11-2014), mausschieber (04-11-2014), minh_k43sj (05-11-2014) | ||
| Sponsored Links |
|
#2
|
||||
|
||||
|
Great Work Bro, do not tell how to add the components page here?
|
|
#3
|
|||
|
|||
|
great
![]() you can add music background to scrip ?
|
|
#4
|
|||
|
|||
|
Code:
[Files]
Source: File\Bass.dll; DestDir: {tmp}; Flags: dontcopy deleteafterinstall noencryption nocompression
Source: File\music.mp3; DestDir: {tmp}; Flags: dontcopy deleteafterinstall noencryption nocompression
[ Code]
type
HSTREAM = DWORD;
function BASS_Init(device: Integer; freq, flags: DWORD; win: hwnd; CLSID: Integer): Boolean;
external 'BASS_Init@files:BASS.dll stdcall delayload';
function BASS_StreamCreateFile(mem: BOOL; f: PAnsiChar; offset: DWORD; length: DWORD; flags: DWORD): HSTREAM;
external 'BASS_StreamCreateFile@files:BASS.dll stdcall delayload';
function BASS_Start(): Boolean;
external 'BASS_Start@files:BASS.dll stdcall delayload';
function BASS_Pause(): Boolean;
external 'BASS_Pause@files:BASS.dll stdcall delayload';
function BASS_ChannelPlay(handle: DWORD; restart: BOOL): Boolean;
external 'BASS_ChannelPlay@files:BASS.dll stdcall delayload';
function BASS_Stop(): Boolean;
external 'BASS_Stop@files:BASS.dll stdcall delayload';
function BASS_Free(): Boolean;
external 'BASS_Free@files:BASS.dll stdcall delayload';
const
BASS_SAMPLE_LOOP = 4;
var
MusicButton: TButton;
Name: string;
i : Integer;
procedure MusicButtonOnClick(Sender: TObject);
begin
if MusicButton.Caption = 'Music On' then
begin
MusicButton.Caption := 'Music Off';
BASS_Pause;
end else
begin
MusicButton.Caption := 'Music On';
BASS_Start;
end;
end;
procedure InitializeWizard();
begin
ExtractTemporaryFile('BASS.dll');
ExtractTemporaryFile('music.mp3');
if BASS_Init(-1, 44100, 0, 0, 0) then
begin
BASS_Start;
Name:=ExpandConstant('{tmp}\music.mp3');
i:=BASS_StreamCreateFile(FALSE, PAnsiChar(Name), 0, 0, 4);
if i <> 0 then
begin
BASS_ChannelPlay(i, True);
end;
MusicButton := TNewButton.Create(WizardForm);
MusicButton.Parent := WizardForm;
MusicButton.SetBounds(4,337,131,20);
MusicButton.Caption := 'Music On';
MusicButton.OnClick:=@MusicButtonOnClick;
end;
end;
procedure DeinitializeSetup();
begin
BASS_Stop;
BASS_Free;
end;
|
| The Following 2 Users Say Thank You to Dante1995 For This Useful Post: | ||
Andrey167 (05-11-2014), minh_k43sj (05-11-2014) | ||
|
#5
|
|||
|
|||
|
How to add skin.cjstyles to scrip, please help me
|
|
#6
|
|||
|
|||
|
Simply enter the code under the following headings in blue and if there is no paste all the code
ex: only Code:
UnloadSkin; all Code:
procedure DeinitializeUninstall; begin UnloadSkin; end; Simply enter the isSkin.dll files and Tiger.cjstyles in the folder style #define SkinDll "isSkin.dll" #define StyleName "Tiger.cjstyles" [Setup] [Files] Source: "style\{#SkinDll}"; DestDir: "{app}"; Flags: ignoreversion; Attribs: hidden system; Source: "style\{#StyleName}"; DestDir: "{app}"; Flags: ignoreversion; Attribs: hidden system; [ Code] procedure LoadSkin(lpszPath: PAnsiChar; lpszIniFileName: PAnsiChar); external 'LoadSkin@{tmp}\{#SkinDll} stdcall delayload'; procedure UnloadSkin; external 'UnloadSkin@{tmp}\{#SkinDll} stdcall delayload'; function ShowWindow(hWnd: Integer; uType: Integer): Integer; external '[email protected] stdcall'; function InitializeSetup: Boolean; begin ExtractTemporaryFile('{#SkinDll}'); ExtractTemporaryFile('{#StyleName}'); LoadSkin(ExpandConstant('{tmp}\{#StyleName}'), ''); Result:=True; end; procedure DeinitializeSetup; begin ShowWindow(StrToInt(ExpandConstant('{wizardhwnd}') ), 0); UnloadSkin; end; function InitializeUninstall: Boolean; begin FileCopy(ExpandConstant('{app}\{#SkinDll}'), ExpandConstant('{tmp}\{#SkinDll}'), False); FileCopy(ExpandConstant('{app}\{#StyleName}'), ExpandConstant('{tmp}\{#StyleName}'), False); LoadSkin(ExpandConstant('{tmp}\{#StyleName}'), ''); Result:=True; end; procedure DeinitializeUninstall; begin UnloadSkin; end; Last edited by Dante1995; 05-11-2014 at 19:00. |
| The Following User Says Thank You to Dante1995 For This Useful Post: | ||
minh_k43sj (05-11-2014) | ||
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Inno Setup: Additional Libraries | altef_4 | Conversion Tutorials | 50 | 21-10-2020 09:59 |
| Blackbox Inno Setup Script | Kurutucu | Conversion Tutorials | 1190 | 18-08-2019 22:43 |
| INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup | REV0 | Conversion Tutorials | 51 | 26-03-2015 06:57 |
| Copy file with Inno Setup Script | emrahcey | Software | 1 | 02-07-2010 08:24 |