Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

On KeyDown Event

Status
Not open for further replies.

chiuso2

MIS
Feb 22, 2002
58
Hi, just a question:
Is it possible generate an event using a combination of keys(example KeyCtrl+KeyA)?
I know how to do it with a single Key, but not with a combination!
Thanks in advance

Mario
 
KeyDown event has a Shift argument that indicates which special key was also pressed:

Shift = 1: Shift key pressed
Shift = 2: Ctrl key pressed
Shift = 4: Alt key pressed
Shift = 0: no special key was pressed

So...check the value of Shift within the procedure and you're set.

But you may want to check out the AutoKeys macro, which is one of thee 2 macros worth keeping (the other one is AutoExec)

Good luck




[pipe]
Daniel Vlas
Systems Consultant

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top