|
-
Feb 15th, 2000, 05:35 AM
#1
Thread Starter
Member
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?
-
Feb 15th, 2000, 05:45 AM
#2
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).]
-
Feb 15th, 2000, 11:37 AM
#3
Addicted Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|