Yes that is a plain (almost) copy of my script.
I have nothing against people learning from my scripts (hence why I always put comments in most of them). But indeed, don't claim you've made them when you just copy them or large codes out of it....
Anyways, this particular script is also not something I would recommend if you just try to learn scripting. A hell of a lot is going on in that script and every line or piece of variable and method is choosen with specific reasons in mind. I probably can write whole paragraphs about each single line in that script...
So, if you wanna learn scripting I suggest you take some easier script (which doesn't use Windows APIs and other not so much used coding methods like ternary operators)...