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.
October 4, 2006 2:21 PM
October 6, 2006 9:18 AM