My MSN

Click OK to add this content

 
Content Preview: rss
-+Power Plan Gadget
541 days ago
I've recently posted a "Work in Progress" Gadget on AeroXperience, that changes the current Vista Power plan based on currently running processes.  I wrote the Gadget because whilst playing Assassins Creed, I noticed Vista was lowering the CPU to 50% - which was dropping the frame rate by around 15FPS. I normally leave the power plan on Balanced to save power, but got fed up having to manually change it to Performance whenever I played AC. Download here.
-+HOW TO: Debugging Gadgets
581 days ago
Debugging Gadgets can be a little frustrating, not only whilst coding; but also when trying to get useful feedback from users who've reported issues. The simplest way to achieve this, is to log debug entries out to a file.  In the example below, we check to see if "debug.txt" exists in the Gadget folder and if it does write debugging information to it. The first step is to see if the file exists and open it.  In the following code, we create a BOOLEAN variable "bDebug" which we can use later to output more detailed information, beyond simply errors: var bDebug = oFSO.FileExists(gadgetPath+" \\debug.txt"); try{ if (bDebug)   var debugLogFile = oFSO.OpenTextFile(gadgetPath+" \\debug.txt", 2); } catch(err) {bDebug = false; debugLog("Open debug.txt error: "+err.name+" - "+err.message)} //log a debug entry function debugLog(str) {     try{         System.Debug.outputString(str);         if (bDebug) ...
-+HOW TO: Implementing Drag / Drop in Gadgets
581 days ago
Allowing drag/drop First, you need to set up the HTML events to allow drag/drop. By default they're disabled, so you need to allow them. You do this by cancelling two drag events on the <BODY> tag: <BODY ondragenter="java script:event.returnValue = false" ondragover="java script:event.returnValue = false" > The next thing you need to do, is set up a function to handle the drag/drop action. This is also done on the <BODY> tag with the ondrop event. In this example, the function is fileDragDropped(), so your final <BODY> tag should be: <BODY ondragenter="java script:event.returnValue = false" ondragover="java script:event.returnValue = false" ondrop="fileDragDropped" > Handling File drag/drop from Explorer Files are passed through event.dataTransfer as an object with a collection of items inside. To extract each entry you need to use ...
-+HOW TO: Skin selection
785 days ago
You want to provide your users with a visual skin selector in your settings, but don't know where to start.  Here's all the code you'll need to do it.  The end result will look something like this:   File structure Firstly, create a file structure to support skins.  You'll be placing all the skins in subfolders under a themes folder. <Gadget Folder>     images     themes         <skin1 folder>         <skin2 folder> This keeps all your skins out of the way, and easy to distinguish from the rest of the Gadget.  Each skin subfolder should be named as you'd like the skin name to appear to the user.  ie Default, Blue, Black etc.  And each folder needs to contain a folder.png file, which should be a screenshot of the Gadget with the skin applied.  This image should ideally be scaled and no larger than 100x100 pixels.   Images You'll need some images for the previous/next buttons, so save the following images in the images ...
-+Spectrum Analyser updated
791 days ago
There's a new version of Spectrum Analyser available on AeroXP.
© 2009 MicrosoftMicrosoft