473,463 Members | 1,527 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ScreenSaver 'configure' command line argument

Does anyone know what the command line argumentto launch a
screensaver's options/configuration dialog is on Windows XP Pro?

From most of the example source code I can find on the web, it would
seem to be '/c' but that does not seem to work for the screensaver I
have written. I've tested my code and if '/c' is the first argument
then the options dialog is launched but Windows XP does not seem to be
supplying the '/c' argument when I right click on my .scr file and
select the 'Configure' option from the menu.

After sticking an throw Exception call right at the start of my
screensaver's main function, then running the 'Configure' option from
the right click menu for the .scr file, then attaching my debugger to
the screensaver when it throws the exception, it would appear NO
arguments are being passed to the screensaver (args.length=0). I take
it this means that windows must try and launch the configuration
dialog some other way? If so does anyone know what the other way is?

I'm the screensaver is written in C# and I am running Visual Studio
..Net 2003 and Windows XP Pro.

Cheers,

Danielb
Jul 21 '05 #1
2 8535
DanielB wrote:
Does anyone know what the command line argumentto launch a
screensaver's options/configuration dialog is on Windows XP Pro?

From most of the example source code I can find on the web, it would
seem to be '/c' but that does not seem to work for the screensaver I
have written. I've tested my code and if '/c' is the first argument
then the options dialog is launched but Windows XP does not seem to be
supplying the '/c' argument when I right click on my .scr file and
select the 'Configure' option from the menu.

After sticking an throw Exception call right at the start of my
screensaver's main function, then running the 'Configure' option from
the right click menu for the .scr file, then attaching my debugger to
the screensaver when it throws the exception, it would appear NO
arguments are being passed to the screensaver (args.length=0). I take
it this means that windows must try and launch the configuration
dialog some other way? If so does anyone know what the other way is?

I'm the screensaver is written in C# and I am running Visual Studio
.Net 2003 and Windows XP Pro.

Cheers,

Danielb


Hi there, no arguments means open configuration dialog.
/s means full screen preview.
/p:XXX means child preview, XXX is the window handle of the parent (in
decimals).

/c also means config.

Hope it helps.

Jul 21 '05 #2
Forgot something --- /c:XXXX is sent by the Display Properties Applet
where XXX is to be used as the dialog owner.

XXX is a decimal number to be parsed and type casted to a HWND.

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: klappnase | last post by:
Hello everyone, does anyone know a way to stop the screensaver under linux from starting up while a certain process is running? I need this because I experience a memory leak while recording...
8
by: Joe | last post by:
I'm using Python 2.4 on Windows XP SP2. I'm trying to receive a command line argument that is a newline (\n) Here is the command line to use sample.py "\n" Here is a sample.py script
16
by: MLH | last post by:
Using MS Access, I have attached to MySQL servers in other states and other countries on the other side of my router. But when I use the MySQL ODBC driver 3.51 to connect to a MySQL server on my...
2
by: SunRise | last post by:
Hi I am creating a C Program , to extract only-Printable-characters from a file ( any type of file) and display them. OS: Windows-XP Ple help me to fix the Errors & Warnings and explain...
2
by: VM | last post by:
Can I manually modify the Display Properties->ScreenSaver tab values from within aWindows C# application? During setup of my screensaver, I'd like to be able to configure this tab (specifically,...
1
by: DanielB | last post by:
Does anyone know what the command line argumentto launch a screensaver's options/configuration dialog is on Windows XP Pro? From most of the example source code I can find on the web, it would...
4
by: Simon Mercer | last post by:
I have been trying to build a screensaver that will connect to a database and display specific data depending on the user that is logged in. I have managed to get a simple data access screensaver...
2
by: DanielB | last post by:
Does anyone know what the command line argumentto launch a screensaver's options/configuration dialog is on Windows XP Pro? From most of the example source code I can find on the web, it would...
51
by: Ojas | last post by:
Hi!, I just out of curiosity want to know how top detect the client side application under which the script is getting run. I mean to ask the how to know whether the script is running under...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.