Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

TillaGoto - Go to functions, labels & hks in your script


  • Please log in to reply
135 replies to this topic
TheGood
  • Members
  • 589 posts
  • Last active: Mar 22 2014 03:22 PM
  • Joined: 30 Jul 2007
The more I use TillaGoto, the more I realize the little quirks it has and features it lacks. I just added a feature which should be (hopefully) useful to some people.

New release:

- Added bWideView (see script)
- Improved respect to iGUIHeight so that the number of items shown is always the same, even with a hscrollbar

About bWideView:
bWideView := False ;Set to True to auto-resize the width of the GUI so that all the items are visible
                   ;without the horizontal scrollbar.

And I also updated the screenshot because the margin wasn't the same as in the previous one.

HotKeyIt
  • Moderators
  • 7439 posts
  • Last active: Jun 22 2016 09:14 PM
  • Joined: 18 Jun 2008

I just added a feature which should be (hopefully) useful to some people

That's definitely a useful one, thanks :D

TheGood
  • Members
  • 589 posts
  • Last active: Mar 22 2014 03:22 PM
  • Joined: 30 Jul 2007
New release (bug fixes):

- Fixed bug causing line history not to record current line when using the GUI.
- Fixed bug causing scripts that only use LF (instead of CRLF) as line delimiter wouldn't get scanned.


That's definitely a useful one, thanks :D

I'm glad you like it! :D

TheGood
  • Members
  • 589 posts
  • Last active: Mar 22 2014 03:22 PM
  • Joined: 30 Jul 2007
Now that I use a cool theme for Notepad++, I found the need for matching colours :D.

New release:

- Added full support for Notepad2 (see important note above)
- Added cGUIBG, cControlBG, and cControlFG (see usage)
- The position of the GUI now takes into account the presence of a vertical scrollbar
- Simplified and improved compatibility of the external file launching routine
- Fixed End key and Home key being sent to the listbox instead of the textbox. Now, doing Ctrl+End and Ctrl+Home while focused on the textbox will send End and Home (respectively) to the listbox
- Fixed matching ending character in regexes to support files with no CR characters


About cGUIBG, cControlBG, and cControlFG:

If the default colours don't match your lexing/theme, you may change the background of the GUI and the controls and the text colour by changing the values of cGUIBG, cControlBG, and cControlFG

cGUIBG     := "" ;Specify the GUI's background colour. Leave blank for default.
cControlBG := "" ;Specify the controls' background colour. Leave blank for default.
cControlFG := "" ;Specify the controls' foreground (text) colour. Leave blank for default.


TheGood
  • Members
  • 589 posts
  • Last active: Mar 22 2014 03:22 PM
  • Joined: 30 Jul 2007
New release:

- Added the ability to cache files (see Usage and script for details)
- Middleclicking will also move the caret to the position clicked before going to the clicked function/label/hotkey
- Simplified GUIInteract() and cleaned up HID stuff


About file caching:

If using the #Include file scanning feature, it is strongly recommended to enable file caching, by setting bCacheFiles to True. This will allow TillaGoto to be much faster on subsequent scans of the same include files.

bCacheFiles := False ;Set to True to enable file caching so that scanning is only done once on
                     ;files that have already been scanned in the past. This does not affect the
                     ;current script (which is always re-scanned). Caching is highly recommended as
                     ;it greatly enhances performance of the include files scanning feature.

Caching makes the lag due to #Include file scanning become negligeable, because the script isn't analyzed (or even opened) if it hasn't changed.
Also, the caching files TillaGoto creates (in the A_Temp folder) are deleted upon exit. They're needed so as to keep memory usage to a minimum.

I tested it quite a lot before releasing, but because it is a pretty complex feature, I might have missed a bug or two in the process. So please let me know if you find any! 8)

soggos
  • Members
  • 129 posts
  • Last active: Nov 30 2012 10:35 AM
  • Joined: 27 Mar 2008
euh, i am alone in the dark? cause:


---------------------------
TillaGoto.ahk
---------------------------
Error at line 317.

Line Text: {
Error: The leftmost character above is illegal in an expression.

The program will exit.
---------------------------
OK
---------------------------

AnyBody knows why?
with ahk, all is different!...

TheGood
  • Members
  • 589 posts
  • Last active: Mar 22 2014 03:22 PM
  • Joined: 30 Jul 2007
Do you have the latest version of AutoHotkey?

soggos
  • Members
  • 129 posts
  • Last active: Nov 30 2012 10:35 AM
  • Joined: 27 Mar 2008

Do you have the latest version of AutoHotkey?

yes 1.0.48.1, and majkinetor's Remote Buffer in script_Dir.
with ahk, all is different!...

TheGood
  • Members
  • 589 posts
  • Last active: Mar 22 2014 03:22 PM
  • Joined: 30 Jul 2007
Strange. It works here using the latest version (1.0.48.03). I'm not sure why you would need to, but can you try updating AutoHotkey and letting me know if it works?

soggos
  • Members
  • 129 posts
  • Last active: Nov 30 2012 10:35 AM
  • Joined: 27 Mar 2008

Strange. It works here using the latest version (1.0.48.03). I'm not sure why you would need to, but can you try updating AutoHotkey and letting me know if it works?


1.0.48.03 is now installed, ANd the problem NO Persist...

it's so Good! the script is fonctionnal width notepad++,
TillaGoto.ahk is for me a veritable revolution. you simplifi my life..

thank's TheGood for your light on my prob..
thank's TillaGoto and TheGood conceptor
with ahk, all is different!...

soggos
  • Members
  • 129 posts
  • Last active: Nov 30 2012 10:35 AM
  • Joined: 27 Mar 2008
Hello, oh please, how to retrieve the list of ListBox in the clipboard┬┐
cause:
!^F1::
   CoordMode Mouse, Screen
	MouseGetPos, initScrX, initScrY, hwnd_id, control
ControlGet, OutputVar, List, , SysListView321, ahk_id %hwnd_id% , 
	MsgBox , 4160 , , ahk_id %hwnd_id%  >> %OutputVar% 
	Return
retrieve nothing! and
GuiControlGet , lblList
Loop, parse, lblList, |
{
	lstPathQuuii= %lstPathQuuii%%A_LoopField%`n
}

	MsgBox , 4160 , , %lstPathQuuii%
Return
retrieve the selected line ....
please fill me my clipboard with all label and functions...
with ahk, all is different!...

neXt
  • Members
  • 549 posts
  • Last active: May 20 2015 02:38 AM
  • Joined: 18 Mar 2007
I have just installed your script and would like to suggest a minor feature:
make a first run prompt to auto-download extra functions (remoteBuff, etc.).

fincs
  • Moderators
  • 1662 posts
  • Last active:
  • Joined: 05 May 2007
I've begun the integration process with SciTE4AutoHotkey v2.1.
Also, is there a reason why you chose @ as the escape character? There is only one instance of ` in the whole script and using @ is not worth it IMO.

TheGood
  • Members
  • 589 posts
  • Last active: Mar 22 2014 03:22 PM
  • Joined: 30 Jul 2007

how to retrieve the list of ListBox in the clipboard┬┐

Hello soggos, please post your question in the Ask For Help section of the forum. Thanks!

I have just installed your script and would like to suggest a minor feature:
make a first run prompt to auto-download extra functions (remoteBuff, etc.).

RemoteBuf.ahk is the only one needed. All the other functions are integrated in the script. It just seems like a lot of work for something that only takes 30 seconds max to setup just once.

I've begun the integration process with SciTE4AutoHotkey v2.1.
Also, is there a reason why you chose @ as the escape character? There is only one instance of ` in the whole script and using @ is not worth it IMO.

To tell you the truth, I don't exactly remember why I had to change the escape character. I know it made sense back then when I made the decision! :D
I think it was because using ` as the escape character would have rendered it much harder (or impossible) to handle the ` character in the scripts that TillaGoto scans.

derRaphael
  • Members
  • 872 posts
  • Last active: Mar 19 2013 04:42 PM
  • Joined: 23 Nov 2007
is it just me or does the scan function not include the currently open tabs of SciTe?

i usually have a set of scripts open which represent a complete project and only the main ahk script contains the includes. so a jump to a function used within a project leads to nuffin, since it is neither in my stdLib folder nor in any includes.

probly i just overlook something...

otherwise this programm is a real ease for SciTe :)

thx so much for this one.

All scripts, unless otherwise noted, are hereby released under CC-BY