jaberwacky Posted February 1, 2012 Share Posted February 1, 2012 (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 messageD:Source CodeAutoItLUACallTips.lua:8: Pane function / readable property / indexed writable property name expected >Lua: error occurred while loading startup script Edited February 1, 2012 by LaCastiglione Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
wraithdu Posted February 1, 2012 Share Posted February 1, 2012 Tryscite.SendEditor(SCI_CALLTIPSETPOSITION, calltips_set_above) Link to comment Share on other sites More sharing options...
jaberwacky Posted February 1, 2012 Author Share Posted February 1, 2012 Ah, I see and was thinking that wasn't for calling functions. Thank you! Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? 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