Packerland
asked on
Sendkeys to Outlook - Word Editor
Using VB Pro 6.0
I am trying to wite a VB app that will paste an address into the [To:] field of a new mail message.
Outlook is using Word editor.
When I use [Sendkeys "mailaddr@company.com", True"] command to notepad it works everytime.
When I use [Sendkeys "mailaddr@company.com", True"] command to Outlook it only works occasionally.
Any ideas? Any alternatives to using sendkeys?
Thanks.
I am trying to wite a VB app that will paste an address into the [To:] field of a new mail message.
Outlook is using Word editor.
When I use [Sendkeys "mailaddr@company.com", True"] command to notepad it works everytime.
When I use [Sendkeys "mailaddr@company.com", True"] command to Outlook it only works occasionally.
Any ideas? Any alternatives to using sendkeys?
Thanks.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
It appears that bobbit31 answered the initial question and I believe I filled in a gap. I recommend a split.
ASKER
Problem is that I don't know what the window name might be. If it is a new message then the name is static but if it is forwarded or replied to then the Window name is the subject of the message.
Is there anyway to get a list of all of the Open windows?