Inspecting UI state / windows /controls on Symbian

On Win32 and other windowing systems you can walk the window tree and ask windows for their type, state, contents etc. On Symbian there is no such built-in introspection.

However, it is possible to get access to a lot of information with enough hacks:

  • Use a FEP so your code gets loaded into all apps
  • Use various methods (control stack, window tree, container structure) to find out about windows and controls
  • Detect/Guess/hardcode the control class and use the native methods to ask it for contents

http://github.com/mikaraento/tts has a complete example. It’s the code from a project I did for a client that refused to pay in the end. Enjoy.

(note that the code is by no means complete and will for example crash on FP2 AFAIK)

This entry was posted in Symbian. Bookmark the permalink.

Comments are closed.