therms Posted October 26, 2014 Share Posted October 26, 2014 (edited) I just know this is going to be something horrendously stupid on my part, but... I cannot get user calltips working in Scite. I uninstalled Scite. Using SciteConfig I made sure UDF folder was set to C:UsersThermsAutoITUDF. Using Sciteconfig I opened the User Calltips editor and added one function. The complete contents of C:UsersThermsau3.user.calltips.api: _TheFunctionOfAwesome($sOne, $sTwo) Writes two strings to stdout. (Requires: #include <deleteme.au3>) Contents of C:UsersThermsAutoITUDFdeleteme.au3: ; #FUNCTION# ==================================================================================================================== ; Name ..........: _TheFunctionOfAwesome ; Description ...: Writes two strings to stdout ; Syntax ........: _TheFunctionOfAwesome($sOne, $sTwo) ; Parameters ....: $sOne - A string value to output ; $sTwo - A string value to add to $sOne. ; Return values .: None ; Author ........: therms ; Modified ......: ; Remarks .......: This does stuff. ; Related .......: ; Link ..........: ; Example .......: No ; =============================================================================================================================== Func _TheFunctionOfAwesome($sOne, $sTwo) ConsoleWrite($sOne & $sTwo & @CRLF) EndFunc After closing and restarting Scite, create a new file C:UsersThermsDesktopdeleteme2.au3. Start file out with the requisite #include <deleteme.au3> and begin typing "_TheFunct" and Scite never suggests _TheFunctionOfAwesome! Edited October 26, 2014 by therms Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted October 27, 2014 Moderators Share Posted October 27, 2014 What version of AutoIt and SciTE? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
therms Posted October 27, 2014 Author Share Posted October 27, 2014 What version of AutoIt and SciTE? Autoit: v3.3.12.0 SciTE: 3.4.4 Link to comment Share on other sites More sharing options...
jdelaney Posted October 27, 2014 Share Posted October 27, 2014 (edited) There are 2 files, one for when you get to the open parens (displays what you have typed), and one for the 'auto-complete' of the function name...add in the function name here: au3.userudfs.properties Edited October 27, 2014 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
Exit Posted October 27, 2014 Share Posted October 27, 2014 ;~ userfile locations have changed. ;~ move the two files to new locations ;~ or use this script $file1 = "au3.user.calltips.api" $file2 = "au3.UserUdfs.properties" FileMove(@UserProfileDir & "\" & $file1, @UserProfileDir & "\AppData\Local\AutoIt v3\SciTE\" & $file1, 8) FileMove(@UserProfileDir & "\" & $file2, @UserProfileDir & "\AppData\Local\AutoIt v3\SciTE\" & $file2, 8) App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
therms Posted October 28, 2014 Author Share Posted October 28, 2014 (edited) ;~ userfile locations have changed. ;~ move the two files to new locations ;~ or use this script $file1 = "au3.user.calltips.api" $file2 = "au3.UserUdfs.properties" FileMove(@UserProfileDir & "\" & $file1, @UserProfileDir & "\AppData\Local\AutoIt v3\SciTE\" & $file1, 8) FileMove(@UserProfileDir & "\" & $file2, @UserProfileDir & "\AppData\Local\AutoIt v3\SciTE\" & $file2, 8) C:UsersThermsAppDataLocalAutoIt v3SCiTEau3.user.calltips.api: _TheFunctionOfAwesome($sOne, $sTwo) Writes two strings to stdout. (Requires: #include <deleteme.au3>) C:UsersThermsAppDataLocalAutoIt v3SCiTEau3.userudfs.properties:: au3.keywords.user.udfs=_thefunctionofawesome Still do not get autocomplete or syntax hints for function parameters. Edited October 28, 2014 by therms Link to comment Share on other sites More sharing options...
Exit Posted October 28, 2014 Share Posted October 28, 2014 Check if the following line is in your @UserProfileDir & "AppDataLocalAutoIt v3SciTESciTEUser.properties" file. import au3.UserUdfs App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
therms Posted October 28, 2014 Author Share Posted October 28, 2014 (edited) That file does not exist. In fact, when you told me to move au3.userudfs.properties and au3.user.calltips.api into that directory earlier it did not exist and I had to create it. The only thing in C:UsersThermsAppDataLocalAutoIt v3 was the Aut2exe directory. I assume that directory should be created on install or first start of SciTE. As a test, I just did an uninstall/install of SciTE again, and it did not create that folder. Even after starting it one time. Could this be because I run on a standard user account? I notice that that directory doe exists in my administrator accounts AppDataLocalAutoIT v3SciTE. My theory is that the installer handles installation on standard user accounts incorrectly. I'll try copying that folder over from my admin account and report back. Edited October 28, 2014 by therms Link to comment Share on other sites More sharing options...
therms Posted October 28, 2014 Author Share Posted October 28, 2014 (edited) OK, the issue is this: I use a standard user account. I double click the SciTE installer. It pops up a UAC prompt. After that it installs all the config files in the appdata directory for the administrator account rather than as the standard user I'm logged in as. It also sets SCITE_USERHOME for the administrator, but not for the standard user. Obviously this is because of UAC, but I believe this is not best practice behavior for an installer. After manually copying the files to my standard user appdata directory and manually creating and setting to the right path the SCITE_USERHOME environment variable, I now have user calltips working. Is there an issue tracker for the SciTE4AutoIt3 installer? Edited October 28, 2014 by therms Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 28, 2014 Moderators Share Posted October 28, 2014 therms,Just post in this thread. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Bert Posted October 29, 2014 Share Posted October 29, 2014 Dumb question - what is your file type you are currently looking at in SciTE? a text file? or an Au3 file? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
therms Posted October 29, 2014 Author Share Posted October 29, 2014 Dumb question - what is your file type you are currently looking at in SciTE? a text file? or an Au3 file? Not a dumb question! I was using an au3 file. Link to comment Share on other sites More sharing options...
Bert Posted October 29, 2014 Share Posted October 29, 2014 Duel monitors? I found the calltips will sometimes show on the other monitor. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
therms Posted October 31, 2014 Author Share Posted October 31, 2014 Duel monitors? I found the calltips will sometimes show on the other monitor. Nah, as I mentioned a few posts ago the problem has to do with using a standard user account. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now