![]() Registered Member ![]()
|
Two questions:
I created scenario, I call it "Main_scenario" and set of subscenarios - "windows", "multimedia", "files","volume", "firefox" etc. Every subscenario is turning on only by a special keyword from main scenario. To disactivate scenario I used "File" context and command (I followed bedahrs advice here - viewtopic.php?f=216&t=109853#p258092) So, Simon shows that all scenarios disabled, only "firefox" is active. But if I say command from "window" or "volume" scenario (which are inactive) - Simon still reacts to this command. Another question: Can I use same word for commands in different subscenarios? I have set scenario "Multimedia" with two subscenarios for players "VLC" - which is enabled only if VLC player is active window, and "Amarok" - only active if active window is Amarok. Every subscenario has commands: Play, Pause, Stop, Next, Previous - with own keyboard shortcuts for his player. When I open player window, simon shows that needed scenario activated, when I say command "Play" in player - Simon reacts, shows the command, but player doesn't start playing. Same with every command for players I say (keyboard shortcuts are right) |
![]() Moderator ![]()
|
In Simon 0.4.0 deactivating a scenario will remove it's vocabulary from the active vocabulary. It will, however, not disable the commands. In other words: If another scenario provides the same vocabulary / grammar, then the matching command in a deactivated scenario will still get activated. But yeah, blocking commands from deactivated scenarios from executing would of course be a good idea (I kinda forgot about it as I never had multiple scenarios with overlapping vocabulary during testing). Please open a feature request on the bug tracker. I think this actually answers all your questions as I'm assuming that's also the problem with the seemingly broken commands (probably those are different commands with the same trigger from another scenario). If that's not the case, please let me know. Best regards, Peter |
![]() Registered Member ![]()
|
Yes, my multimedia scenarios commands overlapping, that's why I had to create two scenarios. I fixed them now - I placed vocabulary in multimedia scenario and commands in VLC and Amarok subscenarios, now they work almost as I expected
![]() About inactive scenarios: Window, Volume, Firefox scenarios have different command sets, they do not overlap. But still they work even when scenario is inactive. Can it be because inactive subscenario command inherits active main scenario state somehow? |
![]() Moderator ![]()
|
Hi,
Good!
I'm not aware of any problem there.
Please clarify "work". It would also be helpful if you could describe your scenarios more clearly (which scenario contains which words, grammar and commands).
Probably not. Active constraints cascade down the hierarchy but not inactive ones. If your parent scenario is inactive, the child scenario will be inactive but if your parent scenario is active, your child scenario might still be inactive. Best regards, Peter |
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell