Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gets the text inside the subfunction
#2
Function Function4
Trigger Aq     Help - how to add the trigger to the macro
Code:
Copy      Help
int h=GetQmCodeEditor
int pos=SendMessage(h SCI.SCI_GETCURRENTPOS 0 0)
int line=SendMessage(h SCI.SCI_LINEFROMPOSITION pos 0)
int linelength=SendMessage(h SCI.SCI_LINELENGTH line 0)
str ct.getmacro
int fpos=ct.findreplace("aa1" "aaaaaaaaaaaaaaaa1" 4 "" pos-linelength)
if(fpos = -1)
,out "not found"
,end
ct.setmacro
int npos=SendMessage(h SCI.SCI_GETLINEENDPOSITION line 0)
SendMessage(h SCI.SCI_GOTOPOS npos 0)


Messages In This Thread
Gets the text inside the subfunction - by Davider - 11-27-2022, 03:12 AM
RE: Gets the text inside the subfunction - by Kevin - 11-28-2022, 02:28 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)