forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Activate Current Screen Saver from within VDS script
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
noveltech
Contributor
Contributor


Joined: 16 Sep 2002
Posts: 105

PostPosted: Sat Sep 28, 2002 12:45 am    Post subject: Activate Current Screen Saver from within VDS script Reply with quote

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
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sat Sep 28, 2002 3:26 am    Post subject: Reply with quote

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 Smile

_________________
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
View user's profile Send private message Send e-mail
noveltech
Contributor
Contributor


Joined: 16 Sep 2002
Posts: 105

PostPosted: Sat Sep 28, 2002 6:57 pm    Post subject: Many thanks Reply with quote

Thank you and it's working on Windows 98 Also!

Mike
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sat Sep 28, 2002 9:54 pm    Post subject: Reply with quote

You're welcome, and thanks for sharing the Win98 info. Wink

Cheers, Mac Smile

_________________
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
View user's profile Send private message Send e-mail
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sun Sep 29, 2002 11:35 am    Post subject: Reply with quote

It even works on Windows XP...
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Sun Sep 29, 2002 2:21 pm    Post subject: Reply with quote

Yup, it works on my XP box also. But it really bugs me why 8O Confused

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
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sun Sep 29, 2002 2:53 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sun Sep 29, 2002 2:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sun Sep 29, 2002 3:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Sun Sep 29, 2002 3:50 pm    Post subject: Reply with quote

Seems like it works even if I try to run command.com by typing "command.com" instead
of just "command".
Back to top
View user's profile Send private message Send e-mail Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sun Sep 29, 2002 5:26 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Mon Sep 30, 2002 5:35 am    Post subject: Reply with quote

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
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Mon Sep 30, 2002 7:28 am    Post subject: Reply with quote

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. Razz

Cheers, Mac Smile

_________________
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
View user's profile Send private message Send e-mail
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Mon Sep 30, 2002 7:36 am    Post subject: Reply with quote

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 Crying or Very sad

Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Mon Sep 30, 2002 7:38 am    Post subject: Reply with quote

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 Twisted Evil

Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group