Jump to content

Losing Autocomplete


Recommended Posts

After I run SciTE Customize to my needs, I notice that I lost the autocomplete to variables that I assign. Any help with that?

Msgbox(0, "Hate", "Just hate it when I post a question and find my own answer after a couple tries. But if I don't post the question, I can't seem to resolve it at all.")
Link to comment
Share on other sites

  • Developers

Not too much info to go on here. ;)

So, Which version of SciTE are you running? (Help/About SciTE)
What have you Customized? 

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

SciTE Version 3.5.4

I load Black 2 themes from Customized SciTE

Msgbox(0, "Hate", "Just hate it when I post a question and find my own answer after a couple tries. But if I don't post the question, I can't seem to resolve it at all.")
Link to comment
Share on other sites

  • Developers
1 hour ago, Queener said:

I notice that I lost the autocomplete to variables that I assign

Ok, so please explain what you see isn't working exactly as I am not clear what this means.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Normally when you assign the variable for example: $justin. It would show an autocomplete of $justin if you type $j. Instead it shows:

 

g81usM.jpg

Msgbox(0, "Hate", "Just hate it when I post a question and find my own answer after a couple tries. But if I don't post the question, I can't seem to resolve it at all.")
Link to comment
Share on other sites

  • Developers

Correct, it should do that. What happens when, after you typed the $, you select Edit/Complete Word (Ctrl+Enter)?

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

sorry for the delay of replying. Was at training the whole 2 week and rarely have time to come back here, but when you type the dollar sign, nothing comes up. Just the tooltip controlID[

Msgbox(0, "Hate", "Just hate it when I post a question and find my own answer after a couple tries. But if I don't post the question, I can't seem to resolve it at all.")
Link to comment
Share on other sites

  • Developers
5 hours ago, Queener said:

but when you type the dollar sign, nothing comes up. Just the tooltip controlID[

That wasn't the whole question! ;)

On 6/24/2016 at 10:29 AM, Jos said:

What happens when, after you typed the $, you select Edit/Complete Word (Ctrl+Enter)?

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

so you're saying every time I want the auto-completion, I would need to ctrl+Enter? Because thats how it is now.

Msgbox(0, "Hate", "Just hate it when I post a question and find my own answer after a couple tries. But if I don't post the question, I can't seem to resolve it at all.")
Link to comment
Share on other sites

  • Developers

My only question was whether that is working or not to establish base functionality. So if the answer is yes, then that does mean that the LUA added functionality isn't working.  You SciTE Directory does contain the LUA subdirectory with files in it? 

Please run this script, copy its output into a text file and share that in a post or PM with me so I can see you active properties:

Opt("WinSearchChildren", 1)
#AutoIt3Wrapper_UseX64=n
Global $WM_COPYDATA = 74
; Get SciTE DirectorHandle
$Scite_hwnd = WinGetHandle("DirectorExtension")
; Get My GUI Handle
Global $My_Hwnd = GUICreate("AutoIt3-SciTE interface")
;Register COPYDATA message.
GUIRegisterMsg($WM_COPYDATA, "MY_WM_COPYDATA")
;
SendSciTE_Command($My_Hwnd, $SciTE_hwnd,"askfilename:")
SendSciTE_Command($My_Hwnd, $SciTE_hwnd,"enumproperties:local")
SendSciTE_Command($My_Hwnd, $SciTE_hwnd,"enumproperties:user")
SendSciTE_Command($My_Hwnd, $SciTE_hwnd,"enumproperties:base")
;~ SendSciTE_Command($My_Hwnd, $SciTE_hwnd,"enumproperties:embed")
Sleep(500)
;
; Send command to SciTE
Func SendSciTE_Command($My_Hwnd, $Scite_hwnd, $sCmd)
    Local $My_Dec_Hwnd = Dec(StringRight($My_Hwnd, 8))
    $sCmd = ":" & $My_Dec_Hwnd & ":" & $sCmd
    ConsoleWrite('-->' & $sCmd & @lf )
    Local $CmdStruct = DllStructCreate('Char[' & StringLen($sCmd) + 1 & ']')
    DllStructSetData($CmdStruct, 1, $sCmd)
    Local $COPYDATA = DllStructCreate('Ptr;DWord;Ptr')
    DllStructSetData($COPYDATA, 1, 1)
    DllStructSetData($COPYDATA, 2, StringLen($sCmd) + 1)
    DllStructSetData($COPYDATA, 3, DllStructGetPtr($CmdStruct))
    DllCall('User32.dll', 'None', 'SendMessage', 'HWnd', $Scite_hwnd, _
            'Int', $WM_COPYDATA, 'HWnd', $My_Hwnd, _
            'Ptr', DllStructGetPtr($COPYDATA))
EndFunc   ;==>SendSciTE_Command
; Received Data from SciTE
Func MY_WM_COPYDATA($hWnd, $msg, $wParam, $lParam)
    Local $COPYDATA = DllStructCreate('Ptr;DWord;Ptr',$lparam)
    $SciTECmdLen = DllStructGetData($COPYDATA, 2)
    Local $CmdStruct = DllStructCreate('Char['&$SciTECmdLen+1&']',DllStructGetData($COPYDATA, 3))
    $SciTECmd = Stringleft(DllStructGetData($CmdStruct, 1),$SciTECmdLen)
    ConsoleWrite('<--' & $SciTECmd & @lf )
EndFunc   ;==>MY_WM_COPYDATA

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Resolved. Jos spotted a configuration within the Customize tool that disabled the auto-completion in the themes configuration.

n8Z9Ox.jpg

 

Just change the 1 on line 120 to 0 and save. All done!

Msgbox(0, "Hate", "Just hate it when I post a question and find my own answer after a couple tries. But if I don't post the question, I can't seem to resolve it at all.")
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...