Home Product Purchase Support Testimonials Contact

CADSTA Tools - (acet-sys-keystate)

acet-sys-keystate

Checks the state of a given virtual key.

(acet-sys-keystate keycode)

Argument

keycode

The code value for the virtual key.

The following table shows the values of some special virtual key values:

16

Shift Key.

17

Control Key

18

Meu Key

19

Pause Key

20

Capital Key

Return Value

An integer value represent the status of the specified virtual key:

If the high order bit is 1, the tested key is down; otherwise it is up.

if the low order bit is 1, the key is toggled. A key, such as CAPS LOCK key, is toggled if it is turned on. The key is untoggled if the low order bit is 0.

Examples

$(acet-sys-keystate 16)

0

Click here for more samples.

Related References

acet-sys-beep

acet-sys-procid

acet-sys-shift-down

acet-sys-sleep

acet-sys-term

Try or Buy

Product Information

CADSTA Tools

CADSTA Tools Features

Using AutoLISP with CADSTA Tools

Supported AutoLISP file format

Enter AutoLISP codes at command Line

Using AutoLISP with Menu

Using MNL file with CADSTA Tools

Appload Command

CADSTATools.lsp / acad.lsp

CADSTAToolsDoc.lsp / acaddoc.lsp

S::STARTUP Function

Startup Suite

LISP Functions: Operators

LISP Functions: A - C

LISP Functions: D - H
LISP Functions: I - P
LISP Functiosns: Q - U

LISP Functions: V

LISP Functions: W - Z

CADSTA Elements Features

Forum

Click here to go to our forum where you can exchange information, ask questions and share tips with others.

Search

Enter search words

Sign Up For Newsletter

Click here to sign up for our newsletter.

Follow Us