Jump to content

Calling a SciTE function from lua


jaberwacky
 Share

Recommended Posts

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
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...