9.0

235
Case "DINNER"
Debug
.Print "Please come in."
Debug
.Print "Dinner will be ready soon."
Case "SLEEP"
Debug
.Print "Sorry."
Debug
.Print "We are full for the night"
Case Else
Debug
.Print "What?"
End
Select
End
Sub
SendKeys Instruction
Syntax
SendKeys Keys$[, Wait]
Group
Miscellaneous
Description
Send Keys$ to Windows.
Parameter Description
Keys$ Send the keys in this string value to Windows. (Refer to table below.)
Wait If this is not zero then the ke
y
s are sent before executin
g
the next instruction. If this
is omitted or zero then the keys are sent during the following instructions.
Key Description
+ Shift modifier key: the following key is a shifted key
^ Ctrl modifier key: the following key is a control key
% Alt modifier key: the following key is an alt key
(keys) Modifiers apply to all keys
~ Send Enter key
k Send k Key (k is any single char)
K Send Shift k Key (K is any capital letter)
{special n} special key (n is an optional repeat count)
{mouse x,y} mouse key (x,y is an optional screen position)
{k} Send k Key (any single char)
{K} Send Shift k Key (any single char)
{Cancel} Send Break Key
{Esc} Send Escape Key
{Escape} Send Escape Key
{Enter} Send Enter Key
{Menu} Send Menu Key (Alt)
{Help} Send Help Key (?)
{Prtsc} Send Print Screen Key
{Print} Send
{Execute} Send ?
{Tab} Send
{Pause} Send Pause Key
{Tab} Send Tab Key
{BS} Send Back Space Key
{BkSp} Send Back Space Key