#1
|
||||
|
||||
Inno Setup Help
Hola mi amigos....
I was making [basically trying] to make a new Inno Setup Script but am encountering the following problems: 1. HOw to add two slideshows on a same page...I've tried renaming the isslideshow dll into two dlls but the only problem is that only one runs while the other one is stagnant.... 2. Also, where is tio Gozarck???
__________________
We are such stuff as dreams are made on, and our little life is rounded with a sleep. Last edited by RamiroCruzo; 18-02-2016 at 01:13. Reason: New ques. |
Sponsored Links |
#2
|
||||
|
||||
ImgSetVisibility(YourImg, false);
ImgSetVisibility(YourImg, true);
__________________
if you understand read more |
#3
|
||||
|
||||
I need to replace that form image in every wizard page not hide of show...Also, I've already tried it & it say internal error for more than 2 of the images....
__________________
We are such stuff as dreams are made on, and our little life is rounded with a sleep. |
#4
|
||||
|
||||
wizardform.caption:="";
__________________
if you understand read more |
The Following User Says Thank You to rinaldo For This Useful Post: | ||
RamiroCruzo (14-02-2016) |
#5
|
||||
|
||||
Thanks mi hermano...But the rest questions
__________________
We are such stuff as dreams are made on, and our little life is rounded with a sleep. |
#6
|
||||
|
||||
Amigos....Please take a look.....
__________________
We are such stuff as dreams are made on, and our little life is rounded with a sleep. |
#7
|
||||
|
||||
var
Img1, Img2: Longint;.... under initializewizard Img1:=ImgLoad(WizardForm.Handle,ExpandConstant('{t mp}')+'\frame1.png',0,0,900,540,True,True); Img2:=ImgLoad(WizardForm.Handle,ExpandConstant('{t mp}')+'\frame2.png',0,0,900,540,True,True); .... under curpagechange ImgSetVisibility(Img1, false); ImgSetVisibility(Img2, false); case CurPageID of wpWelcome: begin ImgSetVisibility(Img1, true); .... end; wpSelectDir: begin ImgSetVisibility(Img2, true); .... end; |
The Following 2 Users Say Thank You to Razor12911 For This Useful Post: | ||
lolaya (17-02-2016), RamiroCruzo (18-02-2016) |
#8
|
||||
|
||||
Quote:
__________________
We are such stuff as dreams are made on, and our little life is rounded with a sleep. |
#9
|
||||
|
||||
Code:
#Define SlideShow #Define Time = "3000" #define GameName "Slides" #define Publisher "Publisher" #define GameExe "GameExe.exe" [Setup] AppName={#GameName} AppVerName={#GameName} AppPublisher={#Publisher} DefaultDirName={pf}\{#GameName} DefaultGroupName={#GameName} [Languages] Name: "default"; MessagesFile: "compiler:Default.isl" [Icons] Name: "{commondesktop}\{#GameName}"; Filename: "{app}\{#GameExe}"; [UninstallDelete] Type: filesandordirs; Name: {app} [Files] #ifdef SlideShow Source: Slides\isSlideShow.dll; DestDir: {tmp}; Flags: dontcopy Source: Slides\*.jpg; DestDir: {tmp}; Flags: dontcopy #endif [ Code] #ifdef SlideShow var TimerID: LongWord; CurrentPicture:integer; PicList: TStringlist; #endif #ifdef SlideShow Type TProc=procedure(HandleW, msg, idEvent, TimeSys: LongWord); #endif #ifdef SlideShow function WrapTimeCallback(Callback:TProc; NumParam:integer): longword; external 'WrapCallback@files:isslideshow.dll stdcall'; function GetSystemMetrics(nIndex:Integer):Integer; external '[email protected] stdcall'; procedure InitializeSlideShow(Hwnd:Thandle; l,t,w,h:integer;Animate:boolean; Stretch:integer); external 'InitializeSlideShow@files:isslideshow.dll stdcall'; procedure DeinitializeSlideShow; external 'DeinitializeSlideShow@files:isslideshow.dll stdcall'; procedure ShowImage(ipath:PAnsiChar; Effect:integer; SpeedTransition: integer); external 'ShowImage@files:isslideshow.dll stdcall'; function SetTimer(hWnd, nIDEvent, uElapse, lpTimerFunc: LongWord): longword; external '[email protected] stdcall'; function KillTimer(hWnd, nIDEvent: LongWord): LongWord; external '[email protected] stdcall'; #endif #ifdef SlideShow procedure OnTimer(HandleW, msg, idEvent, TimeSys: LongWord); begin CurrentPicture:=CurrentPicture+1; if CurrentPicture=piclist.count+1 then CurrentPicture:=1; ShowImage(piclist.strings[CurrentPicture - 1], 2, 1000); end; #endif procedure InitializeWizard(); begin #ifdef SlideShow PicList:=tstringlist.Create; ExtractTemporaryFile('1.jpg'); ExtractTemporaryFile('2.jpg'); ExtractTemporaryFile('3.jpg'); ExtractTemporaryFile('4.jpg'); ExtractTemporaryFile('5.jpg'); piclist.add(ExpandConstant('{tmp}') + '\1.jpg'); piclist.add(ExpandConstant('{tmp}') + '\2.jpg'); piclist.add(ExpandConstant('{tmp}') + '\3.jpg'); piclist.add(ExpandConstant('{tmp}') + '\4.jpg'); piclist.add(ExpandConstant('{tmp}') + '\5.jpg'); #endif end; procedure CurPageChanged(CurPageID: Integer); begin case CurPageID of wpWelcome: begin #ifdef SlideShow InitializeSlideShow(WizardForm.Handle, 0, 0, WizardForm.ClientWidth, WizardForm.ClientHeight, true, 2); CurrentPicture:=1; ShowImage(piclist.strings[CurrentPicture-1], 1, 1000); TimerID:=SetTimer(0, 0, {#Time}, WrapTimeCallback(@OnTimer, 4)); #endif end; wpFinished: begin #ifdef SlideShow KillTimer(0, TimerID); DeinitializeSlideShow; #endif end; end; end; procedure DeinitializeSetup(); begin #ifdef SlideShow DeinitializeSlideShow; KillTimer(0, TimerID); #endif end; procedure CancelButtonClick(CurPageID: Integer; var Cancel, Confirm: Boolean); begin Confirm:=False; #ifdef SlideShow DeinitializeSlideShow; KillTimer(0, TimerID); #endif end;
__________________
if you understand read more Last edited by rinaldo; 18-02-2016 at 01:29. |
The Following User Says Thank You to rinaldo For This Useful Post: | ||
RamiroCruzo (18-02-2016) |
#10
|
||||
|
||||
Thanks Rinaldo hermano....But the ode you gave me is for a single slideshow...I'm trying to add two on the same page....
__________________
We are such stuff as dreams are made on, and our little life is rounded with a sleep. |
#11
|
||||
|
||||
use double panel
__________________
if you understand read more |
#12
|
||||
|
||||
You talking about adding two of
Code:
InitializeSlideShow(WizardForm.Handle, 0, 356, scaleX(200), ScaleY(112), true, 2);
__________________
We are such stuff as dreams are made on, and our little life is rounded with a sleep. |
Tags |
inno, inno script |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
BlackBox v2 | y_thelastknight | Conversion Tutorials | 566 | 13-10-2023 18:04 |
INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup | REV0 | Conversion Tutorials | 129 | 21-05-2021 06:51 |
Inno Setup: Additional Libraries | altef_4 | Conversion Tutorials | 50 | 21-10-2020 10:59 |
Useful Dll for Inno Setup users | peterf1999 | Conversion Tutorials | 88 | 01-12-2017 17:00 |
INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup | REV0 | Conversion Tutorials | 51 | 26-03-2015 07:57 |