Comments (3)
Interesting use case. Currently aenea doesn't provide a proxy for the Window
class. This was probably skipped as each platform (windows, x11, osx) will have different properties that would somehow need to be unified.
That being said, the client does have access to this information. When dragon processes an utterance on the client it needs context from the server to decide what action to take. This context is gathered via a call to the get_context
RPC on the server. If you're interested to see how this is done take a look here:
https://github.com/dictation-toolbox/aenea/blob/master/client/aenea/proxy_contexts.py
The default x11 server implementation grabs context information here:
https://github.com/dictation-toolbox/aenea/blob/master/server/linux_x11/x11_xdotool.py#L221
A quick hack for you might be to call aenea.proxy_contexts._get_context()
on the client. A slightly better solution might be to add a log statement to get_context()
on the server and look at server output to get your debug information. Otherwise you should look at solving your problem using aenea's plugin system. A plugin would allow you to make a custom RPC to the server to grab / format context as you please.
Good luck!
from aenea.
Hey, thanks for the reply. I solved this by adding a print statement to the server.
I'm away from the computer, can somebody close this?
Sent from mobile
On 20 Aug 2016, at 9:21 PM, mzizzi [email protected] wrote:
Interesting use case. Currently aenea doesn't provide a proxy for the Window class. This was probably skipped as each platform (windows, x11, osx) will have different properties that would somehow need to be unified.
That being said, the client does have access to this information. When dragon processes an utterance on the client it needs context from the server to decide what action to take. This context is gather via a call to the get_context RPC on the server. If you're interested to see how this is done take a look here:
https://github.com/dictation-toolbox/aenea/blob/master/client/aenea/proxy_contexts.pyThe default x11 server implementation grabs context information here:
https://github.com/dictation-toolbox/aenea/blob/master/server/linux_x11/x11_xdotool.py#L221A quick hack for you might be to call aenea.proxy_contexts._get_context() on the client. A slightly better solution might be to add a log statement to get_context() on the server and look at server output to get your debug information. Otherwise you should look at solving your problem using aenea's plugin system. A plugin would allow you to make a custom RPC to the server to grab / format context as you please.
Good luck!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
from aenea.
It might make sense to add a non _ method to proxy_contexts for getting the context, since we're already getting it and it should be available. Whenever I've needed this in the past, it's been of the form "Is window foo in the foreground" where foo might be a regex or something, so I just used the ProxyAppContext() and then called match() in cilent code.
Breaking window was a deliberate design decision -- Unfortunately the Dragonfly API for it is very MS Windows specific (iirc it also has operations like moving windows that are going to be window manager dependent on linux) and I could not figure out a good way to provide a cross platform implementation as I did for the other Proxy* classes.
from aenea.
Related Issues (20)
- Is there any way to have a rule to match any single word? HOT 6
- Vim - 'escape' key issue when keys chained HOT 5
- Support for accentuated letters is lacking HOT 3
- Client breaks/Getting timeouts when long `Text()` gets executed HOT 3
- Mysterious text gets typed in this grammar HOT 6
- Text('a"b') causes errors in the osx server HOT 2
- dictation client repeats voice entry in a forever loop begun with Shift_L on OSX 10.13.6 HOT 10
- Wayland server HOT 3
- Required version of dragonfly 0.6.5 does not contain 'semicolon' as typeable HOT 18
- Are their instructions on how to get the setup working on a non virtualbox vm? HOT 9
- disable all grammars (or DNS) for 20 seconds HOT 1
- argument of type 'NoneType' is not iterable HOT 1
- Has anyone tried a newer version of dragon (13, 14, etc) HOT 8
- `Aenea: Successfully connected to server.` printed when not connected to server HOT 5
- Windows server needs security token support HOT 2
- Support for Python 3.x HOT 7
- Error when running `aenea/server/linux_x11/test-client.py` HOT 3
- Manually changing contexts HOT 5
- Error when using default choices HOT 2
- ISSUE DELETED
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aenea.