Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

eTcl on SMT5600 Smartphone?

3 views
Skip to first unread message

goo...@bitscience.com

unread,
Apr 20, 2006, 10:02:58 PM4/20/06
to
I'm trying to run eTcl on the SMT5600 Smartphone. It runs and loads
applications fine, but there is no way to use the application (not
touch sensitive and no mouse). I ran the suggestions here
(http://wiki.tcl.tk/1401) in the hopes of uncovering the key codes for
the "joy stick" on the device, but came up empty.

Any ideas on how to find and bind that joy stick to do something useful
with Tcl/Tk?

Thanks!

Eric Hassold

unread,
Apr 21, 2006, 11:45:10 AM4/21/06
to
goo...@bitscience.com wrote:
> I'm trying to run eTcl on the SMT5600 Smartphone. It runs and loads
> applications fine, but there is no way to use the application (not
> touch sensitive and no mouse). I ran the suggestions here
> (http://wiki.tcl.tk/1401) in the hopes of uncovering the key codes for
> the "joy stick" on the device, but came up empty.
>

First, let's check eTcl understand your hardware setup: start eTcl with
no argument to run in console mode (e.g. from shortcut in Start menu),
and try to enter some text with numpad, and move cursor with joypad.
Normally, Joypad hotkeys are automatically bind to Up/Down/Left/Right
keys. I've just double-checked it again on 2 smartphone devices I have
available for testing, and it works fine (tested with eTcl 1.0-rc1, but
nothing related to key bindings changed recently).

> Any ideas on how to find and bind that joy stick to do something useful
> with Tcl/Tk?

If previous test works, here are some hints to consider when programming
applications targeting smartphone devices:
- get sure which window has focus, and eventually force it. Windows
management is very specific on smartphone (even different than
PocketPC), so using "focus" and "raise" may help
- While keypress/keyrelease events are processed the usual way by
O.S., hotkeys are managed in a quite different way by WinCE (joypad are
hotkeys). Events are sent to active menubar, not to window. eTcl takes
care of forwarding those hotkeys message as normal key events to window
having the focus. But you still have to create a menubar to receive
them, or they might be received by console instead
- For lower level processing of hotkeys, or if your hardware use some
uncommon hotkey mapping, you may look at the wce extension, which is of
course part of eTcl:
http://www.evolane.com/software/etcl/wce.html

Hope this will help you do lot of "useful things with Tcl/Tk" ;-)

Eric

-----
Eric Hassold
Evolane - http://www.evolane.com/

goo...@bitscience.com

unread,
Apr 21, 2006, 9:20:34 PM4/21/06
to
Eric - Great! Thanks so much!!!

0 new messages