Solved

Shutting down the Screen Saver

Posted on 1997-04-23
4
198 Views
Last Modified: 2010-04-04
How can I shut down running screensaver from within my Delphi 2.0 application? And how can I bring my application's main window above all other running applications? (Just once, not with fsStayOnTop - neither Show nor BringToFront doesn't work)

Thanx a lot...   Bocian
0
Comment
Question by:Bocian
  • 2
  • 2
4 Comments
 

Author Comment

by:Bocian
Comment Utility
Adjusted points to 99
0
 
LVL 3

Accepted Solution

by:
sperling earned 90 total points
Comment Utility
SetCursorPos

This should work the same way as moving the mouse, and if the screensaver is not password protected it should stop running.

Regards,

Erik.
0
 

Author Comment

by:Bocian
Comment Utility
Thanks, but how'bout the second part of my question? How to put the app's form above all others? Please, help...  Bocian
0
 
LVL 3

Expert Comment

by:sperling
Comment Utility
Hmmm...

Have you tried

  Application.Restore
or
  Application.BringToFront?
or
  ShowWindow(Application.Handle, SW_SHOW)
or
  ShowWindow(Application.MainForm.Handle, SW_SHOW);


Regards,

Erik.
 
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now