wce

Short for "Windows CE", a package provided with the PocketPC version of eTcl. As the official website has no documentation yet, here's the unofficial one, started by RS. SIP below is the Stylus Input Pad, where various input methods can be used in the lower third of the screen I prefer the keyboard of course. EH actually, from Microsoft terminology, SIP stands for Software Input Panel

 wce option arg...
  • wce framebuffer window - returns "GAPI extension not available" :)
  • wce fullscreen
  • wce hotkey
  • wce menuheight - returns 26 here
  • wce normalscreen
  • wce power ?int? - reports whether display is on or off, or with an integer, turns it on (1) or off (0)
  • wce sipbuttonoff
  • wce sipbuttonon
  • wce siphide - withdraw the stylus input pad
  • wce sipinfo - returns {0 26 240 214}, or ..320 when SIP is hidden
  • wce sipshow - bring up stylus input pad
  • wce tapandhold window <off|auto|on>
  • wce inputmode window <off|spell|ambiguous|numbers|text>

A tiny demo shows that wce power works, and eTcl runs on even on a powered-off machine:

   after 10000 {wce power 0}; after 20000 {wce power 1}

will turn off the screen after 10 seconds, and on again after another 10.

EH 2006-01-23: A draft is available for documentation http://www.evolane.com/software/etcl/wce.html (together with http://www.evolane.com/software/etcl/index.html for more general references). Wce is in very early stage. It aims to provide access to more native functions. As a consequence, developers should consider interface may change in the future, to make it more consistent, or to reflect users recommendations. Let me know what you would like to see in it.

RS would love to have wce play filename to play a .wav file :^) EH Support for playing audio file is not Windows Mobile specific, so it hasn't been added to wce package. Instead, a specific multi-platform package called evodio, which allows eTcl to play sound file all a large variety of platforms (linux, win32, wince, MacOSX) from a simple common Tcl API.