Sign in to follow this  
Followers 0
jaberwacky

Calling a SciTE function from lua

3 posts in this topic

#1 ·  Posted (edited)

Hi. I'm trying my hand at lua. Taking my cues from some fucntions by wraithdu and some functions by Jos and Valik, I started on this script. Here is what I have so far:

myCallTips = EventClass:new(Common)

function myCallTips:OnStartup()
    local calltips_set_above = props["calltips.set.above"]

    if tonumber(calltips_set_above) == 1 then
        editor:CALLTIPSETPOSITION(calltips_set_above)
    elseif tonumber(calltips_set_above) == 0 then
        editor:CALLTIPSETPOSITION(calltips_set_above)
    end
end

I don't know how to call SCI_CALLTIPSETPOSITION(bool above). I tried scite:SCI_CALLTIPSETPOSITION(calltips_set_above) without the SCI_ and several combinations thereof. Anyone care to throw me a hint?

Edit: Here is the error message

D:Source CodeAutoItLUACallTips.lua:8: Pane function / readable property / indexed writable property name expected
>Lua: error occurred while loading startup script
Edited by LaCastiglione

Share this post


Link to post
Share on other sites



Try

scite.SendEditor(SCI_CALLTIPSETPOSITION, calltips_set_above)

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