Sign in to follow this  
Followers 0
bdb4269

Looking for way to add custom UDF's to Scite so that it gets the function popup like built in functions

9 posts in this topic

You know after you type a func and then "(" (and after every ",") it pops up with a tooltip showing the argument list for that function, for easy reference...

Is there a way to add custom UDF's so that it will popup for those as well?

Share this post


Link to post
Share on other sites



Look at "c:\Program Files\AutoIt3\SciTE\api\"

There are some example api files:

au3.api - standard + UDF functions

au3.auto3lib.calltips.api - from Auto3Library instalation

au3.user.calltips.api - empty so here you can write your functions

Share this post


Link to post
Share on other sites

I've thought from time to time to write a script that looks at a given file or directory containing files and append the UDFs to the calltips list. I've also on many occasions wished that I would write the tool to delete calltips for functions that I never use.

I guess an alternative (more processor intensive ) approach would be a LUA script that would:

hook the scite file open

if the filetype is .au3 parse the file looking for function calls and #includes,

comparing the treewalk of called udfs to the ones for which there already are calltips,

appending the utilized udfs into the calltips database.


Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.

Share this post


Link to post
Share on other sites

Sorry to dredge up an old subject but Mhz wrote a script to add udf funcs to the calltips file.

http://www.autoitscript.com/forum/index.php?showtopic=22636

Share this post


Link to post
Share on other sites

Sorry to dredge up an old subject

Why? You were using the search funciton. That in and of itself deserves a medal.

"It is always better to post in an existing thread then it is to create a new one"

(Shamelessly ripped from the "Posting and You" flash vid)


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

"It is always better to post in an existing thread then it is to create a new one"

Ain't that the truth!! <_<

In my defense, I did try searching, but was unable to find anything, due to my use of inadequate search terms. Because at the time, i didn't know the term "calltips" to include in my search. :">

Share this post


Link to post
Share on other sites

LOL, wasn't meant as a dig against the original poster. Sometimes it does take a new thread. (And like you said, you did search.)


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0