dragonfly-scripts icon indicating copy to clipboard operation
dragonfly-scripts copied to clipboard

Use SCText for window controls

Open nirvdrum opened this issue 11 years ago • 3 comments

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.

nirvdrum avatar Apr 03 '14 21:04 nirvdrum

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?

poppe1219 avatar Apr 04 '14 08:04 poppe1219

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.

nirvdrum avatar Apr 04 '14 13:04 nirvdrum

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.

poppe1219 avatar Apr 05 '14 06:04 poppe1219