Jump to content

How to make a screensaver run in delphi 2009 on xp/vista

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
Darkyere

Darkyere

    Newbie

  • Members
  • PipPip
  • 13 posts
i have made a screensaver and what i want is to disable alt-tab, ctrl-esc, the windows button (the one between ctrl and alt i mean)

ive tryed using many different versions of

	SystemParametersInfo( SPI_SCREENSAVERRUNNING, integer(true), @i, 0);
	SystemParametersInfo( SPI_SETFASTTASKSWITCH, 1, @i, 0);

but its not working on xp and vista...

i would appreiciate the help if any now how to make a screensaver run in xp and vista.

best regards,
Darkyere

Edited by Jaan, 13 December 2009 - 12:23 PM.
Please use code tags when you are posting your codes!


#2
Rustix666

Rustix666

    Newbie

  • Members
  • PipPip
  • 15 posts
May be this will help.
KeyPreview = True;
On KeyDown or KeyPress function of Form set:
Key:=#0;