-----Original Message----- From: Ron Parker [mailto:r...@gwmicro.com] Sent: Tuesday, September 08, 2009 1:55 PM To: gw-scripting@gwmicro.com Subject: Re: Python code
Chip Orange wrote: > what I do know is that it has it's own interpreters for vb script and > jscript, and so that's how the implied objects are made available to them. > That's not actually entirely accurate. When you start a script, Window-Eyes checks the registry for that script's filetype, and if the filetype has an ActiveScript compatible runtime associated with it, we load the runtime in our process and execute the script with it. JScript and VBScript are both ActiveScript compatible, and are installed in Windows by default; we use those installed versions, not something that's built-in to Window-Eyes. ActivePython (and ActivePerl) are also ActiveScript compatible, so they just work. Making implied objects available is part of the ActiveScript specification. Incidentally, that's how Windows Script Host and Internet Explorer work, too: if you have ActivePython installed on your machine, you can run Python scripts in those environments as well. > I did not think it had a python interpreter, and just because one is > somewhere on your pc, well, I don't see how window eyes can be made to > control it as it does the built-in interpreters that it has. > And yet, that's pretty much exactly how it works. Ain't technology grand? Thanks Ron and Aaron. It's the concept of "active script" which I was completely lacking, and so, had thought the interpreters were built-in in a way similar to that of VBA in Office applications. Yes, really, not sarcastically, technology is grand sometimes! :) I'm always surprised and amazed and please when you can connect 2 disparate products, using something like com or "active scripting", and come up with something that's better than both, and made from little more than the connection of the items involved. It's impressive in a way that's hard to explain, but you're almost getting something new for free, just by connecting 2 or more components together. thanks again (and Steve also). Chip