How to give focus to Notes Client from vbScript

I am developing an intranet application, which has to occasionally work with Notes clients, which are installed on all the client machines. I am using vbScript to create a NotesUIWorkspace and open a document on the client. So far so good, only thing is, if the Notes client is already running, it will open the document, but the window doesn't become active (ie it stays behind the browser window). Obviously this is no good, I need Notes to pop up from the background. I've been going over the notes interface for hours, but I can't find anything that'll do the trick. Any ideas?

Answer Wiki

there is no Notes functionality to do the trick. You have to use a Windows API function to get a handle to the Notes window and bring it to the front. Here is the function to get a handle to the window:

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your response...

Discuss This Question: &nbsp

There was an error processing your information. Please try again later.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your reply...

There was an error processing your information. Please try again later.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your reply...

Ask a Question

Free Guide: Managing storage for virtual environments

Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!

To follow this tag...

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy