Re: SPY++ in vbscript or wsh? by mayayana
mayayana
Fri Dec 05 09:23:32 CST 2003
You can't "port" things like that to script. You'd have to
make a COM DLL to do it for you. Or a much easier way
would be to build script-accessible communication into the
program you're trying to access.
Using a restaurant analogy, the Windows API is like the
kitchen - it contains all the tools to cook whatever you need.
Script is like the waiter's window: It only provides the ability
to ask someone in the kitchen to cook what you need; and
what you can ask for is limited to the menu that the cook has
provided.
What you're looking for is the equipment to cook your own
roast beef dinner at the waiter's station. It's just not feasible.
--
--
<mark@no.spam> wrote in message
news:uc21tv0ktn4l9if6ilpo196mptnmfe0qc5@4ax.com...
> Just curious, has anyone ported the SPY++ utility to vbscript or wsh?
>
> I have an HTA with 2 frames: one is a Web page and the other is a script
running
> from the local drive.
>
> In the script frame, I'd like to determine if a particular application is
> running, look for certain fields, extract the data, and plunk it into
fields in
> the Web page frame.
>
> I'd imagine that the code to look for a running application and extract
fields
> from it would be much like what SPY++ does.
>
> Has anyone ported SPY++ to a scripting language? Or does anyone know where
I
> might find an example of script code to do this?
>
> Thanks in advance....