Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 14-11-2023, 23:11
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 688
Thanks: 481
Thanked 2,547 Times in 561 Posts
BLACKFIRE69 is on a distinguished road
Quote:
Originally Posted by ADMIRAL View Post
thanks for answer but it's was about metro0 script that you posted
@ADMIRAL,

after making a few changes to the code, you can make it work. however, if i'm correct, there're some aspects in the script that need further implementation. it would be better to ask the authors to complete the script.


Code:
Edit1: 

* Replace the current 'ListBoxOnChange' code with this.

procedure ListBoxOnChange(Sender: TObject);
var
  ADir: String;
begin
  if (FMXListBox[2].GetItemIndex > -1) then
  begin
    ADir := FMXEdit[1].GetText;
    StringChange(ADir, ExtractFileDrive(ADir), FMXListBox[2].GetItemText(FMXListBox[2].GetItemIndex));
    FMXLabel[197].Text(MinimizePathName(ADir, WizardForm.DirEdit.Font, WizardForm.DirEdit.Width));
    FMXEdit[1].Text(MinimizePathName(ADir, WizardForm.DirEdit.Font, WizardForm.DirEdit.Width));
    WizardForm.DirEdit.Text:= ADir;

    FMXDiskUsage.SetDir(WizardForm.DirEdit.Text);
    FMXLabel[82].Text(MbOrTb(FMXDiskUsage.FreeSpace, 1));
    FMXLabel[85].Text(MbOrTb(FMXDiskUsage.FreeSpace, 1) + ' is available from the selected drive');
    FMXArc[5].Angle(FMXDiskUsage.FreeSpace, FMXDiskUsage.TotalSpace);
  end;
end;

procedure ListBx3OnChange(Sender: TObject);
var
  ADir: WideString;
begin
  if FMXListBox[3].GetItemIndex > -1 then
  begin
    ADir:= ExtractFileDrive(FMXEdit[1].GetText) + '\' + AddBackslash(FMXListBox[3].GetItemText(FMXListBox[3].GetItemIndex)) + '{#MyAppName}';
    FMXLabel[197].Text(MinimizePathName(ADir, WizardForm.DirEdit.Font, WizardForm.DirEdit.Width));
    FMXEdit[1].Text(MinimizePathName(ADir, WizardForm.DirEdit.Font, WizardForm.DirEdit.Width));
    WizardForm.DirEdit.Text:= ADir;

    FMXDiskUsage.SetDir(WizardForm.DirEdit.Text);
    FMXLabel[82].Text(MbOrTb(FMXDiskUsage.FreeSpace, 1));
    FMXLabel[85].Text(MbOrTb(FMXDiskUsage.FreeSpace, 1) + ' is available from the selected drive');
    FMXArc[5].Angle(FMXDiskUsage.FreeSpace, FMXDiskUsage.TotalSpace);
  end;
end;

Code:
Edit2: 

* Comment out the following line in the code.

//FMXEdit[1].OnChange(@ListBoxOnChange);

Code:
Edit3: 

* Replace the ListBoxOnChange event with ListBx3OnChange for the FMXListBox[3].

FMXListBox[3].OnChange(@ListBx3OnChange);
.

Last edited by BLACKFIRE69; 14-07-2024 at 02:12.
Reply With Quote
The Following 3 Users Say Thank You to BLACKFIRE69 For This Useful Post:
ADMIRAL (15-11-2023), audiofeel (15-11-2023), hitman797 (15-11-2023)
Sponsored Links
  #2  
Old 15-11-2023, 08:02
ADMIRAL's Avatar
ADMIRAL ADMIRAL is offline
Registered User
 
Join Date: Oct 2019
Location: iran
Posts: 92
Thanks: 568
Thanked 40 Times in 34 Posts
ADMIRAL is on a distinguished road
Quote:
Originally Posted by BLACKFIRE69 View Post
@ADMIRAL,

after making a few changes to the code, you can make it work. however, if i'm correct, there're some aspects in the script that need further implementation. it would be better to ask the authors to complete the script.


Code:
Edit1: 

* Replace the current 'ListBoxOnChange' code with this.

procedure ListBoxOnChange(Sender: TObject);
var
  ADir: String;
begin
  if (FMXListBox[2].GetItemIndex > -1) then
  begin
    ADir := FMXEdit[1].GetText;
    StringChange(ADir, ExtractFileDrive(ADir), FMXListBox[2].GetItemText(FMXListBox[2].GetItemIndex));
    FMXLabel[197].Text(MinimizePathName(ADir, WizardForm.DirEdit.Font, WizardForm.DirEdit.Width));
    FMXEdit[1].Text(MinimizePathName(ADir, WizardForm.DirEdit.Font, WizardForm.DirEdit.Width));
    WizardForm.DirEdit.Text:= ADir;

    FMXDiskUsage.SetDir(WizardForm.DirEdit.Text);
    FMXLabel[82].Text(MbOrTb(FMXDiskUsage.FreeSpace, 1));
    FMXLabel[85].Text(MbOrTb(FMXDiskUsage.FreeSpace, 1) + ' is available from the selected drive');
    FMXArc[5].Angle(FMXDiskUsage.FreeSpace, FMXDiskUsage.TotalSpace);
  end;
end;

procedure ListBx3OnChange(Sender: TObject);
var
  ADir: WideString;
begin
  if FMXListBox[3].GetItemIndex > -1 then
  begin
    ADir:= ExtractFileDrive(FMXEdit[1].GetText) + '\' + AddBackslash(FMXListBox[3].GetItemText(FMXListBox[3].GetItemIndex)) + '{#MyAppName}';
    FMXLabel[197].Text(MinimizePathName(ADir, WizardForm.DirEdit.Font, WizardForm.DirEdit.Width));
    FMXEdit[1].Text(MinimizePathName(ADir, WizardForm.DirEdit.Font, WizardForm.DirEdit.Width));
    WizardForm.DirEdit.Text:= ADir;

    FMXDiskUsage.SetDir(WizardForm.DirEdit.Text);
    FMXLabel[82].Text(MbOrTb(FMXDiskUsage.FreeSpace, 1));
    FMXLabel[85].Text(MbOrTb(FMXDiskUsage.FreeSpace, 1) + ' is available from the selected drive');
    FMXArc[5].Angle(FMXDiskUsage.FreeSpace, FMXDiskUsage.TotalSpace);
  end;
end;

Code:
Edit2: 

* Comment out the following line in the code.

//FMXEdit[1].OnChange(@ListBoxOnChange);

Code:
Edit3: 

* Replace the ListBoxOnChange event with ListBx3OnChange for the FMXListBox[3].

FMXListBox[3].OnChange(@ListBx3OnChange);
.

Thank you for your quick reply, but even with the edit's codes, I am still facing the same problem. Are there any problems for you with these codes in the script?
__________________
Search and Find
Reply With Quote
  #3  
Old 15-11-2023, 08:06
ADMIRAL's Avatar
ADMIRAL ADMIRAL is offline
Registered User
 
Join Date: Oct 2019
Location: iran
Posts: 92
Thanks: 568
Thanked 40 Times in 34 Posts
ADMIRAL is on a distinguished road
Quote:
Originally Posted by audiofeel View Post
This part of the code was implemented by @Hitman797. I think that sometimes he will have a free hour and he will fix everything thanks to your edits in the code.
==Here is the latest "clean version" for the changes==
In the first test, my partitions and folders were not displayed at all, and by adding codes, I only encountered errors.
__________________
Search and Find
Reply With Quote
  #4  
Old 15-11-2023, 12:18
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,404 Times in 637 Posts
Masquerade is on a distinguished road
Weird... I installed the font to my system and now all is fine
Sorry for the issues! Inno isn't my thing...
Reply With Quote
  #5  
Old 16-11-2023, 06:54
ADMIRAL's Avatar
ADMIRAL ADMIRAL is offline
Registered User
 
Join Date: Oct 2019
Location: iran
Posts: 92
Thanks: 568
Thanked 40 Times in 34 Posts
ADMIRAL is on a distinguished road
Quote:
Originally Posted by audiofeel View Post
@ADMIRAL Test whether your directory selection is working correctly now
thanks to you
Yes, it worked this time
The path selection section works correctly, except that it does not show C drive folders for the first time, but the important thing is that the path can be selected.
and add folder button works too.

can you share the iss file?
__________________
Search and Find

Last edited by ADMIRAL; 16-11-2023 at 09:56.
Reply With Quote
The Following User Says Thank You to ADMIRAL For This Useful Post:
audiofeel (16-11-2023)
  #6  
Old 16-11-2023, 08:24
Jahan1373 Jahan1373 is offline
Registered User
 
Join Date: Jan 2022
Location: Yes
Posts: 46
Thanks: 104
Thanked 9 Times in 9 Posts
Jahan1373 is on a distinguished road
Thumbs up Script metro need for speed

Everything is great and good, only I saw 2 big problems, one of them did not have the date of the watch
2. When I chose the installation location, it wrote the volume on the image, it wrote the same. 2. There were only problems, thanks for your good script
Reply With Quote
The Following User Says Thank You to Jahan1373 For This Useful Post:
audiofeel (16-11-2023)
  #7  
Old 16-11-2023, 09:10
hitman797's Avatar
hitman797 hitman797 is offline
Registered User
 
Join Date: Feb 2013
Location: Algeria
Posts: 168
Thanks: 486
Thanked 202 Times in 122 Posts
hitman797 is on a distinguished road
Quote:
Originally Posted by Jahan1373 View Post
Everything is great and good, only I saw 2 big problems, one of them did not have the date of the watch
2. When I chose the installation location, it wrote the volume on the image, it wrote the same. 2. There were only problems, thanks for your good script
wait for @BLACKFIRE69 to update the library to add those things.
and you missing the music button and counter app running.
Reply With Quote
The Following User Says Thank You to hitman797 For This Useful Post:
audiofeel (16-11-2023)
  #8  
Old 16-11-2023, 09:56
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 688
Thanks: 481
Thanked 2,547 Times in 561 Posts
BLACKFIRE69 is on a distinguished road
Arrow FMXInno - Nov-16 - Hotfix-01

FMXInno - Nov-16 - Hotfix-01


Code:
1. Added wGetRunningAppCount on the request of @hitman797.
2. Added missing properties and fixed bugs reported by @audiofeel and @tihiy_don.
3. Some improvements.

i'll update the first article soon.

.

Last edited by BLACKFIRE69; 22-01-2024 at 21:53.
Reply With Quote
The Following 4 Users Say Thank You to BLACKFIRE69 For This Useful Post:
ADMIRAL (16-11-2023), audiofeel (16-11-2023), hitman797 (16-11-2023), Tihiy_Don (16-11-2023)
  #9  
Old 16-11-2023, 10:16
hitman797's Avatar
hitman797 hitman797 is offline
Registered User
 
Join Date: Feb 2013
Location: Algeria
Posts: 168
Thanks: 486
Thanked 202 Times in 122 Posts
hitman797 is on a distinguished road
Quote:
Originally Posted by BLACKFIRE69 View Post
FMXInno - Nov-16 - Hotfix-01


Code:
1. Added wGetRunningAppCount on the request of @hitman797.
2. Added missing properties and fixed bugs reported by @audiofeel and @tihiy_don.
3. Some improvements.

i'll update the first article soon.

.
great work, thank you for the update.
if we make GUI to this library that will help the authors to save a lot of time.

for the lock screen
Code:
  HeadForm.OnActivate(@OnActivate);
  HeadForm.OnDeactivate(@OnDeactivate);
Code:
procedure OnActivate(Event: TNotifyEvent);
procedure OnDeactivate(Event: TNotifyEvent);

Last edited by hitman797; 16-11-2023 at 11:06.
Reply With Quote
The Following 2 Users Say Thank You to hitman797 For This Useful Post:
audiofeel (16-11-2023), BLACKFIRE69 (16-11-2023)
  #10  
Old 16-11-2023, 19:10
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 688
Thanks: 481
Thanked 2,547 Times in 561 Posts
BLACKFIRE69 is on a distinguished road
Quote:
Originally Posted by hitman797 View Post
for the lock screen
Code:
  HeadForm.OnActivate(@OnActivate);
  HeadForm.OnDeactivate(@OnDeactivate);

my apologies; you've requested this before, and though i had it in mind, it appears i forgot about it.


Code:
1. Added OnActivate and OnDeactivate events to lockscreen.
2. Added wGetUserCountryName function.

Last edited by BLACKFIRE69; 22-01-2024 at 21:54.
Reply With Quote
The Following 3 Users Say Thank You to BLACKFIRE69 For This Useful Post:
audiofeel (16-11-2023), hitman797 (16-11-2023), Tihiy_Don (16-11-2023)
  #11  
Old 30-11-2023, 12:14
ADMIRAL's Avatar
ADMIRAL ADMIRAL is offline
Registered User
 
Join Date: Oct 2019
Location: iran
Posts: 92
Thanks: 568
Thanked 40 Times in 34 Posts
ADMIRAL is on a distinguished road
Quote:
Originally Posted by audiofeel View Post
@ADMIRAL Test whether your directory selection is working correctly now
Hello audiofeel
As I said before, the test you sent works
Can I have your iss file?
__________________
Search and Find
Reply With Quote
  #12  
Old 15-11-2023, 08:10
ADMIRAL's Avatar
ADMIRAL ADMIRAL is offline
Registered User
 
Join Date: Oct 2019
Location: iran
Posts: 92
Thanks: 568
Thanked 40 Times in 34 Posts
ADMIRAL is on a distinguished road
Quote:
Originally Posted by audiofeel View Post
This part of the code was implemented by @Hitman797. I think that sometimes he will have a free hour and he will fix everything thanks to your edits in the code.
==Here is the latest "clean version" for the changes==
Again, I tried to change the redirection section similar to the photo by simulating the codes, but again it was useless because the coding method is different in both.
Attached Images
File Type: jpg Untitled.jpg (51.2 KB, 118 views)
__________________
Search and Find
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Windows Fluent Effects Standalone API - InnoSetup / VCL / FXM BLACKFIRE69 Conversion Tutorials 0 15-11-2023 17:35
Windows Phone Installer similar to razor12911's original design? Kitsune1982 Conversion Tutorials 0 02-07-2020 13:04
INDEX - Conversion Tutorial Index Razor12911 Conversion Tutorials 5 11-06-2020 02:05
Frequently Asked Questions Joe Forster/STA PC Games - Frequently Asked Questions 0 29-11-2005 09:48



All times are GMT -7. The time now is 13:23.


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