Solved

Shutting down the Screen Saver

Posted on 1997-04-23
4
228 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Magic Software info 18 139
Error E2158 compiling with Delphi XE10 Seattle 2 115
How to build JSON File in Delphi 6 3 46
Firemonkey DbLookupComboBox equivalent ? 2 56
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

821 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