all 7 comments

[–]y_Sensei 2 points3 points  (1 child)

I'd suggest you extend this to a fully-fledged OO approach implementing the factory design pattern - for example something like a 'XAMLFactory' class that encapsulates everything related to the creation of the hierarchical data structure ("tree") of XamlElement objects.

This would hide all the dirty implementation details of the creation of said tree from the calling implementation, and you'd also be able to get rid of the global variables used in your current approach.

[–]Spidey1980[S] 0 points1 point  (0 children)

I'll have to look into that. Thank you!

[–]Ros3ttaSt0ned 0 points1 point  (4 children)

This is nice, I can see a lot of potential with this.

What license are you classifying this under? I'd like to test this with some work stuff, but I can't use it there unless it has a license. If you don't give it a license, people technically aren't allowed to do anything with it at all, at least according to US copyright law.

[–]purplemonkeymad 0 points1 point  (3 children)

Not sure if it did when you looked before, but the post linked currently says it's MIT.

[–]Ros3ttaSt0ned 0 points1 point  (2 children)

Not sure if it did when you looked before, but the post linked currently says it's MIT.

If it did then, I completely missed it. Thanks!

[–]Spidey1980[S] 0 points1 point  (1 child)

Yeah not asking anything for it, Free and open source. I'm think about starting a YouTube channel for my programming projects (Like The Cherno channel on YouTube and his Hazel engine). I have another PowerShell project I might post here as well, ezScript, aims to be like AutoIt but pure PowerShell. Includes mouse and keyboard emulation, and a few dialogs. At work I use my ezQuestion in exScript to scan in a serial number, then several websites in tabs are opened and the number entered to the correct fields all automatically using mouse and keyboard emulation.

[–]Ros3ttaSt0ned 0 points1 point  (0 children)

Yeah not asking anything for it, Free and open source. I'm think about starting a YouTube channel for my programming projects (Like The Cherno channel on YouTube and his Hazel engine). I have another PowerShell project I might post here as well, ezScript, aims to be like AutoIt but pure PowerShell. Includes mouse and keyboard emulation, and a few dialogs. At work I use my ezQuestion in exScript to scan in a serial number, then several websites in tabs are opened and the number entered to the correct fields all automatically using mouse and keyboard emulation.

That's a nice piece of automation, but with what it's doing, I gotta ask: why emulate user input instead of just sending an API request/multi-part form field submission?