Private Sub CommandKilIAM_Click()
On Error GoTo Humph
AppActivate "Internet Answering Machine", True
SendKeys "%" + "{F4}"
Humph:
End Sub
Why does this kill not only it's target, but also the program that executes this command?
Printable View
Private Sub CommandKilIAM_Click()
On Error GoTo Humph
AppActivate "Internet Answering Machine", True
SendKeys "%" + "{F4}"
Humph:
End Sub
Why does this kill not only it's target, but also the program that executes this command?
I don't know, but by using "+" VB may think you are adding the two strings in your SendKeys. It would be better to do it this way
SendKeys "%{F4}"
------------------
Marty
What did the fish say when it hit the concrete wall?
> > > > > "Dam!"
[This message has been edited by MartinLiss (edited 02-15-2000).]
Try:
Sendkeys "{%}+{F4}"
If you use:
"%+{F4}" it'll close your app because % with no brakets means ALT key.
FYI: to display % as a charecter use:
msgbox chr(37)
Good Luck.