Good morning,
Sorry, is there a way to use the same function from different scripts, similar to the #include in C and the AutoHotKey?)
(Sorry for the Google translation, my English is bad)
Thanks in advance for any response and congratulations for the SW.
Shared function.
-
- Posts: 2
- Joined: Feb 25th, ’23, 21:32
If you create a function in one command it will in principle be available in all other commands as well.
-
- Posts: 2
- Joined: Feb 25th, ’23, 21:32
Thank you very much for the answer.
Unfortunately, when trying to create a Shortcut with Command
Code: Select all
ToolTipTest("hi",,,5000)
Code: Select all
Error: Call to nonexistent function.
Specifically: ToolTipTest("hi",,,5000)
Line#
004: Return
005: Return
---> 007: ToolTipTest("hi",,,5000)
008: Return
009: Return
010: {
011: Return
012: }
013: Exit
The program will exit.
Code: Select all
ToolTipTest("hi",,,5000)
ToolTipTest(S, X="", Y="", msec=1000) {
SetTimer, Off, %msec%
ToolTip, %S%, %X%, %Y%
return
Off:
ToolTip
SetTimer, Off, Off
return
}
I just purchased the license and it's is kinda a show stopper for me.
Can you help?
Or if there are no options so far, then I suggest add feature to have some folder like "Includes" where can be stored .ahk files with functions that are loaded and globally accessible in any command.
Thank you.
Last edited by nmax on Nov 28th, ’23, 08:31, edited 1 time in total.
Thanks for reporting. You are right, currently it is only possible to set a procedure and not a function in the Startup Script.
We will resolve this in the next release.
We will resolve this in the next release.