Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-11-2014, 09:49
Dante1995 Dante1995 is offline
Banned
 
Join Date: Feb 2014
Location: Black Hole
Posts: 297
Thanks: 116
Thanked 481 Times in 162 Posts
Dante1995 is on a distinguished road
BBoxScript

BBoxScript is test
working 100%
lang english

Last edited by Dante1995; 28-12-2014 at 20:54.
Reply With Quote
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  
Old 04-11-2014, 10:35
Andrey167's Avatar
Andrey167 Andrey167 is offline
Registered User
 
Join Date: Nov 2013
Location: Azerbaycan
Posts: 134
Thanks: 208
Thanked 124 Times in 46 Posts
Andrey167 is on a distinguished road
Quote:
Originally Posted by Dante1995 View Post
BBoxScript
Great Work Bro, do not tell how to add the components page here?
Reply With Quote
  #3  
Old 04-11-2014, 20:00
minh_k43sj minh_k43sj is offline
Registered User
 
Join Date: Oct 2014
Location: ho chi minh
Posts: 23
Thanks: 14
Thanked 1 Time in 1 Post
minh_k43sj is on a distinguished road
Quote:
Originally Posted by Dante1995 View Post
BBoxScript is test
working 100%
lang english
great
you can add music background to scrip ?
Reply With Quote
  #4  
Old 05-11-2014, 00:47
Dante1995 Dante1995 is offline
Banned
 
Join Date: Feb 2014
Location: Black Hole
Posts: 297
Thanks: 116
Thanked 481 Times in 162 Posts
Dante1995 is on a distinguished road
Quote:
Originally Posted by minh_k43sj View Post
great
you can add music background to scrip ?
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;
Reply With Quote
The Following 2 Users Say Thank You to Dante1995 For This Useful Post:
Andrey167 (05-11-2014), minh_k43sj (05-11-2014)
  #5  
Old 05-11-2014, 04:30
minh_k43sj minh_k43sj is offline
Registered User
 
Join Date: Oct 2014
Location: ho chi minh
Posts: 23
Thanks: 14
Thanked 1 Time in 1 Post
minh_k43sj is on a distinguished road
Quote:
Originally Posted by Dante1995 View Post
BBoxScript is test
working 100%
lang english
How to add skin.cjstyles to scrip, please help me
Reply With Quote
  #6  
Old 05-11-2014, 18:54
Dante1995 Dante1995 is offline
Banned
 
Join Date: Feb 2014
Location: Black Hole
Posts: 297
Thanks: 116
Thanked 481 Times in 162 Posts
Dante1995 is on a distinguished road
Quote:
Originally Posted by minh_k43sj View Post
How to add skin.cjstyles to scrip, please help me
Simply enter the code under the following headings in blue and if there is no paste all the code

ex: only
Code:
UnloadSkin;
or
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.
Reply With Quote
The Following User Says Thank You to Dante1995 For This Useful Post:
minh_k43sj (05-11-2014)
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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



All times are GMT -7. The time now is 21:24.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com