Closed marius-sucan closed 1 year ago
https://github.com/CoffeeChaton/vscode-autohotkey-NekoHelp#find-ref-of-function
https://www.autohotkey.com/docs/v1/misc/Labels.htm#Functions
- OK SetTimer
- OK Hotkey
- ;TODO Gui events such as GuiClose
- ;TODO Gui control events (g-labels)
- ;TODO Menu
Menu, MenuName, Add, MenuItemName , LabelOrSubmenu
Menu, OpenWithMenu, Add, &Choose external application, browseExternalApp
Gui, Add, Checkbox, xs+15 y+5 Checked%uiPreferedFileStats% vuiPreferedFileStats gToggleFileStatsDating, &Generate other stats
gui ,add
cmd any word startWtih("g")
is g-label right?I will fix 2 case at next version.
value := myFuncNameCall("thisSillyFunc") ;---> ref
myFuncNameCall(func2exec) {
return %func2exec%()
}
thisSillyFunc() { ;--------------------------> def
Return 1
}
I don't understand your question, can you provide more detailed information?
For thisSillyFunc
, def-ref is indexed
value := myFuncNameCall("thisSillyFunc") ;---> ref myFuncNameCall(func2exec) { return %func2exec%() } thisSillyFunc() { ;--------------------------> def Return 1 }
I don't understand your question, can you provide more detailed information? For
thisSillyFunc
, def-ref is indexed
I tested this and you are right. It seems to work. thisSillyFunc is not listed as unused.
I'm looking forward to the updated version with menus and gLabel support. I'm cleaning up my project (QPV) with the help of your extension. Thank you for your work.
Best regards, Marius.
Menu
GUI
already provide syntax highlighting and jumping to definitions/references.Hotkey, KeyName
,Fn1 ; new line
Hotkey
, KeyName ; new line
,Fn1 ; new line
SetTimer
, fn1
, 10000
fn1(){
MsgBox, % "i am fn1"
}
Current progress (highlighted screenshot in the picture)
Jump to Definition/Reference, because we need to use mp4, the file is too big to upload.
Thank you for the work you are doing.
v0.0.21 Published, awaiting Microsoft's automated review system.
v0.0.22 will fix:
- Sort F-flag
Sort, MyVar, F IntegerSort D
https://www.autohotkey.com/docs/v1/lib/Sort.htm#Options- https://github.com/CoffeeChaton/vscode-autohotkey-NekoHelp/issues/17#issuecomment-1416761073
else
;NOT plan to support-----------------------
;https://www.autohotkey.com/docs/v1/Objects.htm#Function_References
RetVal := %Func%(Params) ; Requires [v1.1.07+]
RetVal := Func.Call(Params) ; Requires [v1.1.19+]
RetVal := Func.(Params) ; Not recommended
;https://www.autohotkey.com/docs/v1/misc/RegExCallout.htm#callout-functions
RegExMatch(Haystack, "i)(The) (\w+)\b(?CCallout)")
; ^Callout
;https://www.autohotkey.com/docs/v1/Variables.htm#ref
cc := fn%i%() ;
It seems to be working fine in v0.0.21. Thank you <3
I closed the issue.
Hello!
I have menus that reference functions such as:
Menu, OpenWithMenu, Add, &Choose external application, browseExternalApp
... and it says the function is never used. The solution is, make sure that the function is never used by a Menu command.I also have a gLabel such as:
Gui, Add, Checkbox, xs+15 y+5 Checked%uiPreferedFileStats% vuiPreferedFileStats gToggleFileStatsDating, &Generate other stats
... and it says the function is never used. The solution is: for every function name, make sure it is not used with the g prefix somewhere in the document.It should also not consider as unused the function when i have something like this:
Both functions are used. Here, you can check for every function name, if it is passed as a string, in quotation marks, as in this code.
Thank you .
Best regards, Marius.