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

Reply
 
Thread Tools Display Modes
  #211  
Old 21-02-2023, 08:28
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,746
Thanks: 2,141
Thanked 11,095 Times in 2,295 Posts
Razor12911 is on a distinguished road
I'm not sure I understand your question, but effectively both the normal function and the extended function are the same, the extended function just gives the option to only make a font available to the caller process or that the font should not be enumerated by any process, other than that. They are virtually the same, if you're referring to the functions seemingly not working on FMX platform then all you need to do is call the function before the application is created/initialized.
Reply With Quote
The Following 2 Users Say Thank You to Razor12911 For This Useful Post:
audiofeel (21-02-2023), hitman797 (21-02-2023)
Sponsored Links
  #212  
Old 21-02-2023, 13:30
audiofeel's Avatar
audiofeel audiofeel is online now
Registered User
 
Join Date: Jan 2013
Location: Russia
Posts: 366
Thanks: 439
Thanked 837 Times in 306 Posts
audiofeel is on a distinguished road
Quote:
Originally Posted by Razor12911 View Post
I'm not sure I understand your question, but effectively both the normal function and the extended function are the same, the extended function just gives the option to only make a font available to the caller process or that the font should not be enumerated by any process, other than that. They are virtually the same, if you're referring to the functions seemingly not working on FMX platform then all you need to do is call the function before the application is created/initialized.
OK. understood, accepted. To be honest, I'm trying to make compatibility with Windows 7 (about 10% of users still work on it). The first thing I encountered was fonts, They do not display them, according to the first method, "RG APEX" has a script for which I made my script. and there the font is magically installed for me with the help of a piece from microsoft "Fontinstall.dll /f fontinstall.inf" To be honest, it's not clear how they did it - but everything works on Win 7. And the question is- after all, how did they do it, or is there a way to get the font to connect in both Win7 and Win 11.
Reply With Quote
The Following User Says Thank You to audiofeel For This Useful Post:
hitman797 (21-02-2023)
  #213  
Old 21-02-2023, 15:05
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,746
Thanks: 2,141
Thanked 11,095 Times in 2,295 Posts
Razor12911 is on a distinguished road
Ah I remember now. I once had this problem in ASC (Advanced Setup Creator), this isn't a AddFontResource problem but rather a FMX problem on other platforms and the way I fixed it was temporarily placing the font in "C:\Windows\Fonts" you can use FileCopy after extracting temporary files, then adding the font name in Windows Registry in "Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Wi ndows NT\CurrentVersion\Fonts", with Font Name (TrueType) as value name and the font filename as value data. It's wise to check if the font exists in registry before doing this because you need to delete the registry and delete the file in deinitializesetup.
Attached Images
File Type: png fonts.PNG (99.4 KB, 245 views)
Reply With Quote
The Following 3 Users Say Thank You to Razor12911 For This Useful Post:
audiofeel (21-02-2023), hitman797 (24-02-2023), Tihiy_Don (28-01-2024)
  #214  
Old 21-02-2023, 15:23
audiofeel's Avatar
audiofeel audiofeel is online now
Registered User
 
Join Date: Jan 2013
Location: Russia
Posts: 366
Thanks: 439
Thanked 837 Times in 306 Posts
audiofeel is on a distinguished road
OK. Here I was unexpectedly introduced to "FontReg.exe " https://code.kliu.org/misc/fontreg / . I have very high hopes for her. But there is a small problem - this is a test "on live systems". But to hell with it with the test, the most important thing is that this utility installs and registers fonts in the system without distorting the explorer and as a result the fonts remain in the system, it seems to me that not every user will like it. But still, for now, it should work both at 7 and at 11. And this is a FAT plus.
https://youtu.be/xsfhrtsRWHU

Last edited by audiofeel; 21-02-2023 at 19:17.
Reply With Quote
The Following User Says Thank You to audiofeel For This Useful Post:
hitman797 (22-02-2023)
  #215  
Old 22-02-2023, 11:05
audiofeel's Avatar
audiofeel audiofeel is online now
Registered User
 
Join Date: Jan 2013
Location: Russia
Posts: 366
Thanks: 439
Thanked 837 Times in 306 Posts
audiofeel is on a distinguished road
who has "win 7" as you have with the launch of "Core pack Style" are especially interested in fonts
also check out the new installer "ATOMIC HEART" is also interested in displaying fonts. all ISS included
P.S thanks for the atomic heart installer style Razor12911

Last edited by audiofeel; 08-03-2023 at 08:57.
Reply With Quote
The Following 2 Users Say Thank You to audiofeel For This Useful Post:
Harsh ojha (28-02-2023), hitman797 (24-02-2023)
  #216  
Old 22-02-2023, 12:17
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,746
Thanks: 2,141
Thanked 11,095 Times in 2,295 Posts
Razor12911 is on a distinguished road
It works fine on Windows 7 (although it was via VM), however there seems to be other problems. I'm not sure if those bezels (the edges left, right and bottom) are by design but they just seemed to be out of place and they are even more prominent if you disable the aero theme.
Attached Images
File Type: png testwin7_1.PNG (889.8 KB, 229 views)
File Type: png testwin7_2.PNG (644.2 KB, 232 views)
File Type: png testwin7_3.PNG (428.0 KB, 227 views)
Reply With Quote
The Following 2 Users Say Thank You to Razor12911 For This Useful Post:
audiofeel (22-02-2023), hitman797 (24-02-2023)
  #217  
Old 22-02-2023, 13:23
audiofeel's Avatar
audiofeel audiofeel is online now
Registered User
 
Join Date: Jan 2013
Location: Russia
Posts: 366
Thanks: 439
Thanked 837 Times in 306 Posts
audiofeel is on a distinguished road
Thanks for the test. Well, I think this is the best result, question marks instead of symbols are something else, these are "ANSI or UTF" encoding problems. The frames on the edges are certainly not provided by me. It remains to understand on which form the frames will not be displayed. The maestro left us a big choice to choose from.
How do you like this, Elon Musk?
Code:
function FCreateNormal(WParent: HWND): HWND;
function FCreateFluent(WParent: HWND; DarkTheme, NoBorder: Boolean; Opacity: Single; BrightnessPct: Byte): HWND;
function FCreateFluentColor(WParent: HWND; VCLColor: Integer; NoBorder: Boolean; Opacity: Single; BrightnessPct: Byte): HWND;
function FCreateFluentNull(WParent: HWND; NoBorder: Boolean): HWND;
function FCreateImageForm(WParent: HWND; const Picture: WideString; Opacity: Single): HWND;
function FCreateBlankForm(WParent: HWND; FormColor: Integer; const AddImage: WideString): HWND;

Last edited by audiofeel; 27-12-2023 at 11:08.
Reply With Quote
The Following 2 Users Say Thank You to audiofeel For This Useful Post:
hitman797 (24-02-2023), nordi (26-02-2023)
  #218  
Old 26-02-2023, 23:22
nordi's Avatar
nordi nordi is offline
Registered User
 
Join Date: Nov 2012
Location: Germany
Posts: 23
Thanks: 21
Thanked 30 Times in 11 Posts
nordi is on a distinguished road
Hi @audiofeel,

i have played a bit with your Installer (Atomic Hearts) and created my own style. All goes well when the Installer is directly on any harddrive...
When I create an ISO with the Installer, mount it and start the Setup.exe, then it only hanging in the background/taskbar and I only can kill it over taskmanager.
(> same with your provided original on my PC)

My Info:
- Win11-2022 using
- my Script has only other Images and more Redist Icons.
- ISO made with ImageBurn / Mounted with Win11 directly

Do you get the same behavier ?! perhaps already any solution ;-)


(Edit: Same for me with the provided CorePack)

Last edited by nordi; 27-02-2023 at 00:36.
Reply With Quote
The Following User Says Thank You to nordi For This Useful Post:
audiofeel (27-02-2023)
  #219  
Old 27-02-2023, 00:32
audiofeel's Avatar
audiofeel audiofeel is online now
Registered User
 
Join Date: Jan 2013
Location: Russia
Posts: 366
Thanks: 439
Thanked 837 Times in 306 Posts
audiofeel is on a distinguished road
Quote:
Originally Posted by nordi View Post
Hi @audiofeel,

i have played a bit with your Installer (Atomic Hearts) and created my own style. All goes well when the Installer is directly on any harddrive...
When I create an ISO with the Installer, mount it and start the Setup.exe, then it only hanging in the background/taskbar and I only can kill it over taskmanager.
(> same with your provided original on my PC)

My Info:
- Win11-2022 using
- my Script has only other Images and more Redist Icons.
- ISO made with ImageBurn / Mounted with Win11 directly

Do you get the same behavier ?! perhaps already any solution ;-)
All projects written using "FMXInno" do not run on flash drives, card readers, sd cards, nor do they run on external hard drives and SSDs. also if they are inside the .iso file
Reply With Quote
The Following 2 Users Say Thank You to audiofeel For This Useful Post:
BLACKFIRE69 (03-03-2023), nordi (27-02-2023)
  #220  
Old 03-03-2023, 05:35
audiofeel's Avatar
audiofeel audiofeel is online now
Registered User
 
Join Date: Jan 2013
Location: Russia
Posts: 366
Thanks: 439
Thanked 837 Times in 306 Posts
audiofeel is on a distinguished road
Style File Compression

If someone is not satisfied with the large size of the source file created on the basis of "FMXInno" using the style file "...style". You can easily convert it from the "text" format to the "binary" format. Thereby reduce its size. The savings are small... about 1.5 mb. Links and screenshots below
fmx-style-converter/

Last edited by audiofeel; 27-12-2023 at 11:08.
Reply With Quote
The Following User Says Thank You to audiofeel For This Useful Post:
alexachu (03-03-2023)
  #221  
Old 04-03-2023, 05:43
audiofeel's Avatar
audiofeel audiofeel is online now
Registered User
 
Join Date: Jan 2013
Location: Russia
Posts: 366
Thanks: 439
Thanked 837 Times in 306 Posts
audiofeel is on a distinguished road
Ok, hello everyone, who will help? how do I transfer the value from the "FTrackBar" to the "Volume" of the music?

that is, to put it simply, to make a volume control
I tried to do this
Code:
procedure TrackbarOnChange(Sender: TObject);
begin
  MusicObj.SetVolume(VolTrackbar.GetValue);
end;
Inno says... not right
thank you in advance.

Last edited by audiofeel; 04-03-2023 at 06:26.
Reply With Quote
  #222  
Old 04-03-2023, 18:13
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 670
Thanks: 471
Thanked 2,394 Times in 544 Posts
BLACKFIRE69 is on a distinguished road
Quote:
Originally Posted by audiofeel View Post
Ok, hello everyone, who will help? how do I transfer the value from the "FTrackBar" to the "Volume" of the music?

that is, to put it simply, to make a volume control
I tried to do this
Code:
procedure TrackbarOnChange(Sender: TObject);
begin
  MusicObj.SetVolume(VolTrackbar.GetValue);
end;
Inno says... not right
thank you in advance.



Code:
procedure Trackbar1OnChange(Sender: TObject);
begin
  MusicObj.SetVolume(Round(Trackbar_Regular.GetValue));
end;


but why?

Code:
IXBass :
procedure SetVolume(Const Vol: Integer);


FTrackBar :
function GetValue: Single;
Reply With Quote
The Following User Says Thank You to BLACKFIRE69 For This Useful Post:
audiofeel (04-03-2023)
  #223  
Old 04-03-2023, 18:41
auaksa auaksa is offline
Registered User
 
Join Date: Nov 2022
Location: ksa
Posts: 3
Thanks: 7
Thanked 1 Time in 1 Post
auaksa is on a distinguished road
@BLACKFIRE69

thx for ur replay my msg
Reply With Quote
  #224  
Old 04-03-2023, 21:34
audiofeel's Avatar
audiofeel audiofeel is online now
Registered User
 
Join Date: Jan 2013
Location: Russia
Posts: 366
Thanks: 439
Thanked 837 Times in 306 Posts
audiofeel is on a distinguished road
Quote:
Originally Posted by BLACKFIRE69 View Post
Code:
procedure Trackbar1OnChange(Sender: TObject);
begin
  MusicObj.SetVolume(Round(Trackbar_Regular.GetValue));
end;
but why?
Code:
IXBass :
procedure SetVolume(Const Vol: Integer);
FTrackBar :
function GetValue: Single;
Everything is OK, it's working. That is, just make an envelope from Single to Integer? But why is it so confusing? Then if I may have one more question? Not very smooth volume control, in fact, it disappears already on half of the trackbar.
My settings are as follows
Code:
  { Volume Trackbar }
  VolTrackbar.FCreate(BaseLayer.Handle);
  VolTrackbar.Left(TitleBarBtn[2].GetLeft - NSX(46));
  VolTrackbar.Top(NSY(5));
  VolTrackbar.Width(NSX(46));
  VolTrackbar.Min(0);
  VolTrackbar.Max(100);
  VolTrackbar.Value(100);
  VolTrackbar.OnChange(@TrackbarOnChange);
What is there to consider as the maximum value? 1000 -100-10.
I apologize and I know that all this should have been clarified earlier when you were working hard on the project, but you have very few explanations for your library.

Last edited by audiofeel; 27-12-2023 at 11:08.
Reply With Quote
The Following User Says Thank You to audiofeel For This Useful Post:
Gehrman (05-03-2023)
  #225  
Old 05-03-2023, 07:02
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 670
Thanks: 471
Thanked 2,394 Times in 544 Posts
BLACKFIRE69 is on a distinguished road
Quote:
Originally Posted by audiofeel View Post
Everything is OK, it's working. I may have one more question? Not very smooth volume control, in fact, it disappears already on half of the trackbar.

yes, volume control is neither gradual nor smooth. i agree.
the volume range is (-10,000 to 0).

DSBVOLUME_MAX := 0;
DSBVOLUME_MIN := -10,000

For More Info

i don't know how to do smooth control tho.
what i'm doing is simply just set the value as below.

Code:
Vol := (InputVolPct - 100) * 100;
DirectSoundBuffer.SetVolume(Vol)

if anyone knows a better way let me know.
Reply With Quote
The Following User Says Thank You to BLACKFIRE69 For This Useful Post:
audiofeel (05-03-2023)
Reply

Thread Tools
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 18:35
Windows Phone Installer similar to razor12911's original design? Kitsune1982 Conversion Tutorials 0 02-07-2020 14:04
INDEX - Conversion Tutorial Index Razor12911 Conversion Tutorials 5 11-06-2020 03:05
Frequently Asked Questions Joe Forster/STA PC Games - Frequently Asked Questions 0 29-11-2005 10:48



All times are GMT -7. The time now is 16:31.


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