>>>>
>>>>I don't know if I can, but I'll give it a shot. Just one question: Is the "Application.Handle" member referenced above the window handle of the application? I assume that it is.
>>>
>>>Yes, in VFP I did a FindWindow(0,Application.Caption) first.
>>
>>Well, I was able to get the screen saver on with SendMessage, but couldn't turn it off using your technique. However, there's two pieces of good news (for Ray) here, but one bad. Rather than sending a message, the following two lines of code after the Sleep() call, worked like a charm.
>>MOUSE DRAG TO MROW() - 1, MCOL() - 1
>>MOUSE DRAG TO MROW() + 1, MCOL() + 1
>>BTW, I got the appliation's main window handle using the Foxtools MainhWnd() function.
>>Good news 2 - The WNDCLASS structure I mentioned earlier can be examined to see if a running application is a screen saver. The lpszClassName member of the structure will contain "WindowsScreenSaverClass", however, I don't see an index that will allow GetClassLong() to return that member.
>
>
>Great!
>
>Looks like Ray owes you a beer George. <g>
Provided it works. But if he owes me a Bud, I owe you an MGD (rbg). You pointed me to SystemParametersInfo() and the activate screen saver message.
George
Ubi caritas et amor, deus ibi est