[jawsscripts] Re: Scripting a "f" key

  • From: "David Farough" <David.Farough@xxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Mon, 01 Dec 2008 13:37:11 -0500

the syntax for typeKey is:
TypeKey ("key name")
for you to simulate the f1 key, you would use:
TypeKey ("f1")

Also, if you open the common.jsm file, you will see where these keys
have been defined as constants.

In this case, you could use the appropriate constant for the key in
question.  However, if you are specifying a constant when using the
TypeKey function,  then you must not use the quotes when specifying the
constant.

in common.jsm the f1 key is defined as a constant.
from common.jsm see the following constant definition.
cksF1 = "F1",

to use this constant to simulate the pressing of the f1 key the typekey
function would be done this way.
TypeKey (cksF1)

One final thing.  Be sure to include the common.jsm file in the top
section of your script file if you plan to use any of these constants.
>>> "Mark" <torgersonenator@xxxxxxxxx> 11:55 am Monday, December 01,
2008 >>>
Hi
     How does a person insert the F1 key in the typekey command?
     Thank you.


David Farough
Application Accessibility Coordinator/coordonateur de l'accessibilité 
Information Technology Services Directorate /
Direction des services d'information technologiques
Public Service Commission / Commission de la fonction publique
Email / Courriel:  David.Farough@xxxxxxxxxxxxx
Tel. / Tél:    (613) 992-2779 
__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: