Run keyboard keys

Discussion in 'Javascript' started by rbscheer@my-deja.com, Aug 5, 2005.

  1. Guest

    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
    , Aug 5, 2005
    #1
    1. Advertising

  2. Randy Webb Guest

    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
    Randy Webb, Aug 6, 2005
    #2
    1. Advertising

  3. ASM Guest

    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.moriaux/truc/key_code.htm

    --
    Stephane Moriaux et son [moins] vieux Mac
    ASM, Aug 6, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jordan R.

    Disabling keyboard keys - why?

    Jordan R., Nov 15, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    755
    =?Utf-8?B?U3JlZWppdGggUmFt?=
    Nov 15, 2005
  2. Canonical Latin

    Read keys without keyboard focus

    Canonical Latin, Jun 19, 2005, in forum: Java
    Replies:
    9
    Views:
    996
    Canonical Latin
    Jun 26, 2005
  3. wylbur37
    Replies:
    3
    Views:
    513
  4. mhangman

    how can we send keys to keyboard

    mhangman, Oct 7, 2008, in forum: Python
    Replies:
    6
    Views:
    474
    mhangman
    Oct 7, 2008
  5. Replies:
    4
    Views:
    292
    Roedy Green
    Sep 8, 2012
Loading...

Share This Page