Jump to content
MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. ×


  • Posts

  • Joined

  • Last visited

  • Donations


Everything posted by murderbus

  1. Here's a slightly more visually appealing example. Notice on the bottom-left there are text entry bars - just type something in and hit enter to open a browser with the specific search or run a console command. Bottom-right is the calendar. The layout still isn't stellar in this example, but you get the idea. I made drop-down menus but they're not in this version, though there's an included dropdown.js you might be able to figure out if you were motivated. desktop3.rar Background theme here is "Anorganic". Anyone else program their desktop in this way using HTML / Javascript?
  2. Haha - you're right. The background is kind of a joke. I'll try posting another example later tonight.
  3. So it looks like not many people will care, but I updated the code substantially. Now you only have to change THREE directories to get it to work on your computer. Desktop2.rar is the new version. Here are the lines you must change: The first is at the VERY top of "desktop.html". I highlighted it with comments. The next (the background) is in \scripts\desktop.css at the VERY TOP. The final instance is \txtfiles\lastfile.txt. I added some extra comments, too, and fixed a minor bug in text-file read-in and read-out, so everything will work perfectly smoothly now. As before, you can edit the layout and style easily and intuitively with desktop.css. Is there any interest in more complex desktop widgets? I programmed a calendar, as well as imbedded search functions and a command prompt.
  4. Hi everyone. I've been lurking for a while. Periodically I like to run this technique past people since it's not a really common approach to customizing one's desktop environment. I think it's pretty good, though. The idea is to set the desktop background as a webpage. So what, you ask? Well, you can use javascript to imbed ActiveX controls, which means you can custom program desktop "widgets" in DHTML. It's really easy. Here are some examples of what my desktop looks like: Here is a .rar which contains all of the files that you need to make this possible: desktop.rar In the RAR is a .reg file which you have to run to disable activeX warnings on your desktop. You don't NEED to run it, but it's annoying not to. Please note: this ONLY disables the warnings for web pages run locally. You DON'T NEED TO WORRY about this disabling your security when you're surfing the web, only if you download a malicious web page MANUALLY and run it. Which will never happen. Just unpack the folder to D:\Desk2, run the .reg file, and then set desktop.html as your background. If you don't have a D: drive, it will still work, but you have to edit the HTML and replace the places where it says "D:\" with "C:\". You will also need to edit "\txtfiles\lastfile.txt" and "\scripts\desktop.css". Trust me, it will be TOTALLY OBVIOUS how to do this. There are about 13 instances of "D:\" at the very top of the html file, and the css and txt file are pretty obvious, too. This isn't really a template for a desktop, it's more of an example. I have very limited javascript knowledge (though I know C++), and I cobbled this together from online code examples and a little trial and error. You can customize this however you want. I have another much more complex example with embedded search functions and command prompt. Maybe I will upload that in a little bit. Enjoy!
  5. Hi guys. I just joined, but I have to say this forum is great. I've managed quite a lot with all of your help, so maybe you can help me with a somewhat trivial (though annoying) problem I've been having. I wrote an HTML file for my desktop which contains some Javascript and some use of ActiveX controls. Now, when I try to change my desktop from a bmp or jpeg to my HTML file, it seems that RunDLL32 crashes and Doctor Watson opens. The desktop properties window freezes, too, and closes when I end the doctor watson process. Here's where it gets pretty weird: SO "Desktop Properties" crashed about ten times, and then out of curiosity I set the desktop to a blank HTML file. No crash. And now it doesn't crash when I use my much more complex web page. I've had a similar experience after several formats, and it's really annoying - the crash always seems to go away eventually, but I'm not quite sure why. This is the first time I've tried using a blank HTML - other times it seems to have gone away for other reasons. What the heck is going on?

  • Create New...