Solved

Shutting down the Screen Saver

Posted on 1997-04-23
4
220 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
ID: 1335672
Adjusted points to 99
0
 
LVL 3

Accepted Solution

by:
sperling earned 90 total points
ID: 1335673
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
ID: 1335674
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
ID: 1335675
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

809 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