Jump to content

Recommended Posts

Posted

I have a file search executable that when called from a hotkey displays file line information to the Output window.

I want to double click on one of these lines and have the editor go to that line in the file being edited.

The problem is that the double click does nothing.

Example of the data displayed in the Output Window:

>D:\Util\Misc\AutoITTabNames.exe "abcdef"

D:\Util\AutoIT-src\myStuff\AutoITTabNames\AutoITTabNames.au3:16; abcdef

>Exit code: 0 Time: 0.641

I want to double click on the 2nd line and have the editor respond bu going to line 16 of the file.

If I change the executable to call "FindStr", it works. An example of the output from FindStr:

>C:\Windows\System32\Findstr.exe /N /I /C:"abcdef" "D:\Util\AutoIT-src\myStuff\AutoITTabNames\AutoITTabNames.au3" nul

D:\Util\AutoIT-src\myStuff\AutoITTabNames\AutoITTabNames.au3:16:; abcdef

>Exit code: 0 Time: 0.228

When I double click on the 2nd line in the Output window, the editor moves to line 16, as I expect.

I do all this by entering this info in the au3.properties file:

myFindcmd=D:\Util\Misc\AutoITTabNames.exe

command.name.44=Find Selected text in All Open Documents

command.44.=$(myFindcmd) "$(CurrentWord)"

command.subsystem.44=0

command.save.before.44=1

When I run it, I see all of the matching lines in all of the open files in the console output window, but when I double click on the results, nothing happens.

Posted

I found the problem. I was missing the ":" after the line number

D:UtilAutoIT-srcmyStuffAutoITTabNamesAutoITTabNames.au3:16; abcdef

should have been:

D:UtilAutoIT-srcmyStuffAutoITTabNamesAutoITTabNames.au3:16:; abcdef

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...