![Photo](https://secure.gravatar.com/avatar/57f9cb83a65e2601b895ac598a817e61?s=100&d=%2F%2Fwww.autohotkey.com%2Fboard%2Fpublic%2Fstyle_images%2Fortem%2Fprofile%2Fdefault_large.png)
TillaGoto - Go to functions, labels & hks in your script
I suppose you're handling circular references, but are there any other possible limits? My program is quite large (>10000 lines).
![TillaGoto - Go to functions, labels & hks in your script: post #106](http://www.autohotkey.com/board/public/style_images/ortem/icon_share.png)
I haven't upgraded it to AHK_L yet, (although it should work as is with 32-bit ANSI). Can you test it with AHK Basic?
![TillaGoto - Go to functions, labels & hks in your script: post #107](http://www.autohotkey.com/board/public/style_images/ortem/icon_share.png)
Edit: I also see the crash when I put a function from an included file into my main file which includes all others and use the original version of TillaGoTo.
Edit2: I tracked it down to one file. Including this file produces reproducible crashes for me when middle clicking on a function call. Please take a look into this: <!-- m -->http://chriss85.bpla...t/tillatest.rar<!-- m -->
![TillaGoto - Go to functions, labels & hks in your script: post #108](http://www.autohotkey.com/board/public/style_images/ortem/icon_share.png)
![TillaGoto - Go to functions, labels & hks in your script: post #109](http://www.autohotkey.com/board/public/style_images/ortem/icon_share.png)
I tried to compare both versions and only saw differences near the start.
Then I tried to copy everything except the configuration section from the Scite version to the default version, and I saw crashes again.
Edit: It seems it is a problem with my Notepad++ version. Both scripts work fine in Scite4AutoHotkey, but crash in Notepad++.
I'm using Notepad++ version 5.8.2 Unicode.
![TillaGoto - Go to functions, labels & hks in your script: post #110](http://www.autohotkey.com/board/public/style_images/ortem/icon_share.png)
Another thing I noticed, when middle clicking on an include file and a function of the same name is present, TillaGoTo navigates to the function instead of simply showing the include file. Is this desired behavior?
![TillaGoto - Go to functions, labels & hks in your script: post #111](http://www.autohotkey.com/board/public/style_images/ortem/icon_share.png)
Thanks for reporting it! I'll look into it. (Can you send me the file that caused you trouble?)I think I was able to find the exact cause of the crash. The file causing it to crash was using unix-style linefeeds (`n), while the other one used windows-style linefeeds (´r´n). Converting `n to `r`n seems to fix the crash. Still, I believe this should not happen. Is there any way to fix it?
It's undefined behaviour. Middle-clicking on an include file was never meant to open that file. Since you middle-clicked on a function name, it does what it's supposed to does.Another thing I noticed, when middle clicking on an include file and a function of the same name is present, TillaGoTo navigates to the function instead of simply showing the include file. Is this desired behavior?
![TillaGoto - Go to functions, labels & hks in your script: post #112](http://www.autohotkey.com/board/public/style_images/ortem/icon_share.png)
Are you planning to add opening the include files? I don't really need it that much, but I think it would be a fitting addition.
![TillaGoto - Go to functions, labels & hks in your script: post #113](http://www.autohotkey.com/board/public/style_images/ortem/icon_share.png)
(I also had a few minor fixes that I never released).
October 23, 2010
- Fixed bugs with files only using CR or LF.
- Fixed small middle clicking bug.
- Fixed comment filtering bug.
- Minor improvements.
![TillaGoto - Go to functions, labels & hks in your script: post #114](http://www.autohotkey.com/board/public/style_images/ortem/icon_share.png)
I was wondering if you might be able to add an option to use Tilla to export the lists it is generating to use for other purposes?
For example, it would be useful to be able to export a list of the Gosubs that excludes ones commented out. I've played around with the code but some of it is over my head, I would think it would be pretty easy thing to add if you know what you're doing :-)
![TillaGoto - Go to functions, labels & hks in your script: post #115](http://www.autohotkey.com/board/public/style_images/ortem/icon_share.png)
TheGood, why don't you take a look at the version of TillaGoto I bundle with it? It's got some modifications (Unicode, local StdLib and 64-bit editor support).
![TillaGoto - Go to functions, labels & hks in your script: post #116](http://www.autohotkey.com/board/public/style_images/ortem/icon_share.png)
![TillaGoto - Go to functions, labels & hks in your script: post #117](http://www.autohotkey.com/board/public/style_images/ortem/icon_share.png)
uSummonGUI := "F1" ;Specify the hotkey you want to use to call up the GUIIn your editor hit the hotkey (F1 key in this case) and you'll get a pop-up box that lets you search through your code.
![TillaGoto - Go to functions, labels & hks in your script: post #118](http://www.autohotkey.com/board/public/style_images/ortem/icon_share.png)
sActiveWindow := "\.ahk (-|\*) SciTE4AutoHotkey" ;Regular expression which ;should match the window of the editor containing the Scintilla control. It will ;determine when TillaGoto should be monitoring hotkeys. sMustExist := "ahk_class SciTEWindow" ;Needed if bQuitWithEditor is True. This regex ;will make TillaGoto quit if a matching window does not exist. It is currently set ;to match the editors' classes, but it may be set to match anything else. sPathMatching := "(\*( )?)?\K.*(?= (-|\*) SciTE4AutoHotkey)" ;Regular expression which should match ;the path of the currently edited file from the window title. sScintillaClass := "Scintilla" ;Class name of the Scintilla control. Exclude instance number.Followed by a note not to change anything below. I opened the properties file and it has a list of setting for the window.
![TillaGoto - Go to functions, labels & hks in your script: post #119](http://www.autohotkey.com/board/public/style_images/ortem/icon_share.png)
![TillaGoto - Go to functions, labels & hks in your script: post #120](http://www.autohotkey.com/board/public/style_images/ortem/icon_share.png)