![]() |
|
|
|||||||
![]() |
|
|
Thread Tools | Rate Thread |
|
|
PM User | #2 |
|
Master Coder ![]() Join Date: Jun 2002
Location: London, England
Posts: 9,522
Thanks: 113
Thanked 1,190 Times in 1,171 Posts
![]() ![]() |
I expect it can be done in VBscript, but a simple JavaScript is
<SCRIPT type = "text/javascript"> document.onkeydown = function(ev) { var key; ev = ev || event; key = ev.keyCode; alert (key); } </SCRIPT> |
|
|
|
|
|
PM User | #3 |
|
The Spaminator ![]() ![]() Join Date: Jun 2002
Location: USA
Posts: 8,028
Thanks: 1
Thanked 204 Times in 200 Posts
![]() ![]() ![]() |
Considering we are in the computer programming forum (assuming it wasn't moved here) I'd assume the OP was refering to VBScripts executing outside of a web browser.
__________________
OracleGuy My Blog "... the VP of our third biggest account started sweating bullets in our latest project status conference when Roy stood up and asserted: 'We don’t code our products for SMACKTARDS.'" - Daily Victim #564 |
|
|
|
|
|
PM User | #4 |
|
Moderator ![]() ![]() Join Date: May 2002
Posts: 1,030
Thanks: 0
Thanked 10 Times in 10 Posts
![]() |
You could do it, you would just have to use the WSH in order to load the VBScript. But then you would want it to run in the background which would require a timer that would recycle and detect a keystroke, then take the appropriate action(s).
-saige-
__________________
HTML & CSS Forum Moderator "If you don't know what you think you know, then what do you know." R.I.P. Derrick Thomas #58 1/1/1967 - 2/8/2000 |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Rate This Thread | |
|
|