New: 2.0.0 RC1 of margu-NotebookInfo2

May 8th, 2009 margu No comments

Bald ist es geschafft! Der Release Candidate 1 ist da.

Das bedeutet, die Version 2 von dem Gadget steht kurz vor der Veröffentlichung. 8-)

Wer es testen möchte, der findet es wie immer auf dieser Seite.

Viel Spaß damit. :-)


Soon I get the goal. The Release Candidate 1 is on.

This means, the version 2 of the gadget is shortly before publishing. 8-)

Who want to check it out can get it – as usual – on this page.

Enjoy it. :-)

Categories: Beta, NotebookInfo2 Tags:

New: 2.0.0Beta8 of margu-NotebookInfo2

May 6th, 2009 margu No comments

Heute habe ich die Beta8 meines Gadgets online gestellt.

Was es darin Neues gibt, findest Du auf dieser Seite.


Today I set the Beta8 of my gadget online.

To see what’s new go to this page.


Categories: Beta, NotebookInfo2 Tags:

New: 2.0.0Beta5 of margu-NotebookInfo2

May 4th, 2009 margu No comments

Heute habe ich die Beta5 meines Gadgets online gestellt.

Was es darin Neues gibt, findest Du auf dieser Seite.


Today I set the Beta5 of my gadget online.

To see what’s new go to this page.

What happened to Alert and Confirm?

April 29th, 2009 margu 1 comment

We’ve all been on Web sites and received the “Invalid input, please try again” alert and the “Delete record. Are you sure?” confirmation dialog. Developers often want to pop up informational messages like these.

Sidebar, however, has disabled these JavaScript functions. Using popup dialogs goes against the Windows Vista UX guidelines for Sidebar gadgets. If you still feel compelled to use popups, you can emulate these functions.

To do this, first insert a simple one line tag into the head element of your HTML:

<script src="alert.vbs" type="text/vbscript"></script>

Then create a file that contains the following code and name it alert.vbs. Now you can continue to use alert and confirm as you wish.

‘simulate JavaScript alert() function
sub alert(prompt)
      MsgBox prompt, 48 , "Sidebar Gadget"
end sub  

‘simulate JavaScript confirm() function
function confirm(prompt)
      dim res
      res = MsgBox (prompt, 33, "Sidebar Gadget")
      if res=1 then
          confirm = true
      else
          confirm = false
      end if
end function


via Gadgets: Build Your Own Windows Vista Sidebar Gadget.


HowTo: Sprache in margu-NotebookInfo2

April 28th, 2009 margu No comments


  1. Finde die “Identifier” für jede Sprache die das Gadget unterstützen soll, z.B. en-US oder fr-FR.
  2. Erstelle einen Unterordner für jede zu unterstützende Sprache.
    Der Name des Unterordner muß exakt dem “Identifier” entsprechen.
    Alternativ kannst Du auch einen der schon bestehenden Ordner kopieren und anschließend umbenennen.
    Den Ordner des Gadget findest Du unter



    C:\Users\YOURUSERNAME\AppData\Local\Microsoft\Windows Sidebar\Gadgets\margu-NotebookInfo2

    Wenn Du den Ordner nicht sehen kannst, dann gehe im Explorer auf “Extras => Ordneroptionen” und setze alle versteckten Ordner und Dateien auf sichtbar.

  3. Nachdem Du den neuen Ordner erstellt hast, kopieren die beiden Dateien”gadget.xml” und “localization.js” aus einem der bestehenden Sprachordner in Deinen neuen Ordner. Wenn Du einen bestehenden Ordner kopiert und umbenannt hast, dann sind diese beiden Dateien schon im neuen Ordner.
  4. Nun öffne die Datei “localization.js” mit dem Editor (oder einem anderen Texteditor) ändere alle Texte innerhalb der Anführungszeichen (“”) nach Deinen Bedürfnissen.
  5. Speichere die Datei und nachdem Du die Sidebar neu gestartet hast, sollten alle Texte auf und innerhalb des Gadgets in Deiner Sprache sein.

Ich würde mich freuen, wenn Du mir Deinen Sprachordner (als ZIP) per Mail an

margu999 (at) gmail.com

schicken würdest. Dann kann ich sie beim nächsten Update dem Gadget zufügen und auch andere User kommen in den Genuß der Sprache.


  1. Identify each Windows locale the gadget must support. For example, en-US or fr-FR.
  2. Create a subfolder for each supported Windows locale identifier.
    The subfolder name must match the identifier exactly.
    Alternatively you can copy one of the existing localize folders and rename it for your identifier.
    You’ll find the gadget folder at



    C:\Users\YOURUSERNAME\AppData\Local\Microsoft\Windows Sidebar\Gadgets\margu-NotebookInfo2

    If you can’t see this folder, set the visibility of all hidden files and folders at “Folder Options” of your Explorer under “Tools

  3. After you created the new folder copy the 2 files “gadget.xml” and “localization.js” from one of the existing localize folders to your new folder. If you copied and renamed one of the existing folders, the needed files are already inside of the new one.
  4. Now open the file “localization.js” with Notepad (or any other texteditor) and translate all text inside each quotation marks (“”) to your needs.
  5. Save the file and after you restarted the sidebar all text on and inside the gadget should be in your language.

I would be happy, if you send me your translated folder (as ZIP file) by mail at

margu999 (at) gmail.com

So I will put it into the next release of the gadget and other users will have this language too.