2. It will pass command line parameters to your script when you run (F5) it. You can run this AHK script to display parameter number one:
Code: Select all
one = %1%
MsgBox, % one
Code: Select all
one = %1%
MsgBox, % one
Code: Select all
;************************************************************
oSciTE := ComObjActive("SciTE4AHK.Application") ;get pointer to active SciTE window
text:= oSciTE.Document ;get entire SciTE document
my=hello
My=World
;~ Joe:="hi there"
Pos:=1 ;set starting point
;*********Don't include lines that are commented out*********************
Loop, parse, Text, `n, `r
{
Line:=A_Loopfield
if (SubStr(line,1,1) <>";")
NewText.=A_loopfield "`r`n"
}
;***********now iterate over and find variables*******************
loop, {
Posit:=RegExMatch(Newtext, "([\w]+)[:|.]?=.*?",Obj,Pos)
if not obj
break ;if no more, break the loop
Vars.=obj1 "`r`n" ;store variables
Pos:=Posit+StrLen(obj)+1 ;increment counter so moves forward
}
sort, Vars, U ;remove duplicates
MsgBox % Vars
I'd bet you can just close SciTE and terminate any remaining InternalAHK.exe process.derz00 wrote:Edit: All it took was a computer restart, but I don't know if it will happen again....
For what purpose? My SciTE auto-complete script collects words from the current file for auto-complete and adds them to the words listed in the API file. It will include words that aren't variables (or aren't variables in the current scope) - it takes much more than just a complex regex to accurately detect variable references. Ctrl+Space activates the auto-complete list.Joe Glines wrote:Anyway, I'd love to be able to hit a hotkey and show what variables are defined in my script.
Hmm, seems to work fine for me... try it with a proxy maybe?Casper wrote:Domain went kaput.
Website is now offline and SciTE4AutoHotkey cannot be downloaded.
Happens to me quite often, too. I found that reloading the script using the icon in the systemtray seems to help.wideeyedguy wrote:When using ST4, at some point it seems to lose the connection with F1-Help. When I put the cursor on a command or such and press F1, nothing happens. I have to quit and reload ST4 to get it to reconnect(?) with the Help functionality.
Is there another way to get it to refresh the connection without restarting the program?
Thanks,
weg
Users browsing this forum: No registered users and 14 guests