RE: Screensaver Question

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi LH:

I have not used this API before, so I cannot comment on personal use.
However, I did find this link with an example. You might want to compare
your code to this code.

http://www.news2news.com/vfp/?example=283&function=441


I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP9 HAS ARRIVED!! --*
Read about all the new features of VFP9 here:
http://msdn.microsoft.com/vfoxpro/

*--Purchase VFP 9.0 here:
http://www.microsoft.com/PRODUCTS/info/product.aspx?view=22&pcid=54787e64-52
69-4500-8bf2-3f06689f4ab3&type=ovr

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/gp/lifeselectindex
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003

>I'm trying to deactivate the screen saver programatically using
>SystemParametersInfo

> DECLARE INTEGER SystemParametersInfo IN user32;
> INTEGER uiAction, INTEGER uiParam,;
> INTEGER @pvParam, INTEGER fWinIni


>when I use SystemParametersInfo(SPI_GETSCREENSAVEACTIVE, 0, @lnTemp, 0) or
>SystemParametersInfo(SPI_GETSCREENSAVERRUNNING, 0, @lnTemp, 0)

>I can detect whether the screen saver is running / active etc but

>neither SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, .T., @lnTemp, 0) or
> SystemParametersInfo(SPI_SETSCREENSAVERRUNNING, .F., @lnTemp, 0)

>will turn it off, I've tried using .T. or .F. but it doesn't make any
>difference. Does anybody use these successfully? What am I doing wrong?
>
>Thanks

>LH

.



Relevant Pages

  • Simulate user interaction - Avoid screen saver activation
    ... SendInput API and keybd_event API work correctly with Win2000 and WinXP ... Screen saver don't start. ... Under WinNT 4.0 these API, inject key event correctly at active application ...
    (comp.programming)
  • Re: Simulate user interaction - Avoid screen saver activation
    ... > I try with key injection event. ... > SendInput API and keybd_event API work correctly with Win2000 and WinXP ... Screen saver don't start. ... > Under WinNT 4.0 these API, inject key event correctly at active application ...
    (comp.programming)
  • Screensaver Question
    ... I'm trying to deactivate the screen saver programatically using ... DECLARE INTEGER SystemParametersInfo IN user32; ... INTEGER @pvParam, INTEGER fWinIni ...
    (microsoft.public.fox.programmer.exchange)
  • Re: verify windows password?
    ... will pass back to you whether the credentials it received were ... good without actually sharing those credentials with your ... If there is such an API I have never heard of it. ... Just set the frigging screen saver to require password ...
    (comp.databases.ms-access)
  • Re: Screensaver Question
    ... I googled up that very same link yesterday when trying to find out how ... to turn off the screen saver myself. ... > rights. ... >> DECLARE INTEGER SystemParametersInfo IN user32; ...
    (microsoft.public.fox.programmer.exchange)