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
  #61  
Old 02-09-2015, 03:56
Mabrikos Mabrikos is offline
Registered User
 
Join Date: May 2014
Location: Moscow
Posts: 10
Thanks: 1
Thanked 3 Times in 3 Posts
Mabrikos is on a distinguished road
What inno i need for this script? Heres only errors
Reply With Quote
The Following User Says Thank You to Mabrikos For This Useful Post:
yasserdivar (16-09-2015)
Sponsored Links
  #62  
Old 17-09-2015, 10:31
rinaldo's Avatar
rinaldo rinaldo is offline
Registered User
 
Join Date: Sep 2015
Location: Rome
Posts: 433
Thanks: 101
Thanked 696 Times in 191 Posts
rinaldo is on a distinguished road
Good!
cute but really ... the video starts with the main form and should only be activated from the button, then remove suspended the procedure unpacket, not working (ex: SuspendProc ...) ..

ex:
Code:
procedure VideoFormBtnClick(hBtn:HWND);
begin
VideoForm := CreateCustomForm();
with VideoForm do
begin
VideoForm:=CreateCustomForm();
VideoForm.BorderStyle:=bsNone;
VideoForm.ClientWidth:=650;
VideoForm.ClientHeight:=500;
VideoForm.Center;
VideoForm.OnMouseDown:=@VideoFormOnMouseDown;

SetRgn(VideoForm.Handle,'VForm.bmp', 650,500);
VideoFormWizard:=ImgLoad(VideoForm.Handle, ExpandConstant('{tmp}')+'\VForm.png',0,0,650,500,True,True);
ImgApplyChanges(VideoForm.Handle);

VideoFrame:=TForm.Create(nil);
VideoFrame.BorderStyle:=bsNone;
CreateFormFromImage(VideoFrame.Handle,ExpandConstant('{tmp}\VForm.png'));
VideoForm.Left:=VideoFrame.Left;
VideoForm.Top:=VideoFrame.Top;
OldMainProc:=SetWindowLong(VideoForm.Handle, -4, WrapFormCallback(@WizardFormProc5,4));
VideoForm.OnMouseDown:=@VideoFormOnMouseDown;
end;

VideoFormLabel := TLabel.Create(nil);
with VideoFormLabel do
begin
AutoSize := False;
Font.Name := '{#FontName}';
Font.Color := clWhite;
Font.Size := 12;
Parent := VideoForm;
Caption := ExpandConstant('{cm:Button}');
SetBounds(ScaleX(20), ScaleY(460), ScaleX(500), ScaleY(300));
OnMouseDown:=@VideoFormOnMouseDown;
end;

PauseBT:=TBitmapImage.Create(nil);
with PauseBT do begin
SetBounds(ScaleX(150), ScaleY(455), ScaleX(31), ScaleY(30));
Bitmap.LoadFromFile(ExpandConstant('{tmp}\Pause.bmp'));
Parent:=VideoForm;
PauseBT.Hide;
OnClick:=@Pause;
end;
//use switch .png
PlayBT:=TBitmapImage.Create(nil);
with PlayBT do begin
SetBounds(ScaleX(150), ScaleY(455), ScaleX(31), ScaleY(30));
Bitmap.LoadFromFile(ExpandConstant('{tmp}\Play.bmp'));
Parent:=VideoForm;
OnClick:=@Play;
end;

VideoExitBtn:=BtnCreate(VideoForm.Handle,ScaleX(560),ScaleY(455),ScaleX(100),ScaleY(30),ExpandConstant('Button.png'),0,False);
BtnSetEvent(VideoExitBtn,BtnClickEventID,WrapBtnCallback(@VideoExitBtnClick,1));
BtnSetCursor(VideoExitBtn,GetSysCursorHandle(32649));
BtnSetFont(VideoExitBtn,WFButtonFont.Handle);
BtnSetText(VideoExitBtn,'Close');
BtnSetFontColor(VideoExitBtn,$00FFFFFF,$00695E5E,$00FFFFFF,$00695E5E);

ImgApplyChanges(VideoForm.Handle);

ExtractTemporaryFile(ExpandConstant('Video.avi'));
mciSendString('open "'+ ExpandConstant('{tmp}\Video.avi') +'" alias MPEGVideo parent '+ IntToStr(VideoForm.Handle) +' style child','',0,0)
mciSendString('put MPEGVideo window at '+ IntToStr(11) +' '+ IntToStr(10) +' '+ IntToStr(ScaleX(629)) +' '+ IntToStr(ScaleY(439)),'',0,0)
mciSendString('play MPEGVideo repeat','',0,0);
PauseBT.Show;
PlayBT.Hide;
VideoForm.Show;
end;
cancel:
videoplay();

for the buttons of the video can use a switch PNG (no .bmp)

I repeat and very cute this script
Reply With Quote
The Following User Says Thank You to rinaldo For This Useful Post:
ramydarkness (19-03-2022)
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
NASCAR The Game 2013 (inno setup script) sentinelks PC Games - CD/DVD Conversions 28 08-09-2013 20:30
WHat is the point??!!! Quertas of Atlantis General Gaming 6 27-05-2006 22:35
What? A pornography game? This game aren’t for me Tie Wrap XBox 360 Games 9 19-04-2006 05:51
Age Of Empires III - Patch 1.05 is out! *Major* fixes! Xophile General Gaming 5 01-03-2006 14:55
Software to backup dvdps2 games eastcoastguy PS2 Games 16 05-12-2002 09:53



All times are GMT -7. The time now is 00:05.


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