Coder Social home page Coder Social logo

hi5 / xa Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 0.0 6 KB

XA - Save/Load AutoHotkey Arrays in XML format

Home Page: https://autohotkey.com/boards/viewtopic.php?f=6&t=34849

AutoHotkey 100.00%
arrays autohotkey autohotkey-arrays data objects xml

xa's People

Contributors

hi5 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

xa's Issues

CL3 lapp not saving or loading XML correctly with this script

All my files created from this lib look like this....

<?xml version="1.0" encoding="UTF-8"?>
<Slots>
	<Invalid_Name id="" ahk="True"></Invalid_Name>
	<Invalid_Name id="" ahk="True"></Invalid_Name>
	<Invalid_Name id="" ahk="True"></Invalid_Name>
	<Invalid_Name id="" ahk="True"></Invalid_Name>
	<Invalid_Name id="" ahk="True"></Invalid_Name>
	<Invalid_Name id="" ahk="True"></Invalid_Name>
	<Invalid_Name id="" ahk="True"></Invalid_Name>
	<Invalid_Name id="" ahk="True"></Invalid_Name>
	<Invalid_Name id="" ahk="True"></Invalid_Name>
	<Invalid_Name id="" ahk="True"></Invalid_Name>
</Slots>

my ahk version: 1.1.24.05

Any ideas how to resolve?

Line 46 %XMLRoot% := XA_XMLToArray(XMLObj.childNodes)

Is the variable enclosed in% on line 46 correct? The only way the code works for me is by removing those characters from%.
Maybe it's my fault.

My code:

`#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

#Include xa.ahk

xml := Object()
xml := XA_Load("dev.xml")
if (xml == 1){
MsgBox % "Error loading XML file."
}`

the xml variable gave me a value 'document' that I don't understand and can't manipulate.

Sorry if I waste your time.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.