2

I'm a heavy speech recognition user, due to issues with my hands causing much pain. I've been trying to get a command written for Dragon that will launch the Command Prompt in the currently active Windows Explorer window, but can't seem to get it right.

I own the v14 Pro version of Dragon, I also have Vocola / Natlink, and Unimacro installed.

What I have tried so far is creating a custom step by step command that launches command prompt with the start location set to %~dp0

However, that seems to merely launch the cmd with my desktop directory, I'm not sure what's going on there.

I'm not very knowledgeable in the realms of VBScripting, so I've not tried that, now am I certain how to accomplish it with Vocola. I'll continue doing research on this, but in hoping someone here may be able to shorten my search.

2 Answers2

1

I suggest you create a step-by-step command that does this in Windows Explorer:

  1. Press Alt-d (to go to the Address Bar). Your shortcut may be different depending on the language or version of Windows (Keyboard shortcut for the Windows Explorer address bar). Alt-e for German.
  2. Type cmd, then press enter.

This will open the Command Prompt in the directory of the current window.

It's a GUI script. It relies on keyboard shortcuts. It profits from the fact that Alt-d will jump to the Address Bar of Windows Explorer.

There may be more elegant, scriptable solutions that rely on identifying the current path from the window title, you may want to ask on a specialized speech recognition forum for someone to help you with that.

(Inspired by this answer on StackOverflow: https://stackoverflow.com/a/11244240.)

1

Here is the equivalent in advanced scripting that I use:

Sub Main
    SendKeys "%d"
    Wait(0.1)
    SendKeys "cmd"
    Wait(0.1)
    SendKeys "{ENTER}"
End Sub

enter image description here

Franck Dernoncourt
  • 24,246
  • 64
  • 231
  • 400