fawkes - 26 May. 2005 - 08:06:
function wanted
I'd once again like to reach out to those with more knowledge than I.
I was hoping to find a simpler process to switch between active desktops. I have two active desktops I use frequently, one for work (with links to commonly used programs), and one for when I'm off the clock (with personal programs, games, and weblinks).
I'd like to be able to place a button on my taskbar, via an icon, or perhaps a text link (HTML in the taskbar) which will switch my active desktop file and go through all the steps for me. What's the chance that this can be done with javascript? or haw about a batch program?
Ok, in theory the method to get this done should be:
window.location.href = 'workdesk.html'
Sometimes that doesn't work though, in which case you can use the dummy parent document trick, this tends to screw the default desktop context menu though.
Create an html document, and then put your active desktop html file in an iframe sized to 100%/100%. From there you can use
top.location.href = 'workdesk.html'
From the taskbar you can use wpchanger and make a commandline shortcut to
wpchanger.exe "workdesk.html" "html"
Make sure all paths are full and such. The thread on wpchanger spells everything out if you wanna use it. The documentation is rather spartan. For that I apologize.