jaberwacky Posted February 1, 2012 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: AutoIt Wiki | Can't find what you're looking for on the Forum? My scripts: Guiscape | Baroque AU3 Code Formatter | MouseHoverCalltips | SciTe Customization GUI | ActiveWindowTrack Toy | Monitor Configuration UDF
wraithdu Posted February 1, 2012 Posted February 1, 2012 Tryscite.SendEditor(SCI_CALLTIPSETPOSITION, calltips_set_above)
jaberwacky Posted February 1, 2012 Author Posted February 1, 2012 Ah, I see and was thinking that wasn't for calling functions. Thank you! Helpful Posts and Websites: AutoIt Wiki | Can't find what you're looking for on the Forum? My scripts: Guiscape | Baroque AU3 Code Formatter | MouseHoverCalltips | SciTe Customization GUI | ActiveWindowTrack Toy | Monitor Configuration UDF
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