dictation-toolbox / dragonfly-scripts

Dragonfly scripts for Dragon NaturallySpeaking
87 stars 30 forks source link

Use SCText for window controls #14

Open nirvdrum opened 10 years ago

nirvdrum commented 10 years ago

I added "HipChat" to my vocabulary in Dragon. When I tried to use dragonfly-scripts's windows controls I discovered that it suffers from the same problem that the formatting functions used to. For example, I would get the following error message:

action.exec: Execution failed: Failed to find window (title='HipChat\\').

I think using SCText here might solve the problem.

poppe1219 commented 10 years ago

Are you're talking about the _winctrl.py module? If so, I don't really use that myself. I brought it in at some point to learn how use it, but I never really got the hang of it. I think it's still completely unmodified. Out of curiosity, what commands do you use in that module?

nirvdrum commented 10 years ago

That is the module I'm talking about. I don't actively use it. I just decided to try to learn more commands yesterday so I started investigating it and came across that problem.

poppe1219 commented 10 years ago

I tried to reproduce the problem, but it's not happening. The code feels unnecessarily complex and hard to follow, but it looks like it's the WinSelectorRule class or get_default_window method where the window name has to be filtered.