[as-devel] Window Tags
Derek Wyatt (derek@scar.utoronto.ca)
Fri, 2 Jul 1999 00:59:56 -0400 (EDT)
Hi there...
On the quest to integrate speech recognition i have come across a snag. I
saw this one a mile away, but i figured i may as well toss it out here and
see what you guys think.
In order to make the manipulation of windows actually useful, they are
going to need a vocal tag associated with them. As an example, suppose we
have launched netscape. Some time down the road we are going to want to
focus that window, resize it, raise it, etc... The most intuative way i
can think of to do this is to have a tag associated with it so that one
could say "Focus netscape". After the window is focused then one could
continue with "Raise", or "Lower" or "Move 0 0", etc etc...
Now, obviously there was no provision for this originally.. there was no
need. So the question is, what is the best way to handle this?
If there is a new window created using the voice package there will be an
assignment since the config file will demand this. However, if something
is launched from the wharf, we can get the windows listed from AS but a
tag wouldn't exist. Now, one could be assigned by the voice package.
This isn't ideal, but workable. The real problem follows....
In this scheme, AS and the voice module would have to keep their own lists
of what windows exist. Also, not ideal. If a window is created without
voice then voice will need to know about it somehow. if a window that
voice knows about is killed without voice then there will be an
inconsitency that voice needs to correct.
This could be helped if there was a way for AS to inform a module when a
window is created or destroyed. Some sort of callback routine accessed
through the pipe would be nice. When a window is killed the callback
kicks in and the window can be removed from the list, and when a window is
added, the callback for that can do what is necessary.
I didn't see any functionality that would permit this. Am i missing
something? Or is there someway that this could happen? I could do a
timed poll of the AS window list to update the voice list at regular
intervals. This would be nasty though.
Oh well... i'm not at this point yet anyways... i'm just working on
implementing launches for now. But any thoughts would be appreciated.
Cheers,
D
-----------------------------------------------------------------------
Derek Quinn Wyatt | Christian : I will pray for you.
Unix Admin / Programmer | Atheist : Then I will think for the
derek@scar.utoronto.ca | both of us.
-----------------------------------------------------------------------