papayrus Topic Starter
Posts: 33
|
 |
« on: November 22, 2009, 07:54:40 PM » |
|
Anyone know how to do this?
|
|
|
|
|
gh0std0g74
Thanked: 37 Posts: 590
|
 |
« Reply #1 on: November 22, 2009, 08:52:39 PM » |
|
what are you trying to do ?
|
|
|
|
|
|
|
|
|
|
papayrus Topic Starter
Posts: 33
|
 |
« Reply #5 on: November 23, 2009, 01:51:54 PM » |
|
Anyone know how to do this?
What I am doing is making a program that installs font to change the font in a game I play. Problem is I made 20 different batch files with 20 reg files to go with it and 20 proxy files to go with it. What I am trying to achieve is packing all those files into a zip file to make the program smaller and to make it more organized while still being able to launch them from a batch file outside the zip archive. I use a batch file to offer choices of what font to choose then when you choose the number the font corresponds to it launches the proxy file that in return launches the batch file without a dos box and in return the batch file launches the reg file in silent mode. Each batch file adds this registry entry cause it's needed to make the font show in the game. Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes] "±¼¸²Ã¼"="Ariel" Thats the code and when I want to change font I use a batch file that will basically change the font name such as Ariel will get changed to Candara in the registry if I hit the number 2 key and enter. Also another problem I have is that anytime I change the font I have to reboot my computer before it shows in the game does anyone know a way that I can avoid the need to reboot before I can see my font in the game.
|
|
|
|
« Last Edit: November 23, 2009, 02:03:56 PM by papayrus »
|
IP logged
|
|
|
|
|
|
papayrus Topic Starter
Posts: 33
|
 |
« Reply #7 on: November 23, 2009, 02:07:02 PM » |
|
Ahahaha I was in the wrong place I didnt realise so many people responded. OK so theres no way to to do that. Anyway I can make this more organised and get my font to show in game without having to reboot? I can send the whole program to you if you can take a look at it and see what I'm trying to accomplish. Basically it's just a side project for fun since I'm trying to learn coding and actionscript 3 which is a different subject cause I'm having problems with that as well using swf studio ssCore to install the same registry key I cant get it to do anything but thats off the topic of the batch file version.
|
|
|
|
|
|
|
papayrus Topic Starter
Posts: 33
|
 |
« Reply #9 on: November 23, 2009, 02:32:47 PM » |
|
Um I dont waste my time making viruses. If you read the post I tell you exactly what I'm doing. Anyway I'll check back tommorrow got to go for now thanks.
|
|
|
|
« Last Edit: November 23, 2009, 03:01:49 PM by papayrus »
|
IP logged
|
|
|
|
|
|
papayrus Topic Starter
Posts: 33
|
 |
« Reply #11 on: November 23, 2009, 07:50:12 PM » |
|
Hmmmm Here.s the code of the main file.
Not complete yet
@echo off COLOR 0b
echo _______________________________________ _______________________________________ __ echo 1 = Ariel 3 = Myriad Pro echo 2 = Candara 4 = Algerian echo _______________________________________ _______________________________________ __ echo Please choose a number from the list above that corresponds to the font you want to use for example enter the number 1 if you would like to use Ariel!! echo _______________________________________ _______________________________________ __ echo If you wish to restore your original system font press the R KEY now then press enter. echo _______________________________________ _______________________________________ __
set input= set /p input=Enter Your Option if %input%==1 goto 1 if %input%==2 goto 2 if %input%==3 goto 3 if %input%==4 goto 4 if %input%==5 goto 5 if %input%==6 goto 6 if %input%==7 goto 7 if %input%==r goto 8
:1 cls echo _______________________________________ _______________________________________ __ echo Added the registry key HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]"±¼¸²Ã¼"="Ariel" start "" Ariel.bat goto :0
:2 cls echo _______________________________________ _______________________________________ __ echo Added the registry key HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]"±¼¸²Ã¼"="Cardana" start "" Candara.exe goto :0
:3 cls echo _______________________________________ _______________________________________ __ echo Added the registry key HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]"±¼¸²Ã¼"="Myriad Pro" start "" MyriadPro.bat goto :0
:4 cls echo _______________________________________ _______________________________________ __ echo Added the registry key HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]"±¼¸²Ã¼"="Algerian" start "" Algerian.bat goto :0
:8 cls echo _______________________________________ _______________________________________ __ echo Deleted the registry key HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]"±¼¸²Ã¼"="Your Font" start "" RestoreFont.bat goto :100
:0 echo _______________________________________ _______________________________________ __ echo You must restart your computer for the font to work in RF Online. echo _______________________________________ _______________________________________ __ echo Y = Yep restart so I can enjoy my new font.
echo N = Nope I'll restart later cause I'm downloading porn. echo _______________________________________ _______________________________________ __
set input= set /p input=Enter your Option if %input%==y goto y if %input%==n goto n
:y shutdown -r -t 00 -c "DELETING YOUR *censored* PLEASE BE PATIENT"
:n exit
:100 echo _______________________________________ _______________________________________ __ echo Your font has been restored. You must restart your computer for the changes to take effect. echo _______________________________________ _______________________________________ __ echo Y = Yep restart so my font is restored.
echo N = Nope I'll restart later cause I'm downloading porn. echo _______________________________________ _______________________________________ __
set input= set /p input=Enter your Option if %input%==y goto y if %input%==n goto n
:y shutdown -r -t 00
:n exit
And heres the code of the batch file for the fonts
regedit.exe /s Ariel.reg exit
And heres the reg file code
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes] "±¼¸²Ã¼"="Ariel"
Basically thats what I'm trying to accomplish and running in silent mode just makes it more professional quality. It's a simple registy change that makes the font change in the game I am playing on my own computer. The weird looking ±¼¸²Ã¼ comes from the games own font.ini file thats the name in the file.
[FONT] NAME = "±¼¸²Ã¼"
If you dont understand that then please just let it go for someone else who might understand it.
|
|
|
|
|
|
|
|
|
|
|