XML

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
semiono
Posts: 11
Joined: 03 Jun 2016, 09:32

XML

15 May 2024, 19:43

I thanks for this great code! But I would like to recreate it to AHK v2
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
OK! I have yet more problem. XML file:

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>
How to write a realy width (x) and height (y) to here?

Anyway AHK v2 or AHK v1

Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: DavidP, prius1234, vanove and 85 guests