| View previous topic :: View next topic |
| Author |
Message |
noveltech Contributor

Joined: 16 Sep 2002 Posts: 105
|
Posted: Sat Sep 28, 2002 12:45 am Post subject: Activate Current Screen Saver from within VDS script |
|
|
Looking for a jumpstart for calling and
activating Current Screen Saver from
within VDS script.
Just a simple call routine.
Current Windows Screen Saver activates!
Much appreciation from me to all.
Thanks, Mike |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sat Sep 28, 2002 3:26 am Post subject: |
|
|
For Windows 95:
| Code: |
INIFILE OPEN, @windir()\system.ini
%%ssaver = @iniread(boot, scrnsave.exe)
if @file(%%ssaver)
RUN %%ssaver
else
WARN No active screensaver...@tab()
end
|
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
noveltech Contributor

Joined: 16 Sep 2002 Posts: 105
|
Posted: Sat Sep 28, 2002 6:57 pm Post subject: Many thanks |
|
|
Thank you and it's working on Windows 98 Also!
Mike |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sat Sep 28, 2002 9:54 pm Post subject: |
|
|
You're welcome, and thanks for sharing the Win98 info.
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sun Sep 29, 2002 11:35 am Post subject: |
|
|
It even works on Windows XP... _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Sun Sep 29, 2002 2:21 pm Post subject: |
|
|
Yup, it works on my XP box also. But it really bugs me why 8O
When I look in my system.ini there is absolutely no section named [boot] and no key like SCRNSAVE.EXE (I have those in the system.ini of
my W98, all right). And now I'm going absolutely crazy because I just cannot figure out how the script can pull it off. Enlighten me, or I won't
be able to sleep again ... ever.
Greetz
Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sun Sep 29, 2002 2:53 pm Post subject: |
|
|
I checked the system.ini, and like Dr. Dread said, there's no section [BOOT] _________________ FreezingFire
VDSWORLD.com
Site Admin Team
Last edited by FreezingFire on Mon Sep 30, 2002 9:09 pm; edited 1 time in total |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sun Sep 29, 2002 2:55 pm Post subject: |
|
|
Well, Dr. Dread, did you know that if you use COMMAND.COM in XP and open EDIT, while that program doesn't exists??? Windows XP has an emulator for emulating Windows 9.* (and sometimes older) stuff...
Last edited by Skit3000 on Sun Sep 29, 2002 2:57 pm; edited 1 time in total |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sun Sep 29, 2002 3:01 pm Post subject: |
|
|
That's what I said, XP emulates all old stuff....
Another example:
The DOS-box is opened with cmd.exe... But if you opened it, try to type command.com... That program doesn't exists, but it will run... |
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Sun Sep 29, 2002 3:50 pm Post subject: |
|
|
Seems like it works even if I try to run command.com by typing "command.com" instead
of just "command". |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sun Sep 29, 2002 5:26 pm Post subject: |
|
|
Edit - C:\WINDOWS\system32\edit.com
Command - C:\WINDOWS\system32\command.com
If you look in the C:\WINDOWS\system32 folder it is there...
(Windows XP) _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Mon Sep 30, 2002 5:35 am Post subject: |
|
|
OK, now I was able to sleep, but still tossing and turning and having dreams about ghost INI files.
If we assume that XP emulates system.ini...
An ini file couldn't be hardcoded so XP would have to keep that info somewhere else, right! One would assume in the registry, but
it does not seem to be there either. So where is it???
Bring me peace of mind!
Greetz
Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Mon Sep 30, 2002 7:28 am Post subject: |
|
|
Ya might search the registry (and/or other XP system
files if there are any) for your active screensaver
filename...
Lol, I'm just shooting in the dark here though.
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Mon Sep 30, 2002 7:36 am Post subject: |
|
|
I did that: searched the registry, searched through every darn file in the Win directory, but nowhere the screensaver filename turned up
in a plausible context. Also tried changing the screensaver and looking for files that changed time attributes. No luck
Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Mon Sep 30, 2002 7:38 am Post subject: |
|
|
BTW. Mac, if you wanna run around shooting in the dark, perhaps you'd like to finish me off, if I don't find the answer for this soon
Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
|