Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling a screen saver
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00093980
Message ID:
00094665
Views:
37
>>>
>>>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.


BTW, what are you using to get and examine the WNDCLASS struct?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform