<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Cyann</title>
	<atom:link href="http://www.cyann.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cyann.net</link>
	<description>En prévision du futur</description>
	<lastBuildDate>Fri, 12 Feb 2010 19:04:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>De KiXtart à Python: les macros</title>
		<link>http://www.cyann.net/2010/02/12/kixtart-macros-to-python/</link>
		<comments>http://www.cyann.net/2010/02/12/kixtart-macros-to-python/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 18:36:53 +0000</pubDate>
		<dc:creator>Flavien</dc:creator>
				<category><![CDATA[développement]]></category>

		<guid isPermaLink="false">http://www.cyann.net/?p=699</guid>
		<description><![CDATA[Petit guide en anglais de traduction de scripts KiXtart vers Python.

Commands
Functions
Macros


Macros



KiXtart
Python equivalent 
Description


Abs

Returns the absolute value of a number


AddKey

Add a key to registry


AddPrinterConnection

Add a connection to a network printer (NT family only)


AddProgramGroup

Create a new program group


AddProgramItem

Add/replace an item in current program group


Asc

Returns ASCII code of character


AScan

Searches an array for a specific expression


At

Place the cursor at [...]]]></description>
			<content:encoded><![CDATA[<p>Petit guide en anglais de traduction de scripts KiXtart vers Python.</p>
<ul>
<li><a href="http://www.cyann.net/2010/02/09/kixtart-commands-to-python/#kixtart-commands">Commands</a></li>
<li><a href="http://www.cyann.net/2010/02/12/kixtart-functions-to-python/#kixtart-functions">Functions</a></li>
<li><a href="http://www.cyann.net/2010/02/12/kixtart-macros-to-python/#kixtart-macros">Macros</a></li>
</ul>
<p><span id="more-699"></span></p>
<h2><a name="kixtart-macros"></a>Macros</h2>
<table style="border-collapse: collapse;" border="1">
<tbody>
<tr>
<th><strong>KiXtart</strong></th>
<th>Python equivalent </th>
<th>Description</th>
</tr>
<tr>
<td>Abs</td>
<td></td>
<td>Returns the absolute value of a number</td>
</tr>
<tr>
<td><span style="font-size: x-small;">AddKey</span></td>
<td></td>
<td>Add a key to registry</td>
</tr>
<tr>
<td>AddPrinterConnection</td>
<td></td>
<td>Add a connection to a network printer (NT family only)</td>
</tr>
<tr>
<td>AddProgramGroup</td>
<td></td>
<td>Create a new program group</td>
</tr>
<tr>
<td>AddProgramItem</td>
<td></td>
<td>Add/replace an item in current program group</td>
</tr>
<tr>
<td>Asc</td>
<td></td>
<td>Returns ASCII code of character</td>
</tr>
<tr>
<td>AScan</td>
<td></td>
<td>Searches an array for a specific expression</td>
</tr>
<tr>
<td>At</td>
<td></td>
<td>Place the cursor at the place indicated</td>
</tr>
<tr>
<td>BackupEventLog</td>
<td></td>
<td>Backs up an NT event log</td>
</tr>
<tr>
<td>Box</td>
<td></td>
<td>Draws a text box</td>
</tr>
<tr>
<td width="145" height="17" valign="top">CDbl</td>
<td></td>
<td width="778" height="17" valign="top">Casts an expression to a variant of subtype Double</td>
</tr>
<tr>
<td>Chr</td>
<td></td>
<td>Returns ASCII representation of numeric value</td>
</tr>
<tr>
<td>CInt</td>
<td></td>
<td>Casts an expression to a variant of subtype Integer</td>
</tr>
<tr>
<td>ClearEventLog</td>
<td></td>
<td>Clears an NT event log</td>
</tr>
<tr>
<td>Close</td>
<td></td>
<td>Closes an ASCII file opened with OPEN</td>
</tr>
<tr>
<td>CompareFileTimes</td>
<td></td>
<td>Compares the file date and time of two files</td>
</tr>
<tr>
<td>CreateObject</td>
<td></td>
<td>Launches the COM/OLE automation server</td>
</tr>
<tr>
<td>CStr</td>
<td></td>
<td>Casts an expression to a variant of subtype String</td>
</tr>
<tr>
<td>DecToHex</td>
<td></td>
<td>Returns the HEX equivalent given a decimal value</td>
</tr>
<tr>
<td>DelKey</td>
<td></td>
<td>Deletes a key from registry</td>
</tr>
<tr>
<td>DelPrinterConnection</td>
<td></td>
<td>Remove a connection to a network printer (NT family only)</td>
</tr>
<tr>
<td>DelProgramGroup</td>
<td></td>
<td>Deletes a program group</td>
</tr>
<tr>
<td>DelProgramItem</td>
<td></td>
<td>Deletes a program item from a program group</td>
</tr>
<tr>
<td>DelTree</td>
<td></td>
<td>Deletes a key from registry, including subkeys</td>
</tr>
<tr>
<td>DelValue</td>
<td></td>
<td>Deletes a value entry from the registry</td>
</tr>
<tr>
<td>Dir</td>
<td></td>
<td>Enumerates directory names</td>
</tr>
<tr>
<td>EnumGroup</td>
<td></td>
<td>Enumerates the names of global groups the user is member of</td>
</tr>
<tr>
<td>EnumIpInfo</td>
<td></td>
<td>Enumerates TCP/IP information of network adapters</td>
</tr>
<tr>
<td>EnumKey</td>
<td></td>
<td>Enumerates the names of registry keys</td>
</tr>
<tr>
<td>EnumLocalGroup</td>
<td></td>
<td>Enumerates the names of local groups the user is member of</td>
</tr>
<tr>
<td>EnumValue</td>
<td></td>
<td>Enumerates the names of registry values</td>
</tr>
<tr>
<td>Execute</td>
<td></td>
<td>Executes a piece of script</td>
</tr>
<tr>
<td>Exist</td>
<td></td>
<td>Checks if a file exists</td>
</tr>
<tr>
<td>ExpandEnvironmentVars</td>
<td></td>
<td>Expands environment variables within a string</td>
</tr>
<tr>
<td>Fix</td>
<td></td>
<td>Removes the fractional part of number and returns the resulting integer value</td>
</tr>
<tr>
<td>FormatNumber</td>
<td></td>
<td>Returns an expression formatted as a number</td>
</tr>
<tr>
<td>FreeFileHandle</td>
<td></td>
<td>Returns an available file handle number</td>
</tr>
<tr>
<td>GetCommandLine( )</td>
<td></td>
<td>Returns the command line used to execute KiXtart</td>
</tr>
<tr>
<td>GetDiskSpace</td>
<td></td>
<td>Returns free disk space (in Kbytes)</td>
</tr>
<tr>
<td>GetFileAttr</td>
<td></td>
<td>Retrieves attributes of a file</td>
</tr>
<tr>
<td>GetFileSize</td>
<td></td>
<td>Returns the size (in bytes) of a file</td>
</tr>
<tr>
<td>GetFileTime<strong> </strong></td>
<td></td>
<td>Retrieves the date &amp; time of a file</td>
</tr>
<tr>
<td>GetFileVersion</td>
<td></td>
<td>Returns the version string of a file</td>
</tr>
<tr>
<td>GetObject</td>
<td></td>
<td>Gets a COM object from a file stored on disk</td>
</tr>
<tr>
<td>IIF</td>
<td></td>
<td>Immediate IF</td>
</tr>
<tr>
<td>InGroup</td>
<td></td>
<td>Checks for membership of user of specified group</td>
</tr>
<tr>
<td>InStr</td>
<td></td>
<td>Searches for a string within a string (left to right)</td>
</tr>
<tr>
<td>InStrRev</td>
<td></td>
<td>Searches for a string within a string (right to left)</td>
</tr>
<tr>
<td>Int</td>
<td></td>
<td>Removes the fractional part of number and returns the resulting integer value</td>
</tr>
<tr>
<td>IsDeclared</td>
<td></td>
<td>Returns a Boolean value indicating whether a variable has been declared</td>
</tr>
<tr>
<td>Join</td>
<td></td>
<td>Returns a string created by joining a number of substrings contained in an array</td>
</tr>
<tr>
<td>KbHit</td>
<td></td>
<td>Checks the console for keyboard input</td>
</tr>
<tr>
<td>KeyExist</td>
<td></td>
<td>Checks for the existence of a registry subkey</td>
</tr>
<tr>
<td>LCase</td>
<td></td>
<td>Returns string in lower case</td>
</tr>
<tr>
<td>Len</td>
<td></td>
<td>Returns length of a string</td>
</tr>
<tr>
<td>Left</td>
<td></td>
<td>Returns X characters from the left side of a string</td>
</tr>
<tr>
<td>LoadHive</td>
<td></td>
<td>Load a registry hive</td>
</tr>
<tr>
<td>LoadKey</td>
<td></td>
<td>Loads (overwrites!) key (sub keys and values)</td>
</tr>
<tr>
<td>LogEvent</td>
<td></td>
<td>LogEvent</td>
</tr>
<tr>
<td>Logoff</td>
<td></td>
<td>Logs current user off</td>
</tr>
<tr>
<td>LTrim</td>
<td></td>
<td>Strips leading spaces from string</td>
</tr>
<tr>
<td>MemorySize</td>
<td></td>
<td>Returns memory statistics, in Megabytes</td>
</tr>
<tr>
<td>MessageBox</td>
<td></td>
<td>Displays a standard Windows dialog box</td>
</tr>
<tr>
<td>Open</td>
<td></td>
<td>Opens an ASCII file</td>
</tr>
<tr>
<td>ReadLine</td>
<td></td>
<td>Reads a line from an ASCII file opened with OPEN</td>
</tr>
<tr>
<td>ReadProfileString</td>
<td></td>
<td>Read string from an .ini file</td>
</tr>
<tr>
<td>ReadType</td>
<td></td>
<td>Returns the data type of a registry value</td>
</tr>
<tr>
<td>ReadValue</td>
<td></td>
<td>Returns the data from a registry value</td>
</tr>
<tr>
<td>RedirectOutput</td>
<td></td>
<td>Redirects all output to a file</td>
</tr>
<tr>
<td>Right</td>
<td></td>
<td>Returns X characters from the right side of a string</td>
</tr>
<tr>
<td>Rnd</td>
<td><a href="http://docs.python.org/library/os.html#os.urandom" target="_blank">os.urandom(<em>n</em>)</a></td>
<td>Returns a pseudo random number</td>
</tr>
<tr>
<td>Round</td>
<td></td>
<td>Returns a number rounded to a specified number of decimal places</td>
</tr>
<tr>
<td>RTrim</td>
<td></td>
<td>Strips trailing spaces from string</td>
</tr>
<tr>
<td>SaveKey</td>
<td></td>
<td>Saves entire key (including sub keys and values)</td>
</tr>
<tr>
<td>SendKeys</td>
<td></td>
<td>Sends keystrokes to the focused application</td>
</tr>
<tr>
<td>SetConsole</td>
<td></td>
<td>Change display mode of console</td>
</tr>
<tr>
<td>SetDefaultPrinter</td>
<td></td>
<td>Sets the default printer</td>
</tr>
<tr>
<td>SetFileAttr</td>
<td></td>
<td>Sets attributes of a file</td>
</tr>
<tr>
<td>SetFocus</td>
<td></td>
<td>Sets focus to a specific application</td>
</tr>
<tr>
<td>SetOption</td>
<td></td>
<td>Enables/disables global settings of the interpreter</td>
</tr>
<tr>
<td>SetSystemState</td>
<td></td>
<td>Changes the (power) state of the local system</td>
</tr>
<tr>
<td>SetTitle</td>
<td></td>
<td>Sets the Window title of the current console</td>
</tr>
<tr>
<td>SetWallpaper</td>
<td></td>
<td>Sets the current wallpaper</td>
</tr>
<tr>
<td>ShowProgramGroup</td>
<td></td>
<td>Change display status of a program group</td>
</tr>
<tr>
<td>ShutDown</td>
<td></td>
<td>Shutdown or reboot local or remote system</td>
</tr>
<tr>
<td>SidToName</td>
<td></td>
<td>Translates a Security Identifier (SID) into a name</td>
</tr>
<tr>
<td>Split</td>
<td></td>
<td>Splits a single string into an array given a delimiter</td>
</tr>
<tr>
<td>SRnd</td>
<td></td>
<td>Sets the starting point for generating pseudorandom integers</td>
</tr>
<tr>
<td>Substr</td>
<td></td>
<td>Returns a substring from a string</td>
</tr>
<tr>
<td>Trim</td>
<td></td>
<td>Strips leading and trailing spaces from a string</td>
</tr>
<tr>
<td>Ubound</td>
<td></td>
<td>Returns the largest available subscript for an array</td>
</tr>
<tr>
<td>UCase</td>
<td></td>
<td>Returns string in upper case</td>
</tr>
<tr>
<td>UnloadHive</td>
<td></td>
<td>Unload a registry hive</td>
</tr>
<tr>
<td>Val</td>
<td></td>
<td>Returns the numerical value of a string</td>
</tr>
<tr>
<td>VarType</td>
<td></td>
<td>Returns an integer value indicating the subtype of a variable</td>
</tr>
<tr>
<td>VarTypeName</td>
<td></td>
<td>Returns a string that provides type info. about a variable</td>
</tr>
<tr>
<td>WriteLine</td>
<td></td>
<td>Write a line of text to a file</td>
</tr>
<tr>
<td>WriteProfileString</td>
<td></td>
<td>Write string to an ini-file</td>
</tr>
<tr>
<td>WriteValue</td>
<td></td>
<td>Write single value to registry</td>
</tr>
<tr>
<th style="text-align: center;" colspan="3">Macros</th>
</tr>
<tr>
<td>@Address</td>
<td></td>
<td>Address of the network adapter</td>
</tr>
<tr>
<td>@Build</td>
<td></td>
<td>Build number of the operating system</td>
</tr>
<tr>
<td>@Color</td>
<td></td>
<td>Returns the current console color setting</td>
</tr>
<tr>
<td>@Comment</td>
<td></td>
<td>User comment (Description field in User Manager)</td>
</tr>
<tr>
<td>@CPU</td>
<td></td>
<td>Name of the CPU (e.g.: &laquo;&nbsp;Intel Pentium III&nbsp;&raquo;)</td>
</tr>
<tr>
<td>@CRLF</td>
<td></td>
<td>Returns a carriage-return line-feed combination</td>
</tr>
<tr>
<td>@CSD</td>
<td></td>
<td>CSD information (eg: &laquo;&nbsp;Service Pack 2&#8243;)</td>
</tr>
<tr>
<td>@CurDir</td>
<td></td>
<td>Current directory</td>
</tr>
<tr>
<td>@Date</td>
<td></td>
<td>Date (in the format YYYY/MM/DD)</td>
</tr>
<tr>
<td>@Day</td>
<td></td>
<td>Day of the week (Monday, Tuesday, etc.)</td>
</tr>
<tr>
<td>@Domain</td>
<td></td>
<td>Domain or workgroup the computer belongs to</td>
</tr>
<tr>
<td>@DOS</td>
<td></td>
<td>Version of Windows NT</td>
</tr>
<tr>
<td>@Error</td>
<td></td>
<td>Return code of the most recent command or function. A return code of 0 means the command or function was successful. Any other value indicates an error.</td>
</tr>
<tr>
<td>@FullName</td>
<td></td>
<td>Full name of current user</td>
</tr>
<tr>
<td>@HomeDir</td>
<td></td>
<td>Short name of the directory part of home directory</td>
</tr>
<tr>
<td>@HomeDrive</td>
<td></td>
<td>Drive letter of drive containing home directory</td>
</tr>
<tr>
<td>@HomeShr</td>
<td></td>
<td>Server and share name part of home directory</td>
</tr>
<tr>
<td>@HostName</td>
<td></td>
<td>Fully qualified TCP/IP host name (including TCP/IP domain name)</td>
</tr>
<tr>
<td>@InWin</td>
<td></td>
<td>Operating system: 1 = Windows NT; 2 = Windows 9x</td>
</tr>
<tr>
<td>@IPaddress0<br />
 @IPAddress1<br />
 @IPAddress2<br />
 @IPAddress3</td>
<td></td>
<td>TCP/IP address<span style="font-family: Courier New;"><span style="font-size: x-small;"> </span></span></td>
</tr>
<tr>
<td>@KiX</td>
<td></td>
<td>Version of KiXtart</td>
</tr>
<tr>
<td>@LanRoot</td>
<td></td>
<td>Directory where network software resides (usually<em>Systemroot</em>\System32)</td>
</tr>
<tr>
<td>@LDomain</td>
<td></td>
<td>Logon domain</td>
</tr>
<tr>
<td>@LDrive</td>
<td></td>
<td>Drive that is redirected to \\logonserver\NETLOGON</td>
</tr>
<tr>
<td>@LM</td>
<td></td>
<td>Version of network software</td>
</tr>
<tr>
<td>@LogonMode</td>
<td></td>
<td>If 1, indicates that KiXtart assumes to be running during the logon sequence</td>
</tr>
<tr>
<td>@LongHomeDir</td>
<td></td>
<td>Long name of the directory part of home directory</td>
</tr>
<tr>
<td>@LServer</td>
<td></td>
<td>Logon server</td>
</tr>
<tr>
<td>@MaxPWAge</td>
<td></td>
<td>Maximum password age (Note: if passwords are set not to expire, this value is set to ((unsigned long)-1) (or 0xFFFFFFFF in hex). This evaluates to 4294967295 decimal).</td>
</tr>
<tr>
<td>@MDayNo</td>
<td></td>
<td>Day of the month (1-31)</td>
</tr>
<tr>
<td>@MHz</td>
<td></td>
<td>Approximation of the CPU speed (not available on Windows 9x)</td>
</tr>
<tr>
<td>@MonthNo</td>
<td></td>
<td>Month number, beginning with January (1-12)</td>
</tr>
<tr>
<td>@Month</td>
<td></td>
<td>Name of the month</td>
</tr>
<tr>
<td>@MSecs</td>
<td></td>
<td>Milliseconds part of the current time</td>
</tr>
<tr>
<td>@OnWoW64</td>
<td></td>
<td>Returns a 1 if KiXtart is running in the WOW64 environment</td>
</tr>
<tr>
<td>@PID</td>
<td></td>
<td>Process ID of KiXtart (wkix32.exe or kix32.exe)</td>
</tr>
<tr>
<td>@PrimaryGroup</td>
<td></td>
<td>Current user&#8217;s primary group</td>
</tr>
<tr>
<td>@Priv</td>
<td></td>
<td>User&#8217;s privilege level (GUEST, USER, ADMIN)</td>
</tr>
<tr>
<td>@ProductSuite</td>
<td></td>
<td>OS Suite</td>
</tr>
<tr>
<td>@ProductType</td>
<td></td>
<td>OS type</td>
</tr>
<tr>
<td>@PWAge</td>
<td></td>
<td>Password age</td>
</tr>
<tr>
<td>@RAS</td>
<td></td>
<td>Number of active Remote Access Service (RAS) connections</td>
</tr>
<tr>
<td>@Result</td>
<td></td>
<td>Returns command-specific information (e.g.: the drive letter of an automatic redirection command)</td>
</tr>
<tr>
<td>@RServer</td>
<td></td>
<td>KXRPC server used for the current session</td>
</tr>
<tr>
<td>@ScriptDir</td>
<td></td>
<td>Directory of current script</td>
</tr>
<tr>
<td>@ScriptExe</td>
<td></td>
<td>Indicates the version of the KiXtart executable</td>
</tr>
<tr>
<td>@ScriptName</td>
<td></td>
<td>Name of the current script</td>
</tr>
<tr>
<td>@SError</td>
<td></td>
<td>Error text corresponding with @ERROR</td>
</tr>
<tr>
<td>@SID</td>
<td></td>
<td>Current user&#8217;s Windows NT Security Identifier (SID)</td>
</tr>
<tr>
<td>@Site</td>
<td></td>
<td>Name of the site in which the system resides</td>
</tr>
<tr>
<td>@StartDir</td>
<td></td>
<td>Directory from which KiXtart was started</td>
</tr>
<tr>
<td>@SysLang</td>
<td></td>
<td>Full English name of the language of the operating system specified in the format defined by ISO Standard 639. (example : &ldquo;0413Dutch (Standard)&rdquo;).</td>
</tr>
<tr>
<td>@Ticks</td>
<td></td>
<td>Number of milliseconds elapsed since computer was last booted</td>
</tr>
<tr>
<td>@Time</td>
<td></td>
<td>Current time (in the format HH:MM:SS)</td>
</tr>
<tr>
<td>@TsSession</td>
<td></td>
<td>This macro will return a 1 if KiXtart is running in a Terminal Server session</td>
</tr>
<tr>
<td>@UserID</td>
<td></td>
<td>Current user&#8217;s Windows NT user ID</td>
</tr>
<tr>
<td>@UserLang</td>
<td></td>
<td>Full English name of the language selected by the current user specified in the format defined by ISO Standard 639. (example : &ldquo;0413Dutch (Standard)&rdquo;).</td>
</tr>
<tr>
<td>@WDayNo</td>
<td></td>
<td>Days since Sunday (1 &ndash; 7)</td>
</tr>
<tr>
<td>@Wksta</td>
<td></td>
<td>Computer name</td>
</tr>
<tr>
<td>@WUserID</td>
<td></td>
<td>Current user&#8217;s Windows user ID</td>
</tr>
<tr>
<td>@YDayNo</td>
<td></td>
<td>Days since January 1 (1 &ndash; 365)</td>
</tr>
<tr>
<td>@Year</td>
<td></td>
<td>Current year</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.cyann.net/2010/02/12/kixtart-macros-to-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>De KiXtart à Python: les fonctions</title>
		<link>http://www.cyann.net/2010/02/12/kixtart-functions-to-python/</link>
		<comments>http://www.cyann.net/2010/02/12/kixtart-functions-to-python/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 18:31:34 +0000</pubDate>
		<dc:creator>Flavien</dc:creator>
				<category><![CDATA[développement]]></category>

		<guid isPermaLink="false">http://www.cyann.net/?p=695</guid>
		<description><![CDATA[Petit guide en anglais de traduction de scripts KiXtart vers Python.

Commands
Functions
Macros


Functions



KiXtart
Python equivalent 
Description


Abs

Returns the absolute value of a number


AddKey

Add a key to registry


AddPrinterConnection

Add a connection to a network printer (NT family only)


AddProgramGroup

Create a new program group


AddProgramItem

Add/replace an item in current program group


Asc

Returns ASCII code of character


AScan

Searches an array for a specific expression


At

Place the cursor at [...]]]></description>
			<content:encoded><![CDATA[<p>Petit guide en anglais de traduction de scripts KiXtart vers Python.</p>
<ul>
<li><a href="http://www.cyann.net/2010/02/09/kixtart-commands-to-python/#kixtart-commands">Commands</a></li>
<li><a href="http://www.cyann.net/2010/02/12/kixtart-functions-to-python/#kixtart-functions">Functions</a></li>
<li><a href="http://www.cyann.net/2010/02/12/kixtart-macros-to-python/#kixtart-macros">Macros</a></li>
</ul>
<p><span id="more-695"></span></p>
<h2><a name="kixtart-functions"></a>Functions</h2>
<table style="border-collapse: collapse;" border="1">
<tbody>
<tr>
<th><strong>KiXtart</strong></th>
<th>Python equivalent </th>
<th>Description</th>
</tr>
<tr>
<td>Abs</td>
<td></td>
<td>Returns the absolute value of a number</td>
</tr>
<tr>
<td><span style="font-size: x-small;">AddKey</span></td>
<td></td>
<td>Add a key to registry</td>
</tr>
<tr>
<td>AddPrinterConnection</td>
<td></td>
<td>Add a connection to a network printer (NT family only)</td>
</tr>
<tr>
<td>AddProgramGroup</td>
<td></td>
<td>Create a new program group</td>
</tr>
<tr>
<td>AddProgramItem</td>
<td></td>
<td>Add/replace an item in current program group</td>
</tr>
<tr>
<td>Asc</td>
<td></td>
<td>Returns ASCII code of character</td>
</tr>
<tr>
<td>AScan</td>
<td></td>
<td>Searches an array for a specific expression</td>
</tr>
<tr>
<td>At</td>
<td></td>
<td>Place the cursor at the place indicated</td>
</tr>
<tr>
<td>BackupEventLog</td>
<td></td>
<td>Backs up an NT event log</td>
</tr>
<tr>
<td>Box</td>
<td></td>
<td>Draws a text box</td>
</tr>
<tr>
<td width="145" height="17" valign="top">CDbl</td>
<td></td>
<td width="778" height="17" valign="top">Casts an expression to a variant of subtype Double</td>
</tr>
<tr>
<td>Chr</td>
<td></td>
<td>Returns ASCII representation of numeric value</td>
</tr>
<tr>
<td>CInt</td>
<td></td>
<td>Casts an expression to a variant of subtype Integer</td>
</tr>
<tr>
<td>ClearEventLog</td>
<td></td>
<td>Clears an NT event log</td>
</tr>
<tr>
<td>Close</td>
<td></td>
<td>Closes an ASCII file opened with OPEN</td>
</tr>
<tr>
<td>CompareFileTimes</td>
<td></td>
<td>Compares the file date and time of two files</td>
</tr>
<tr>
<td>CreateObject</td>
<td></td>
<td>Launches the COM/OLE automation server</td>
</tr>
<tr>
<td>CStr</td>
<td></td>
<td>Casts an expression to a variant of subtype String</td>
</tr>
<tr>
<td>DecToHex</td>
<td></td>
<td>Returns the HEX equivalent given a decimal value</td>
</tr>
<tr>
<td>DelKey</td>
<td></td>
<td>Deletes a key from registry</td>
</tr>
<tr>
<td>DelPrinterConnection</td>
<td></td>
<td>Remove a connection to a network printer (NT family only)</td>
</tr>
<tr>
<td>DelProgramGroup</td>
<td></td>
<td>Deletes a program group</td>
</tr>
<tr>
<td>DelProgramItem</td>
<td></td>
<td>Deletes a program item from a program group</td>
</tr>
<tr>
<td>DelTree</td>
<td></td>
<td>Deletes a key from registry, including subkeys</td>
</tr>
<tr>
<td>DelValue</td>
<td></td>
<td>Deletes a value entry from the registry</td>
</tr>
<tr>
<td>Dir</td>
<td></td>
<td>Enumerates directory names</td>
</tr>
<tr>
<td>EnumGroup</td>
<td></td>
<td>Enumerates the names of global groups the user is member of</td>
</tr>
<tr>
<td>EnumIpInfo</td>
<td></td>
<td>Enumerates TCP/IP information of network adapters</td>
</tr>
<tr>
<td>EnumKey</td>
<td></td>
<td>Enumerates the names of registry keys</td>
</tr>
<tr>
<td>EnumLocalGroup</td>
<td></td>
<td>Enumerates the names of local groups the user is member of</td>
</tr>
<tr>
<td>EnumValue</td>
<td></td>
<td>Enumerates the names of registry values</td>
</tr>
<tr>
<td>Execute</td>
<td></td>
<td>Executes a piece of script</td>
</tr>
<tr>
<td>Exist</td>
<td></td>
<td>Checks if a file exists</td>
</tr>
<tr>
<td>ExpandEnvironmentVars</td>
<td></td>
<td>Expands environment variables within a string</td>
</tr>
<tr>
<td>Fix</td>
<td></td>
<td>Removes the fractional part of number and returns the resulting integer value</td>
</tr>
<tr>
<td>FormatNumber</td>
<td></td>
<td>Returns an expression formatted as a number</td>
</tr>
<tr>
<td>FreeFileHandle</td>
<td></td>
<td>Returns an available file handle number</td>
</tr>
<tr>
<td>GetCommandLine( )</td>
<td></td>
<td>Returns the command line used to execute KiXtart</td>
</tr>
<tr>
<td>GetDiskSpace</td>
<td></td>
<td>Returns free disk space (in Kbytes)</td>
</tr>
<tr>
<td>GetFileAttr</td>
<td></td>
<td>Retrieves attributes of a file</td>
</tr>
<tr>
<td>GetFileSize</td>
<td></td>
<td>Returns the size (in bytes) of a file</td>
</tr>
<tr>
<td>GetFileTime<strong> </strong></td>
<td></td>
<td>Retrieves the date &amp; time of a file</td>
</tr>
<tr>
<td>GetFileVersion</td>
<td></td>
<td>Returns the version string of a file</td>
</tr>
<tr>
<td>GetObject</td>
<td></td>
<td>Gets a COM object from a file stored on disk</td>
</tr>
<tr>
<td>IIF</td>
<td></td>
<td>Immediate IF</td>
</tr>
<tr>
<td>InGroup</td>
<td></td>
<td>Checks for membership of user of specified group</td>
</tr>
<tr>
<td>InStr</td>
<td></td>
<td>Searches for a string within a string (left to right)</td>
</tr>
<tr>
<td>InStrRev</td>
<td></td>
<td>Searches for a string within a string (right to left)</td>
</tr>
<tr>
<td>Int</td>
<td></td>
<td>Removes the fractional part of number and returns the resulting integer value</td>
</tr>
<tr>
<td>IsDeclared</td>
<td></td>
<td>Returns a Boolean value indicating whether a variable has been declared</td>
</tr>
<tr>
<td>Join</td>
<td></td>
<td>Returns a string created by joining a number of substrings contained in an array</td>
</tr>
<tr>
<td>KbHit</td>
<td></td>
<td>Checks the console for keyboard input</td>
</tr>
<tr>
<td>KeyExist</td>
<td></td>
<td>Checks for the existence of a registry subkey</td>
</tr>
<tr>
<td>LCase</td>
<td></td>
<td>Returns string in lower case</td>
</tr>
<tr>
<td>Len</td>
<td></td>
<td>Returns length of a string</td>
</tr>
<tr>
<td>Left</td>
<td></td>
<td>Returns X characters from the left side of a string</td>
</tr>
<tr>
<td>LoadHive</td>
<td></td>
<td>Load a registry hive</td>
</tr>
<tr>
<td>LoadKey</td>
<td></td>
<td>Loads (overwrites!) key (sub keys and values)</td>
</tr>
<tr>
<td>LogEvent</td>
<td></td>
<td>LogEvent</td>
</tr>
<tr>
<td>Logoff</td>
<td></td>
<td>Logs current user off</td>
</tr>
<tr>
<td>LTrim</td>
<td></td>
<td>Strips leading spaces from string</td>
</tr>
<tr>
<td>MemorySize</td>
<td></td>
<td>Returns memory statistics, in Megabytes</td>
</tr>
<tr>
<td>MessageBox</td>
<td></td>
<td>Displays a standard Windows dialog box</td>
</tr>
<tr>
<td>Open</td>
<td></td>
<td>Opens an ASCII file</td>
</tr>
<tr>
<td>ReadLine</td>
<td></td>
<td>Reads a line from an ASCII file opened with OPEN</td>
</tr>
<tr>
<td>ReadProfileString</td>
<td></td>
<td>Read string from an .ini file</td>
</tr>
<tr>
<td>ReadType</td>
<td></td>
<td>Returns the data type of a registry value</td>
</tr>
<tr>
<td>ReadValue</td>
<td></td>
<td>Returns the data from a registry value</td>
</tr>
<tr>
<td>RedirectOutput</td>
<td></td>
<td>Redirects all output to a file</td>
</tr>
<tr>
<td>Right</td>
<td></td>
<td>Returns X characters from the right side of a string</td>
</tr>
<tr>
<td>Rnd</td>
<td><a href="http://docs.python.org/library/os.html#os.urandom" target="_blank">os.urandom(<em>n</em>)</a></td>
<td>Returns a pseudo random number</td>
</tr>
<tr>
<td>Round</td>
<td></td>
<td>Returns a number rounded to a specified number of decimal places</td>
</tr>
<tr>
<td>RTrim</td>
<td></td>
<td>Strips trailing spaces from string</td>
</tr>
<tr>
<td>SaveKey</td>
<td></td>
<td>Saves entire key (including sub keys and values)</td>
</tr>
<tr>
<td>SendKeys</td>
<td></td>
<td>Sends keystrokes to the focused application</td>
</tr>
<tr>
<td>SetConsole</td>
<td></td>
<td>Change display mode of console</td>
</tr>
<tr>
<td>SetDefaultPrinter</td>
<td></td>
<td>Sets the default printer</td>
</tr>
<tr>
<td>SetFileAttr</td>
<td></td>
<td>Sets attributes of a file</td>
</tr>
<tr>
<td>SetFocus</td>
<td></td>
<td>Sets focus to a specific application</td>
</tr>
<tr>
<td>SetOption</td>
<td></td>
<td>Enables/disables global settings of the interpreter</td>
</tr>
<tr>
<td>SetSystemState</td>
<td></td>
<td>Changes the (power) state of the local system</td>
</tr>
<tr>
<td>SetTitle</td>
<td></td>
<td>Sets the Window title of the current console</td>
</tr>
<tr>
<td>SetWallpaper</td>
<td></td>
<td>Sets the current wallpaper</td>
</tr>
<tr>
<td>ShowProgramGroup</td>
<td></td>
<td>Change display status of a program group</td>
</tr>
<tr>
<td>ShutDown</td>
<td></td>
<td>Shutdown or reboot local or remote system</td>
</tr>
<tr>
<td>SidToName</td>
<td></td>
<td>Translates a Security Identifier (SID) into a name</td>
</tr>
<tr>
<td>Split</td>
<td></td>
<td>Splits a single string into an array given a delimiter</td>
</tr>
<tr>
<td>SRnd</td>
<td></td>
<td>Sets the starting point for generating pseudorandom integers</td>
</tr>
<tr>
<td>Substr</td>
<td></td>
<td>Returns a substring from a string</td>
</tr>
<tr>
<td>Trim</td>
<td></td>
<td>Strips leading and trailing spaces from a string</td>
</tr>
<tr>
<td>Ubound</td>
<td></td>
<td>Returns the largest available subscript for an array</td>
</tr>
<tr>
<td>UCase</td>
<td></td>
<td>Returns string in upper case</td>
</tr>
<tr>
<td>UnloadHive</td>
<td></td>
<td>Unload a registry hive</td>
</tr>
<tr>
<td>Val</td>
<td></td>
<td>Returns the numerical value of a string</td>
</tr>
<tr>
<td>VarType</td>
<td></td>
<td>Returns an integer value indicating the subtype of a variable</td>
</tr>
<tr>
<td>VarTypeName</td>
<td></td>
<td>Returns a string that provides type info. about a variable</td>
</tr>
<tr>
<td>WriteLine</td>
<td></td>
<td>Write a line of text to a file</td>
</tr>
<tr>
<td>WriteProfileString</td>
<td></td>
<td>Write string to an ini-file</td>
</tr>
<tr>
<td>WriteValue</td>
<td></td>
<td>Write single value to registry</td>
</tr>
<tr>
<th style="text-align: center;" colspan="3">Macros</th>
</tr>
<tr>
<td>@Address</td>
<td></td>
<td>Address of the network adapter</td>
</tr>
<tr>
<td>@Build</td>
<td></td>
<td>Build number of the operating system</td>
</tr>
<tr>
<td>@Color</td>
<td></td>
<td>Returns the current console color setting</td>
</tr>
<tr>
<td>@Comment</td>
<td></td>
<td>User comment (Description field in User Manager)</td>
</tr>
<tr>
<td>@CPU</td>
<td></td>
<td>Name of the CPU (e.g.: &laquo;&nbsp;Intel Pentium III&nbsp;&raquo;)</td>
</tr>
<tr>
<td>@CRLF</td>
<td></td>
<td>Returns a carriage-return line-feed combination</td>
</tr>
<tr>
<td>@CSD</td>
<td></td>
<td>CSD information (eg: &laquo;&nbsp;Service Pack 2&#8243;)</td>
</tr>
<tr>
<td>@CurDir</td>
<td></td>
<td>Current directory</td>
</tr>
<tr>
<td>@Date</td>
<td></td>
<td>Date (in the format YYYY/MM/DD)</td>
</tr>
<tr>
<td>@Day</td>
<td></td>
<td>Day of the week (Monday, Tuesday, etc.)</td>
</tr>
<tr>
<td>@Domain</td>
<td></td>
<td>Domain or workgroup the computer belongs to</td>
</tr>
<tr>
<td>@DOS</td>
<td></td>
<td>Version of Windows NT</td>
</tr>
<tr>
<td>@Error</td>
<td></td>
<td>Return code of the most recent command or function. A return code of 0 means the command or function was successful. Any other value indicates an error.</td>
</tr>
<tr>
<td>@FullName</td>
<td></td>
<td>Full name of current user</td>
</tr>
<tr>
<td>@HomeDir</td>
<td></td>
<td>Short name of the directory part of home directory</td>
</tr>
<tr>
<td>@HomeDrive</td>
<td></td>
<td>Drive letter of drive containing home directory</td>
</tr>
<tr>
<td>@HomeShr</td>
<td></td>
<td>Server and share name part of home directory</td>
</tr>
<tr>
<td>@HostName</td>
<td></td>
<td>Fully qualified TCP/IP host name (including TCP/IP domain name)</td>
</tr>
<tr>
<td>@InWin</td>
<td></td>
<td>Operating system: 1 = Windows NT; 2 = Windows 9x</td>
</tr>
<tr>
<td>@IPaddress0<br />
 @IPAddress1<br />
 @IPAddress2<br />
 @IPAddress3</td>
<td></td>
<td>TCP/IP address<span style="font-family: Courier New;"><span style="font-size: x-small;"> </span></span></td>
</tr>
<tr>
<td>@KiX</td>
<td></td>
<td>Version of KiXtart</td>
</tr>
<tr>
<td>@LanRoot</td>
<td></td>
<td>Directory where network software resides (usually<em>Systemroot</em>\System32)</td>
</tr>
<tr>
<td>@LDomain</td>
<td></td>
<td>Logon domain</td>
</tr>
<tr>
<td>@LDrive</td>
<td></td>
<td>Drive that is redirected to \\logonserver\NETLOGON</td>
</tr>
<tr>
<td>@LM</td>
<td></td>
<td>Version of network software</td>
</tr>
<tr>
<td>@LogonMode</td>
<td></td>
<td>If 1, indicates that KiXtart assumes to be running during the logon sequence</td>
</tr>
<tr>
<td>@LongHomeDir</td>
<td></td>
<td>Long name of the directory part of home directory</td>
</tr>
<tr>
<td>@LServer</td>
<td></td>
<td>Logon server</td>
</tr>
<tr>
<td>@MaxPWAge</td>
<td></td>
<td>Maximum password age (Note: if passwords are set not to expire, this value is set to ((unsigned long)-1) (or 0xFFFFFFFF in hex). This evaluates to 4294967295 decimal).</td>
</tr>
<tr>
<td>@MDayNo</td>
<td></td>
<td>Day of the month (1-31)</td>
</tr>
<tr>
<td>@MHz</td>
<td></td>
<td>Approximation of the CPU speed (not available on Windows 9x)</td>
</tr>
<tr>
<td>@MonthNo</td>
<td></td>
<td>Month number, beginning with January (1-12)</td>
</tr>
<tr>
<td>@Month</td>
<td></td>
<td>Name of the month</td>
</tr>
<tr>
<td>@MSecs</td>
<td></td>
<td>Milliseconds part of the current time</td>
</tr>
<tr>
<td>@OnWoW64</td>
<td></td>
<td>Returns a 1 if KiXtart is running in the WOW64 environment</td>
</tr>
<tr>
<td>@PID</td>
<td></td>
<td>Process ID of KiXtart (wkix32.exe or kix32.exe)</td>
</tr>
<tr>
<td>@PrimaryGroup</td>
<td></td>
<td>Current user&#8217;s primary group</td>
</tr>
<tr>
<td>@Priv</td>
<td></td>
<td>User&#8217;s privilege level (GUEST, USER, ADMIN)</td>
</tr>
<tr>
<td>@ProductSuite</td>
<td></td>
<td>OS Suite</td>
</tr>
<tr>
<td>@ProductType</td>
<td></td>
<td>OS type</td>
</tr>
<tr>
<td>@PWAge</td>
<td></td>
<td>Password age</td>
</tr>
<tr>
<td>@RAS</td>
<td></td>
<td>Number of active Remote Access Service (RAS) connections</td>
</tr>
<tr>
<td>@Result</td>
<td></td>
<td>Returns command-specific information (e.g.: the drive letter of an automatic redirection command)</td>
</tr>
<tr>
<td>@RServer</td>
<td></td>
<td>KXRPC server used for the current session</td>
</tr>
<tr>
<td>@ScriptDir</td>
<td></td>
<td>Directory of current script</td>
</tr>
<tr>
<td>@ScriptExe</td>
<td></td>
<td>Indicates the version of the KiXtart executable</td>
</tr>
<tr>
<td>@ScriptName</td>
<td></td>
<td>Name of the current script</td>
</tr>
<tr>
<td>@SError</td>
<td></td>
<td>Error text corresponding with @ERROR</td>
</tr>
<tr>
<td>@SID</td>
<td></td>
<td>Current user&#8217;s Windows NT Security Identifier (SID)</td>
</tr>
<tr>
<td>@Site</td>
<td></td>
<td>Name of the site in which the system resides</td>
</tr>
<tr>
<td>@StartDir</td>
<td></td>
<td>Directory from which KiXtart was started</td>
</tr>
<tr>
<td>@SysLang</td>
<td></td>
<td>Full English name of the language of the operating system specified in the format defined by ISO Standard 639. (example : &ldquo;0413Dutch (Standard)&rdquo;).</td>
</tr>
<tr>
<td>@Ticks</td>
<td></td>
<td>Number of milliseconds elapsed since computer was last booted</td>
</tr>
<tr>
<td>@Time</td>
<td></td>
<td>Current time (in the format HH:MM:SS)</td>
</tr>
<tr>
<td>@TsSession</td>
<td></td>
<td>This macro will return a 1 if KiXtart is running in a Terminal Server session</td>
</tr>
<tr>
<td>@UserID</td>
<td></td>
<td>Current user&#8217;s Windows NT user ID</td>
</tr>
<tr>
<td>@UserLang</td>
<td></td>
<td>Full English name of the language selected by the current user specified in the format defined by ISO Standard 639. (example : &ldquo;0413Dutch (Standard)&rdquo;).</td>
</tr>
<tr>
<td>@WDayNo</td>
<td></td>
<td>Days since Sunday (1 &ndash; 7)</td>
</tr>
<tr>
<td>@Wksta</td>
<td></td>
<td>Computer name</td>
</tr>
<tr>
<td>@WUserID</td>
<td></td>
<td>Current user&#8217;s Windows user ID</td>
</tr>
<tr>
<td>@YDayNo</td>
<td></td>
<td>Days since January 1 (1 &ndash; 365)</td>
</tr>
<tr>
<td>@Year</td>
<td></td>
<td>Current year</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.cyann.net/2010/02/12/kixtart-functions-to-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>De KiXtart à Python: les commandes</title>
		<link>http://www.cyann.net/2010/02/09/kixtart-commands-to-python/</link>
		<comments>http://www.cyann.net/2010/02/09/kixtart-commands-to-python/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 13:29:26 +0000</pubDate>
		<dc:creator>Flavien</dc:creator>
				<category><![CDATA[développement]]></category>
		<category><![CDATA[kixtart]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.cyann.net/?p=650</guid>
		<description><![CDATA[Petit guide en anglais de traduction de scripts KiXtart vers Python.

Commands
Functions
Macros


Commands



KiXtart
Python equivalent 


[cci lang="kixtart"]?[/cci]
[cci lang="python"]print()[/cci]


[cci lang="kixtart"];[/cci]
[cci lang="python"]#[/cci]


[cci lang="kixtart"]Call[/cci]
[cci lang="python"]subprocess.Popen([sys.executable, "script.py"])[/cci]


[cci lang="kixtart"]CD[/cci]
[cci lang="python"]os.chdir()[/cci]


[cci lang="kixtart"]Copy[/cci] 



[cci lang="kixtart"]Debug[/cci]
[cci lang="python"]pdb.set_trace()[/cci]


[cci lang="kixtart"]Del[/cci]



[cci lang="kixtart"]Dim[/cci]



[cci lang="kixtart"]Do Until[/cci]



[cci lang="kixtart"]Exit[/cci]



[cci lang="kixtart"]FlushKb[/cci]



[cci lang="kixtart"]For Each[/cci]



[cci lang="kixtart"]For Next[/cci]



[cci lang="kixtart"]Function[/cci]
[cci lang="python"]def[/cci]


[cci lang="kixtart"]Get[/cci]



[cci lang="kixtart"]GetS[/cci]



[cci lang="kixtart"]Global[/cci]



[cci lang="kixtart"]Go[/cci]
[cci  lang="python"]os.chdir()[/cci]


[cci lang="kixtart"]GoSub[/cci]



[cci lang="kixtart"]GoTo[/cci]



[cci lang="kixtart"]If Else EndIf[/cci]
[cci  lang="python"]if &#8230;:
    [...]]]></description>
			<content:encoded><![CDATA[<p>Petit guide en anglais de traduction de scripts KiXtart vers Python.</p>
<ul>
<li><a href="http://www.cyann.net/2010/02/09/kixtart-commands-to-python/#kixtart-commands">Commands</a></li>
<li><a href="http://www.cyann.net/2010/02/12/kixtart-functions-to-python/#kixtart-functions">Functions</a></li>
<li><a href="http://www.cyann.net/2010/02/12/kixtart-macros-to-python/#kixtart-macros">Macros</a></li>
</ul>
<p><span id="more-650"></span></p>
<h2><a name="kixtart-commands"></a>Commands</h2>
<table style="border-collapse: collapse;" border="1">
<tbody>
<tr>
<th>KiXtart</th>
<th>Python equivalent </th>
</tr>
<tr>
<td><a title="Display output to console">[cci lang="kixtart"]?[/cci]</a></td>
<td><a href="http://docs.python.org/library/functions.html#print">[cci lang="python"]print()[/cci]</a></td>
</tr>
<tr>
<td title="Comments">[cci lang="kixtart"];[/cci]</td>
<td><a href="http://docs.python.org/reference/lexical_analysis.html#comments">[cci lang="python"]#[/cci]</a></td>
</tr>
<tr>
<td title="Execute a separate script">[cci lang="kixtart"]Call[/cci]</td>
<td><a href="http://docs.python.org/library/subprocess.html">[cci lang="python"]subprocess.Popen([sys.executable, "script.py"])[/cci]</a></td>
</tr>
<tr>
<td title="Change current directory">[cci lang="kixtart"]CD[/cci]</td>
<td><a href="http://docs.python.org/library/os.html#os.chdir">[cci lang="python"]os.chdir()[/cci]</a></td>
</tr>
<tr>
<td title="Copy files">[cci lang="kixtart"]Copy[/cci]<strong> </strong></td>
<td></td>
</tr>
<tr>
<td title="Enables/disables debug mode during runtime">[cci lang="kixtart"]Debug[/cci]</td>
<td><a href="http://docs.python.org/library/pdb.html">[cci lang="python"]pdb.set_trace()[/cci]</a></td>
</tr>
<tr>
<td title="Delete files">[cci lang="kixtart"]Del[/cci]</td>
<td></td>
</tr>
<tr>
<td title="Dimension a variable">[cci lang="kixtart"]Dim[/cci]</td>
<td></td>
</tr>
<tr>
<td title="Loop the loop">[cci lang="kixtart"]Do Until[/cci]</td>
<td></td>
</tr>
<tr>
<td title="Exit current script/function, optionally with return code">[cci lang="kixtart"]Exit[/cci]</td>
<td></td>
</tr>
<tr>
<td title="Remove any keystrokes from keyboard buffer">[cci lang="kixtart"]FlushKb[/cci]</td>
<td></td>
</tr>
<tr>
<td>[cci lang="kixtart"]For Each[/cci]</td>
<td></td>
</tr>
<tr>
<td title="Control statements to conditionally execute a set of statements">[cci lang="kixtart"]For Next[/cci]</td>
<td></td>
</tr>
<tr>
<td title="Definition of user defined functions">[cci lang="kixtart"]Function[/cci]</td>
<td><a href="http://docs.python.org/reference/compound_stmts.html#function-definitions">[cci lang="python"]def[/cci]</a></td>
</tr>
<tr>
<td title="Wait for single keystroke">[cci lang="kixtart"]Get[/cci]</td>
<td></td>
</tr>
<tr>
<td title="Accept a string of chars">[cci lang="kixtart"]GetS[/cci]</td>
<td></td>
</tr>
<tr>
<td title="Declare one of more global variables">[cci lang="kixtart"]Global[/cci]</td>
<td></td>
</tr>
<tr>
<td title="Change current drive">[cci lang="kixtart"]Go[/cci]</td>
<td><a href="http://docs.python.org/library/os.html#os.chdir">[cci  lang="python"]os.chdir()[/cci]</a></td>
</tr>
<tr>
<td title="Call subroutine at label">[cci lang="kixtart"]GoSub[/cci]</td>
<td></td>
</tr>
<tr>
<td title="Jump to label">[cci lang="kixtart"]GoTo[/cci]</td>
<td></td>
</tr>
<tr>
<td title="Standard if/else construct">[cci lang="kixtart"]If Else EndIf[/cci]</td>
<td><a href="http://docs.python.org/reference/compound_stmts.html#the-if-statement">[cci  lang="python"]if &#8230;:<br />
    elif &#8230;:<br />
    else &#8230;:[/cci]</a></td>
</tr>
<tr>
<td title="Combines multiple=">[cci lang="kixtart"]Include[/cci]</td>
<td></td>
</tr>
<tr>
<td title="Create new directory">[cci lang="kixtart"]MD[/cci]</td>
<td></td>
</tr>
<tr>
<td title="Moves files and renames files and directories">[cci lang="kixtart"]Move[/cci]</td>
<td></td>
</tr>
<tr>
<td title="Exit script, optionally with an exitcode">[cci lang="kixtart"]Quit[/cci]</td>
<td></td>
</tr>
<tr>
<td title="Remove directory">[cci lang="kixtart"]RD[/cci]</td>
<td><a href="http://docs.python.org/library/shutil.html#shutil.rmtree">[cci lang="python"]shutil.rmtree()[/cci]</a></td>
</tr>
<tr>
<td title="Re-declares arrays">[cci lang="kixtart"]Redim[/cci]</td>
<td></td>
</tr>
<tr>
<td title="Exits a subroutine or script">[cci lang="kixtart"]Return[/cci]</td>
<td></td>
</tr>
<tr>
<td title="WinExec's a program (script continues)">[cci lang="kixtart"]Run[/cci]</td>
<td></td>
</tr>
<tr>
<td title="'CASE' statement">[cci lang="kixtart"]Select Case EndSelect[/cci]</td>
<td></td>
</tr>
<tr>
<td title="Sets variables in environment of CURRENT_USER">[cci lang="kixtart"]Set[/cci]</td>
<td></td>
</tr>
<tr>
<td title="Sets variables in local environment">[cci lang="kixtart"]SetL[/cci]</td>
<td></td>
</tr>
<tr>
<td title="Sets variables in environment of LOCAL_MACHINE">[cci lang="kixtart"]SetM[/cci]</td>
<td></td>
</tr>
<tr>
<td title="Synchronize local time with time on server">[cci lang="kixtart"]SetTime[/cci]</td>
<td></td>
</tr>
<tr>
<td title="Executes a program, and waits for completion">[cci lang="kixtart"]Shell[/cci]</td>
<td></td>
</tr>
<tr>
<td title="Suspends script for xx seconds">[cci lang="kixtart"]Sleep[/cci]</td>
<td></td>
</tr>
<tr>
<td title="(Dis-)connect to/from network share">[cci lang="kixtart"]Use[/cci]</td>
<td></td>
</tr>
<tr>
<td title="Loop the loop">[cci lang="kixtart"]While Loop[/cci]</td>
<td></td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.cyann.net/2010/02/09/kixtart-commands-to-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Live du Paléo: Yodelice</title>
		<link>http://www.cyann.net/2009/07/22/live-du-paleo-yodelice/</link>
		<comments>http://www.cyann.net/2009/07/22/live-du-paleo-yodelice/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 16:17:04 +0000</pubDate>
		<dc:creator>Flavien</dc:creator>
				<category><![CDATA[général]]></category>

		<guid isPermaLink="false">http://www.cyann.net/?p=638</guid>
		<description><![CDATA[ 
Posted by Wordmobi
]]></description>
			<content:encoded><![CDATA[<p><img border="0" class="aligncenter" src="http://www.cyann.net/wp-content/uploads/2009/07/22072009197-001.jpg" alt="22072009197-001.jpg" width="478" height="403" /> </p>
<p>Posted by <a href="http://wordmobi.googlecode.com">Wordmobi</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyann.net/2009/07/22/live-du-paleo-yodelice/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Live du Paléo</title>
		<link>http://www.cyann.net/2009/07/21/live-du-paleo/</link>
		<comments>http://www.cyann.net/2009/07/21/live-du-paleo/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 19:54:11 +0000</pubDate>
		<dc:creator>Flavien</dc:creator>
				<category><![CDATA[général]]></category>

		<guid isPermaLink="false">http://www.cyann.net/?p=635</guid>
		<description><![CDATA[Kaiser Chiefs  
Posted by Wordmobi
]]></description>
			<content:encoded><![CDATA[<p>Kaiser Chiefs <img border="0" class="aligncenter" src="http://www.cyann.net/wp-content/uploads/2009/07/21072009195.jpg" alt="21072009195.jpg" /> </p>
<p>Posted by <a href="http://wordmobi.googlecode.com">Wordmobi</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyann.net/2009/07/21/live-du-paleo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trop d&#8217;emails&#8230;</title>
		<link>http://www.cyann.net/2009/07/09/trop-demails/</link>
		<comments>http://www.cyann.net/2009/07/09/trop-demails/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 20:26:03 +0000</pubDate>
		<dc:creator>Flavien</dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mail.app]]></category>

		<guid isPermaLink="false">http://www.cyann.net/?p=617</guid>
		<description><![CDATA[
Oui, j&#8217;ai beaucoup de fans!
]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-618" title="mailapp-4294966048-messages" src="http://www.cyann.net/wp-content/uploads/2009/07/mailapp-4294966048-messages.png" alt="mailapp-4294966048-messages" width="317" height="36" /></p>
<p>Oui, j&#8217;ai beaucoup de fans!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyann.net/2009/07/09/trop-demails/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Pub: Radio numérique</title>
		<link>http://www.cyann.net/2009/06/22/pub-radio-numerique/</link>
		<comments>http://www.cyann.net/2009/06/22/pub-radio-numerique/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 12:25:16 +0000</pubDate>
		<dc:creator>Flavien</dc:creator>
				<category><![CDATA[humour]]></category>
		<category><![CDATA[jeu]]></category>

		<guid isPermaLink="false">http://www.cyann.net/?p=605</guid>
		<description><![CDATA[Vu récemment à Genève (à 2 pas du Bateau Genève) une pub intrigante en binaire:

Pas compliquer de trouver la réponse:
RADIONUMERIQUE

Et la confirmation sur le site:

Site qui permet aussi de s&#8217;amuser un peu:

]]></description>
			<content:encoded><![CDATA[<p>Vu récemment à Genève (à 2 pas du Bateau Genève) une pub intrigante en binaire:</p>
<p><img class="alignnone size-full wp-image-606" title="pub_radio_numerique_500" src="http://www.cyann.net/wp-content/uploads/2009/06/pub_radio_numerique_500.jpg" alt="pub_radio_numerique_500" width="500" height="375" /></p>
<p>Pas compliquer de trouver la réponse:</p>
<blockquote><p>RADIONUMERIQUE</p>
</blockquote>
<p>Et la confirmation sur <a href="http://www.broadcast.ch/portal.aspx?pid=111&amp;lang=fr">le site</a>:</p>
<p><a href="http://www.broadcast.ch/tools/BynaryCalculator.ashx?text=01010010%2001000001%2001000100%2001001001%2001001111%2001001110%2001010101%2001001101%2001000101%2001010010%2001001001%2001010001%2001010101%2001000101"><img class="alignnone size-full wp-image-607" title="01010010 01000001 01000100 01001001 01001111 01001110 01010101 01001101 01000101 01010010 01001001 01010001 01010101 01000101" src="http://www.cyann.net/wp-content/uploads/2009/06/pub_radio_numerique_binaire.jpg" alt="pub_radio_numerique_binaire" width="500" height="100" /></a></p>
<p>Site qui permet aussi de s&#8217;amuser un peu:</p>
<p><a href="http://www.broadcast.ch/tools/BynaryCalculator.ashx?text=RADIO%20NUMERIQUE%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20hacker%20dans%20l%27air...%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20!@*~%3CNO%20CARRIER%3E"><img class="alignnone size-full wp-image-608" title="pub_radio_numerique_hacker" src="http://www.cyann.net/wp-content/uploads/2009/06/pub_radio_numerique_hacker.jpg" alt="pub_radio_numerique_hacker" width="500" height="100" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyann.net/2009/06/22/pub-radio-numerique/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PayPal: pour acceptez les paiements par carte</title>
		<link>http://www.cyann.net/2009/06/05/paypal-pour-acceptez-les-paiements-par-carte/</link>
		<comments>http://www.cyann.net/2009/06/05/paypal-pour-acceptez-les-paiements-par-carte/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 14:46:02 +0000</pubDate>
		<dc:creator>Flavien</dc:creator>
				<category><![CDATA[internet]]></category>

		<guid isPermaLink="false">http://www.cyann.net/?p=600</guid>
		<description><![CDATA[


]]></description>
			<content:encoded><![CDATA[<p><!-- Begin PayPal Logo --></p>
<p><a href="https://www.paypal.com/ch/mrb/pal=Z4QUM2CLUAC2G" target="_blank"><img src="http://images.paypal.com/fr_FR/i/bnr/paypal_mrb_banner.gif" border="0" alt="Ouvrez un compte PayPal et acceptez dès aujourd'hui les paiements approvisionnés par carte." /></a></p>
<p><!-- End PayPal Logo --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyann.net/2009/06/05/paypal-pour-acceptez-les-paiements-par-carte/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installer un scanner Epson Perfection 2480 Photo sur Mac OS X</title>
		<link>http://www.cyann.net/2009/04/13/installer-scanner-epson-perfection-2480-photo-mac-osx/</link>
		<comments>http://www.cyann.net/2009/04/13/installer-scanner-epson-perfection-2480-photo-mac-osx/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 11:16:10 +0000</pubDate>
		<dc:creator>Flavien</dc:creator>
				<category><![CDATA[matériel]]></category>
		<category><![CDATA[photos]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://www.cyann.net/?p=586</guid>
		<description><![CDATA[Lundi matin, soleil. Et résolution de résolution du moment: faire de l&#8217;OCR sur mon Mac. Autrement dit: scanner mes documents en PDF avec reconnaissance du texte, ceci afin de pouvoir les retrouver facilement. Il faut donc un ordi, un logiciel d&#8217;OCR et un scanner. Et il faut que le scanner fonctionne sur son système, le [...]]]></description>
			<content:encoded><![CDATA[<p>Lundi matin, soleil. Et résolution de résolution du moment: faire de l&#8217;OCR sur mon Mac. Autrement dit: scanner mes documents en PDF avec reconnaissance du texte, ceci afin de pouvoir les retrouver facilement. Il faut donc un ordi, un logiciel d&#8217;OCR et un scanner. Et il faut que le scanner fonctionne sur son système, le Mac. Bon, autant le dire tout de suite: le driver Epson ne fonctionne pas car il est émulé sous Rosetta. Ce qui veut dire qu&#8217;il fonctionne en théorie, mais pas en pratique. Et comme se scanner est relativement vieux je suppose qu&#8217;on ne verra jamais un driver Intel natif fournit par Epson.</p>
<p>Mais grâce à la perspicacité des utilisateurs Linux une librairie de gestion de scanners, SANE, est disponible, et aussi sur Mac. SANE contient des centaines de drivers, y compris celui de mon scanner oublié par l&#8217;obsolescence programmée du consumérisme informatique. J&#8217;avais déjà essayé d&#8217;installer SANE il y a quelques temps, mais cela ne marchais pas et ma fainéantise me fut simplement oublier SANE au profit d&#8217;aller-retours dans une machine virtuelle XP&#8230; Heureusement que Pâques Man est arrivé avec ses quelques jours de vacances méritées, il était donc temps de s&#8217;attaquer au vrai problème!</p>
<p>Pour installer SANE, il suffit d&#8217;aller sur cette page http://www.ellert.se/twain-sane/ et de télecharger puis d&#8217;installer dans l&#8217;ordre:</p>
<ul>
<li>libusb.pkg</li>
<li>sane-backends.pkg</li>
<li>TWAIN-SANE-Interface.pkg</li>
<li>SANE-Preference-Pane.pkg</li>
</ul>
<p>Là normalement on se dit: &laquo;&nbsp;OK, c&#8217;est facile, pourquoi tant de blabla pour ça?&nbsp;&raquo;</p>
<p>Et bien non, ce n&#8217;est que le début. Il faut ensuite dire à SANE quel modèle de scanner on a, et quelques autres détails&#8230;</p>
<p>Pour commencer, le driver SANE de l&#8217;Epson Perfection 2480 n&#8217;est pas epson ou epson2, mais snapscan. On va donc dans les <strong>Préférences Système</strong> &gt; <strong>SANE</strong> et on sélectionne <strong>snapscan</strong> dans les drivers de SANE. Mais c&#8217;est pas fini.</p>
<p>Ce scanner Epson a besoin d&#8217;un firmware, petit bout de logiciel qui doit lui être envoyé chaque fois qu&#8217;on l&#8217;utilise. Il faut donc le trouver sur internet, le copier dans un répertoire spécifique et indiquer à SANE où il se trouve. Une petite recherche nous donne ceci:</p>
<p><a href="http://luc.byhet.free.fr/epson2480/esfw41.bin" target="_blank">http://luc.byhet.free.fr/epson2480/esfw41.bin</a></p>
<p>Donc télécharger ce fichier et le mettre dans <strong>/usr/local/share/sane/snapscan</strong>. C&#8217;est plus facile depuis le Finder, en sélectionnant le menu <strong>Aller</strong> &gt; <strong>Aller au dossier&#8230;</strong> et copier/coller ce chemin.</p>
<p>Ensuite on va indiquer à SANE que c&#8217;est le firmware du scanner. Dans <strong>Préférences Système</strong> &gt; <strong>SANE</strong> on sélectionne <strong>snapscan</strong> et ensuite on clique sur le bouton dans la colonne <strong>Régler</strong>. Un fichier texte et il suffit de modifier au début cette ligne:</p>
<p>firmware /usr/local/share/sane/snapscan/esfw41.bin</p>
<p>Il faut quitter tous les panneaux de configuration pour être sûr que tous les paramètres soient bien sauvés.</p>
<p><br class="spacer_" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyann.net/2009/04/13/installer-scanner-epson-perfection-2480-photo-mac-osx/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Cat at cat</title>
		<link>http://www.cyann.net/2009/04/03/cat-at-cat/</link>
		<comments>http://www.cyann.net/2009/04/03/cat-at-cat/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 09:12:28 +0000</pubDate>
		<dc:creator>Flavien</dc:creator>
				<category><![CDATA[général]]></category>

		<guid isPermaLink="false">http://www.cyann.net/2009/04/03/cat-at-cat/</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.cyann.net/wp-content/uploads/2009/04/cat_at_cat.jpg"><img src="http://www.cyann.net/wp-content/uploads/2009/04/cat_at_cat-500x375.jpg" alt="cat_at_cat" title="cat_at_cat" width="500" height="375" class="alignnone size-medium wp-image-584" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyann.net/2009/04/03/cat-at-cat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
