closing firefox tab window

Using The Voice Computer add-on for Dragon NaturallySpeaking and WSR
Post Reply
User avatar
BryanS
Posts: 18
Joined: Fri Jan 13, 2017 5:31 am
Contact:

closing firefox tab window

Post by BryanS » Fri Feb 28, 2020 6:28 am

I find that when try to close a firefox tabbed window by stating the intag# associated with the X to close it, the curser ends up about an inch or so to the left of the intag #. I can use "move mouse right" to get there, but, it would be a smoother experience if the curser went to the intag# direct. Any way to do that?

User avatar
RonK
Posts: 866
Joined: Wed Jan 06, 2010 10:31 pm
Contact:

Re: closing firefox tab window

Post by RonK » Fri Feb 28, 2020 9:40 am

I seldom use Firefox but I'm not having this issue.

Try the 'Close Tab' command...

User avatar
Speech1965
Posts: 170
Joined: Thu Jan 28, 2016 4:56 am
Location: The Netherlands
Contact:

Re: closing firefox tab window

Post by Speech1965 » Fri Feb 28, 2020 7:26 pm

This appears to be a small oddity in Firefox particularly if you are using custom Windows scaling of 125 % and up. Firefox obviously uses some nonstandard controls compared to most other browsers like Chrome, IE or Edge. Speaking of which, it would probably be a better idea to use the latest Edge version https://www.microsoft.com/en-us/edge which will be intagged just right.

However, there's an easy workaround if you want to use Firefox. Since VoiceComputer effectively activates the target tab you could use an additional Dragon voice command right after the <number> to close it:

Close Bar

SendKeys "{Ctrl+w}"

This is a DVC voice command which is much faster than the Advanced Scripting which would be:

SendKeys "^w"

(Notice the word "Bar" instead of "Tab" which is recognized much better by Dragon).

You can read more about the differences between DVC and Advanced Scripting here:

http://www.speechproductivity.eu/dvcvsas/?page=1

And here's an Easy Guide to create DVC commands yourself:

http://www.speechproductivity.eu/easyguide.html


Getting a bit more complex. You could also directly integrate this action in the VC displaynumbers.xml by adding the following (but be very sure to first copy the original file to a safe location so you can always restore it and restart speech in case of problems!):

<command type="vp-script">
<name>
<![CDATA[close <1to300cf>]]>
</name>
<actions>
<overlaymouseaction action="move" numbers="_value1"/>
<wait ms="1600"/>
<sendkeys mode="sync" string="^w"/>
</actions>
</command>


Voice command examples would be:

"Close 3", "Close 6" where <number> would be a specific tab.

This would also work effectively in Edge, Chrome and several other browsers.

Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests