Re: Javascript and Microsoft Windows
"Dag Sunde" <me@dagsunde.co mwrote in message
news:44e37f62$1 @news.wineasy.s e...
I came here for the purpose of the question turned around. Can any possible
program take complete control of every possible JavaScript application? That was
my reason for being here.
"Dag Sunde" <me@dagsunde.co mwrote in message
news:44e37f62$1 @news.wineasy.s e...
Martin Honnen wrote:
>
You can get the information the application choose to expose thru its
automation interface, nothing more.
>
The point of my previous post was to illustrate that while JS can,
in some cases give you limited information about some applications
it can *not* be used to take total control over all types of apps
possibly running on a pc.
>
(And that's what the OP claims his system can do).
>
The question here is: "Can Javascript be used to analyze the current
state of every visual control the user can interact with, in every
application, regardless og automation interface, and interact with it?
>
The answer is no!
>
--
Dag.
>
>
>Dag Sunde wrote:
>>
>>
>>
>Many Windows applications like Internet Explorer or Word or Excel can
>be automated by script run with WSH. The Windows Shell itself can be
>automated e.g. the following script grabs all open Internet Explorer
>browser windows and outputs details about the document title and the
>number of forms (document.forms .length):
>>
>var shell = new ActiveXObject(' Shell.Applicati on');
>var windows = shell.Windows() ;
>for (var i = 0, l = windows.Count; i < l; i++) {
> try {
> var document = windows(i).docu ment;
> WScript.Echo("d ocument.title: \"" + document.title +
>"\"; forms.length: " + document.forms. length);
> }
> catch (e) {}
>}
>>
>Thus J(ava)Script (or VBScript) used with WSH can get details about
>the visual state of Windows application that expose automation
>interfaces.
>>
>>
>>JavaScript is not a stand-alone programming language. It always
>>runs in a "Host".
>>>
>>When it runs in the Windows Scripting Host, it can access
>>and manipulate the objects and properties exposed to it by the WSH.
>>There is no objects exposed by the WSH that enables javascript
>>to analyze the visual state other applications external to the WSH.
>>runs in a "Host".
>>>
>>When it runs in the Windows Scripting Host, it can access
>>and manipulate the objects and properties exposed to it by the WSH.
>>There is no objects exposed by the WSH that enables javascript
>>to analyze the visual state other applications external to the WSH.
>Many Windows applications like Internet Explorer or Word or Excel can
>be automated by script run with WSH. The Windows Shell itself can be
>automated e.g. the following script grabs all open Internet Explorer
>browser windows and outputs details about the document title and the
>number of forms (document.forms .length):
>>
>var shell = new ActiveXObject(' Shell.Applicati on');
>var windows = shell.Windows() ;
>for (var i = 0, l = windows.Count; i < l; i++) {
> try {
> var document = windows(i).docu ment;
> WScript.Echo("d ocument.title: \"" + document.title +
>"\"; forms.length: " + document.forms. length);
> }
> catch (e) {}
>}
>>
>Thus J(ava)Script (or VBScript) used with WSH can get details about
>the visual state of Windows application that expose automation
>interfaces.
You can get the information the application choose to expose thru its
automation interface, nothing more.
>
The point of my previous post was to illustrate that while JS can,
in some cases give you limited information about some applications
it can *not* be used to take total control over all types of apps
possibly running on a pc.
>
(And that's what the OP claims his system can do).
>
The question here is: "Can Javascript be used to analyze the current
state of every visual control the user can interact with, in every
application, regardless og automation interface, and interact with it?
>
The answer is no!
>
--
Dag.
>
>
program take complete control of every possible JavaScript application? That was
my reason for being here.
Comment