Home » Developer & Programmer » Forms » How to display screen saver every 10 seconds ? (DB:10gR2 | Win XP SP3 | Forms 10g)
icon5.gif  How to display screen saver every 10 seconds ? [message #397906] Tue, 14 April 2009 08:24 Go to next message
Hany Freedom
Messages: 256
Registered: May 2007
Location: Egypt
Senior Member

I want to display Screen Saver every 10 seconds as long as the user doesn't make anything on his computer.

I did that :-

WHEN-NEW-FORM-INSTANCE
declare
	t timer;
begin
	t:= create_timer('Hany',10000,repeat);
end;



WHEN-TIMER-EXPIRED
if :System.MODE = 'NORMAL' then
	Host('C:\WINDOWS\system32\ssmypics.scr');
End if;



but in RunTime the Screen Saver's Setting appear not the Screen Saver itself ..... like shown below :-

http://img118.imageshack.us/img118/245/errorv.png

that's seems weird because when I run the Screen Saver directly from Start>>RUN :-
C:\WINDOWS\system32\ssmypics.scr
it is working nice without appearing of the setting.

so, what's went wrong ????

I attached the fmb file to have a look for it if you like.
Re: How to display screen saver every 10 seconds ? [message #397989 is a reply to message #397906] Tue, 14 April 2009 14:04 Go to previous messageGo to next message
Hany Freedom
Messages: 256
Registered: May 2007
Location: Egypt
Senior Member

I tried :-
HOST('cmd /c C:\WINDOWS\system32\ssmypics.scr');

instead of
Host('C:\WINDOWS\system32\ssmypics.scr');

but the same problem happen Sad

any suggests will be appreciate
Re: How to display screen saver every 10 seconds ? [message #398385 is a reply to message #397989] Thu, 16 April 2009 02:33 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Can you make this work from a batch script or a VB program?

David
icon8.gif  Re: How to display screen saver every 10 seconds ? [message #398825 is a reply to message #398385] Fri, 17 April 2009 19:54 Go to previous messageGo to next message
Hany Freedom
Messages: 256
Registered: May 2007
Location: Egypt
Senior Member

I did , but the same problem happen Sad

I just wonder how to run the screen saver from CMD without getting the setting of this screen saver ?!
Re: How to display screen saver every 10 seconds ? [message #399131 is a reply to message #397906] Mon, 20 April 2009 18:20 Go to previous message
Hany Freedom
Messages: 256
Registered: May 2007
Location: Egypt
Senior Member

Laughing I found the Solution :-

http://www.4shared.com/file/97992483/5ddd2f8c/Screen_Saver.html
Previous Topic: Make User Page
Next Topic: ORA-12560: TNS:protocol adapter error....AGAIN!
Goto Forum:
  


Current Time: Mon Feb 03 22:53:50 CST 2025