Just a simple search and replace. Was developed for button changing...found a better way to do that...so I modified the code to do a universal search and replace within a file. This script is a byproduct of a different script. Someone may find it useful:
The original idea is that you can change anything in an INC file, without messing with the rest of the file. A skin could have one INC file, something like settings.txt, with all the settings in it, and make changes to a single item. Works like this:
Start the script run;path to sr.exe
Setvar's SROLD SRNEW SRFILETOEDIT SRTEXTORLINE
Script will then edit the file
SRTEXTORLINE:
TEXT will search for specific text and replace just that text.
search for /DEFINE fontsizemk1 "18" , replace with /DEFINE fontsizemk1 "22"
LINE will search for specific text and replace the whole line.
search for fontsizemk1, replace with /DEFINE fontsizemk1 "22"--better because you may not know the old font size or whatever value you are replacing.
This will also work on .skin files... you could replace an INC line to include a different file to change the look of a skin.
Located here: SR