Visual C 32Bit DLL controling other applications windows

30 pts.
Tags:
Development
Software
I have a VB6 program that starts a 3rd party application. Once the application is running, I call my Visual C 32 bit DLL that finds the window of the application and calls sendmessage to the window with the F5 key. It works fine until a screen saver comes on. From what I have read, screen savers run on a different desktop and I do NOT have access to the windows on the other desktop my applications are running in. I have changed the DLL the call GetDeskTopWindow with the desktop handle of the desktop with the applications running, get the window handle and try to send the message, but it still Does NOT work. Any ideas on how to accomplish this when a screen saver is running. The VB application runs 24 hours a day waiting for a file to show up in a specified directory. Once the file appears, it starts the 3rd party app, calls the Dll to send F5(Run) to the 3rd party app so that it will process the file. This usually happens around 1 AM and the office is empty and the screen saver comes on to protect the PC from unauthorized access. Thanks Rod Straub

Answer Wiki

Thanks. We'll let you know when a new response is added.

I wonder if the security screen saver is a sophisticated program designed to stop exactly what you need to do. The ‘send keys stuff’ might be going to the password box of the screen saver and thus bombing out. In some sense a good security system should create lots of problems for programers, support, and users.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
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

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

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

REGISTER or login:

Forgot Password?
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

Thanks! We'll email you when relevant content is added and updated.

Following