programmation_windows_trucs
Table des matières
Windows Trucs !
Perl: installer un module
Installer le module Win32-API par exemple:
C:\> ppm install Win32-API
Et voila.
Creer un Widget (pour Vista)
http://odetocode.com/Articles/463.aspx
Fichier: gadget.xml
<?xml version="1.0" encoding="utf-8" ?> <gadget> <name> TITRE_ICI </name> <namespace> NOM.Gadgets </namespace> <version>1.0.0.0</version> <author name="Thierry Jaouen"> <info url="www.thierry-jaouen.fr" /> </author> <copyright>© 09-2008</copyright> <description> DESCRIPTION </description> <hosts> <host name="sidebar"> <base type="HTML" apiVersion="1.0.0" src=" LA_SOURCE_HTML.htm" /> <permissions>Full</permissions> <platform minPlatformVersion="1.0" /> </host> </hosts> </gadget>
Fichier: LA_SOURCE_HTML.htm
<html xmlns="http://www.w3.org/1999/xhtml" > <head> <meta http-equiv=Cache-Control content=no-cache /> <meta http-equiv=Pragma content=no-cache /> <title> TITRE </title> <link href=" FICHIER_CSS.css " rel="stylesheet" type="text/css" /> <script language="JavaScript"> <!-- function doLoad() { setTimeout( "refresh()", 30*1000 ); } function refresh() { window.location.reload( true ); } --> </script> </head> <body bgcolor="#000000" onload="doLoad()" > <img border="0" src="http://www.thierry-jaouen.fr/cgi-bin/UNE_IMAGE.gif" /> </body> </html>
Fichier: FICHIER_CSS.css
body { width:130; height:60; background-color:Black; border:0; padding:0; margin:0; }
Compresser chaque fichier:
$ zip -j FICHIER.gadget FICHIER_CSS.css LA_SOURCE_HTML.htm gadget.xml
Le fichier “FICHIER.gadget” peut être installer sous Vista (Click droit ⇒ Installer)
programmation_windows_trucs.txt · Dernière modification : 2008/09/20 23:29 de thierry