Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selection on a scintilla window
#14
Macro Macro2431
Code:
Copy      Help
int w=win("" "Notepad++")
int c=child("" "Scintilla" w)

str newText="abc αβγ" ;;if αβγ is garbage, Notepad++ is not using UTF-8 text encoding or QM is not in Unicode mode

__ProcessMemory pm.Alloc(c newText.len+1)
pm.WriteStr(newText)
SendMessage c SCI.SCI_SETTEXT 0 pm.address


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)