Read keypress using JScript?

Windows Scripting Host doesn't provide any UI, well, not a GUI at least If you use CScript. Exe then you can use StdIn, StdOut, etc. See Wscript.StdIn. Read method These are most of the objects available for Windows Scripting Host: main WSH objects the dictionary and FileSystem objects come in handy: Dictionary and FileSystem objects But if you want a GUI, then you can run an HTA file in MSHTA.

Exe and use HTML/CSS/JavaScript to handle your UI needs and still use the WSH objects Overkill? Well, list what you want from your UI. Now, you'd have to provide a mechanism for accessing all those features.

And your example code shows you'd want to do it in a HTML-DOM-via-JavaScript-like manner. So, you'd need an HTML parser and DOM support. Looks like you want access to most of what a browser provides at that point.

Windows Scripting Host doesn't provide any UI, well, not a GUI at least. If you use CScript. Exe then you can use StdIn, StdOut, etc.See Wscript.StdIn.

Read method. These are most of the objects available for Windows Scripting Host: main WSH objects, the dictionary and FileSystem objects come in handy: Dictionary and FileSystem objects But if you want a GUI, then you can run an HTA file in MSHTA. Exe and use HTML/CSS/JavaScript to handle your UI needs and still use the WSH objects.

Overkill? Well, list what you want from your UI. Now, you'd have to provide a mechanism for accessing all those features.

And your example code shows you'd want to do it in a HTML-DOM-via-JavaScript-like manner. So, you'd need an HTML parser and DOM support. Looks like you want access to most of what a browser provides at that point.

Thanks, HTA was the missing link. It provides an environment where JScripting and ActiveX control of Applications meets GUI. – Thomas Nilsson Mar 28 at 20:18.

Try var tap = function (e) { ...code... } document. Onkeypress = tap.

Your code does about the same, only replacing a function declaration with a function expression... – Marcel Korpel Mar 28 at 18:32.

I don't think the Windows Script Host provides an API for keyboard hooks. The most reliable way to do this may be to create a COM component that implements a keyboard hook (in C#/C++, for example) and use an instance of that object in JScript as needed.

Windows Scripting Host doesn't provide any UI, well, not a GUI at least.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions


Thank You!
send