Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Run keyboard keys

Reply
Thread Tools

Run keyboard keys

 
 
rbscheer@my-deja.com
Guest
Posts: n/a
 
      08-05-2005
Hi.

Is it possible to use Javascript to simulate a keyboard key? For
example, when the user clicks an image a piece of code runs the F1 key,
or a combination of keys like SHIFT+F2.

Thanks,
Robert Scheer

 
Reply With Quote
 
 
 
 
Randy Webb
Guest
Posts: n/a
 
      08-05-2005
http://www.velocityreviews.com/forums/(E-Mail Removed) said the following on 8/5/2005 10:00 AM:

> Hi.
>
> Is it possible to use Javascript to simulate a keyboard key? For
> example, when the user clicks an image a piece of code runs the F1 key,
> or a combination of keys like SHIFT+F2.


No.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
 
Reply With Quote
 
 
 
 
ASM
Guest
Posts: n/a
 
      08-06-2005
(E-Mail Removed) wrote:
> Hi.
>
> Is it possible to use Javascript to simulate a keyboard key? For
> example, when the user clicks an image a piece of code runs the F1 key,
> or a combination of keys like SHIFT+F2.


JS can only use keyCode of
- alphanumeric keys
- arrows keys
- space, return (& enter), page ud & down, keys
it can also (easyless) detect control and alt

but mouse clicks or F keys are unknown

try this :
http://perso.wanadoo.fr/stephane.mor...c/key_code.htm

--
Stephane Moriaux et son [moins] vieux Mac
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing map keys (no reordering of keys) alan C++ 3 11-28-2007 03:17 PM
How to link foreign keys & primary keys using python? Harry George Python 9 06-13-2006 06:29 AM
can std::set hold pointers to keys instead of the keys themselves? danibe@my-deja.com C++ 10 02-03-2006 03:44 AM
serial keys/validation keys sandeep Kanwal C++ 1 10-29-2004 06:36 PM
keyboard keys replacing mouse keys? larry Computer Support 8 09-14-2003 07:32 PM



Advertisments