Code: Select all
FileReadLine, gun1id, D:\TEST\nuvee_ps2_usb_guncon1.ini, 10
FileRead, gun1nuvee, % file := "D:\TEST\Gunfighter II - Revenge of Jesse James (Europe)\nuvee_ps2_usb_guncon1.ini"
FileRecycle, %file%
FileAppend, % StrReplace(gun1nuvee, prepend := "Lightgun_left = 1`r`n"
, gun1id "`n" prepend), %file%
FileRead, gun1nuvee, % file := "D:\TEST\Ninja Assault (JPN)\nuvee_ps2_usb_guncon1.ini"
FileRecycle, %file%
FileAppend, % StrReplace(gun1nuvee, prepend := "Lightgun_left = 1`r`n"
, gun1id "`n" prepend), %file%
FileRead, gun1nuvee, % file := "D:\TEST\Time Crisis 3 (USA)\nuvee_ps2_usb_guncon1.ini"
FileRecycle, %file%
FileAppend, % StrReplace(gun1nuvee, prepend := "Lightgun_left = 1`r`n"
, gun1id "`n" prepend), %file%
I want to modify the script so that it takes the value that it reads from line 10 of "nuvee_ps2_usb_guncon1.ini" at the beginning of the script and replaces the "GUID" line in all other nuvee_ps2_usb_guncon1.ini files whose path is specified. Below is what a typical full nuvee_ps2_usb_guncon1.ini files looks like. Would really appreciate any help, thanks!
Code: Select all
Sensitivity = 100.000000
Threshold = 512
Deadzone = 0
Left = 1
Right = 3
Middle = 5
Reload = 0
Calibration = 0
Cursor = 0
GUID = \\?\HID#VID_16C0&PID_0F38&MI_02&Col02#9&290b5653&0&0001#{378de44c-56ef-11d1-bc8c-00a0c91405dd}2
Lightgun_left = 1
Lightgun_top = 1
Lightgun_right = 65534
Lightgun_bottom = 65534
Model = 0
Alignment = 7
Aiming scale X = 100.000000
Aiming scale Y = 100.000000
Aiming profile = ninja_assault_e
Aux 1 = 17
Aux 2 = 17
Wheel up = 17
Wheel down = 17
Keyboard D-pad = 1
Start hotkey = 0