Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 253
  • Last Modified:

Shutting down the Screen Saver

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
Bocian
Asked:
Bocian
  • 2
  • 2
1 Solution
 
BocianAuthor Commented:
Adjusted points to 99
0
 
sperlingCommented:
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
 
BocianAuthor Commented:
Thanks, but how'bout the second part of my question? How to put the app's form above all others? Please, help...  Bocian
0
 
sperlingCommented:
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now