Please, improve anybody that to work with AHK v2. If it available.
Code: Select all
File = %A_AppData%\Steinberg\Cubase 12_64\UserPreferences.xml
FileSetAttrib, -RASHNOT, %File%
$oXML := ComObjCreate("Msxml2.DOMDocument.3.0")
$oXML.Load(File)
$oAll := $oXML.SelectNodes("//member/int[@name='surface.system.focus']")
For $oEl In $oAll
$oEl.SetAttribute("value","-208384")
$oAll := $oXML.SelectNodes("//member/int[@name='surface.system.root']")
For $oEl In $oAll
$oEl.SetAttribute("value","-13679270")
$oXML.Save(File)
FileSetAttrib, -RASHNOT, %File%
FileSetTime 20010101000000,%File%,M
FileSetTime 20010101000000,%File%,C
FileSetTime 20010101000000,%File%,A
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<PROPERTIES>
bla-bla
<VALUE name="ui::main_window">
<ui::main_window width="1280" height="746" full_screen="0"/>
</VALUE>
bla-bla
</PROPERTIES>
Anyway AHK v2 or AHK v1