473,503 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

change windows desktop background

Hello!

How can I change Windows (or any other) desktop background in javascript ?
It is possible?

Thanks for any advices.
Cezar.
Jul 23 '05 #1
4 6568
Cezar wrote:
How can I change Windows (or any other) desktop background in
javascript ? It is possible?


As I recall, the desktop background is held in a setting in the Windows
registry so a WSH script or an HTA could change those settings
(implemented in JScript). If the idea is to attempt it from a web page
over the Internet then security restriction will render the task
impossible.

Richard.
Jul 23 '05 #2
In article <c9*******************@news.demon.co.uk>,
"Richard Cornford" <Ri*****@litotes.demon.co.uk> wrote:
Cezar wrote:
How can I change Windows (or any other) desktop background in
javascript ? It is possible?


As I recall, the desktop background is held in a setting in the Windows
registry so a WSH script or an HTA could change those settings
(implemented in JScript). If the idea is to attempt it from a web page
over the Internet then security restriction will render the task
impossible.

Richard.


I concur. The root object, when you run JS in a web page, is the window
object. Can't go any higher than that.
Jul 23 '05 #3
"Cezar" <ce*****@imail.net.pl> wrote in message news:<c9**********@nemesis.news.tpi.pl>...
Hello!

How can I change Windows (or any other) desktop background in javascript ?
It is possible?

Thanks for any advices.
Cezar.


If you include an ActiveX object in your javascript, it would
probably possible, but I doubt this could be done with javascript
alone. Would be quite a security breach!
Jul 23 '05 #4
Steven Daedelus wrote:
[...] "Richard Cornford" [...] wrote:
As I recall, the desktop background is held in a setting in the Windows
registry so a WSH script or an HTA could change those settings
(implemented in JScript). If the idea is to attempt it from a web page
over the Internet then security restriction will render the task
impossible.
[...]


I concur. The root object, when you run JS in a web page, is the window
object. Can't go any higher than that.


The root object of an (X)HTML document (that is what you call a "web page")
is the "html" element object which is part of the DOM. The global object
has a "window" property that refers to itself in all HTML UAs I know of.
It is correct that one cannot escape from the browser's DOM and "invade"
the user's system without an appropriate client-side API.

However, Richard was talking about HyperText Applications (HTAs) that use
the Windows Script Host (WSH) and ActiveX. Those run on the client, but
not necessarily within the browser (but *can* run from Internet sites in
IE!), and can access e.g. the Windows registry (take for example the Windows
Me/2k/XP Control Panel's Software module -- that is a HTA). (That is why
RadioActiveX is considered harmful and support for that is recommended to
be restricted, if not disabled, if not avoiding IE and Windows at all.)
PointedEars
Jul 23 '05 #5

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

Similar topics

2
1726
by: Marcus Schneider | last post by:
I use PythonWin on WinXP. Every time I change a module, I have to leave PythonWin and re enter to make it notice I have made changes. I guess this is not the normal way to do that.. do I have to...
3
2634
by: Michael | last post by:
Hi, I have a windows service developed using c# and it needs to lunch another windows application. I have been trying to use Process class to do it but the problem is becase windows service...
383
11779
by: John Bailo | last post by:
The war of the OSes was won a long time ago. Unix has always been, and will continue to be, the Server OS in the form of Linux. Microsoft struggled mightily to win that battle -- creating a...
8
2239
by: Miguel Ramirez | last post by:
Anyone knows how to call a windows application inside ASP.Net code? Regards,
113
6324
by: dan | last post by:
For writing a Windows desktop application, how much harder is it to use the Windows C API than C#/.NET, assuming the coding is done in an editor? What specific aspects were more difficult? I'm...
3
17510
by: =?Utf-8?B?Q2xhZXNXZWRpbg==?= | last post by:
I want my application to have a special color on the Window forms borders. Not the standard one (which the user has set up in his desktop-properties)... How can I do this? I can change...
41
11590
by: pbd22 | last post by:
Hi. I know my windows service works when i run it in debug mode on my dev machine. It also works in release mode on my dev machine. But, when I move the service to a production server, it...
9
2311
by: dm3281 | last post by:
Hello -- I plan on writing a C# service using VS2005. If I want my service to have a tray icon, is this typically done from within my service or do/should I create a controller application and...
0
30174
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: List of autostart locations Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list all the autostart locations for windows? Ans: Here is...
0
7201
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
7083
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
7278
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
7328
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6988
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5578
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
4672
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
3153
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1510
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.