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!

SendKeys question

Status
Not open for further replies.

ucsjimj

Programmer
Oct 12, 2002
23
US
Hello everyone, I have been trying to control outlook thru a vb 6 module. My problem is this system is not using the outlook library which would allow me go use objects. I can gen up the page I want to send with to: subject: and body all populated and ready. When I send the SendKey "^(~)", True some times it works and other times it fails. The API call works to get the screen up everytime. I have read that the VB sendkeys command is not allways dependable, and that looks like the truth. Any ideas?
 
SendKeys is basically an unpleasant hack that does indeed have a habit of being unreliable. You ask whether we have any ideas ... and I respond by asking what is preventing you from using the Outlook object library?
 
Thanks guys, this program is very large, and way back in the olden days prior to 2000 when 97 was in, long before I came along someone else added the API. This was before the outlook library came of age. I am ready to dispose of the API code and put in the MS Object Library. Thanks again for you comments, they helped me to push for a change. I pray the change will not cause this program to fry.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top