getwintext and setwintext will work while notepad is hidden i've used this before and had good results
basic example
int w=win("" "Notepad")
int c=id(15 w) ;;editable text 'Text Editor'
1
hid w;; hide notepad window
str s.getwintext(c);; get existing text
if s.len
,_s.from(s "[]" "line1[]line2[]line3[]line4");;add new text to existing text
,_s.setwintext(c);; add text to notepad
else
,_s="line1[]line2[]line3[]line4"
,_s.setwintext(c)
1
hid- w;; unhide notepad windowI am not sure what exactly your trying to do. Was just offering this as an alternative to pasting.Works even if window is inactive or hidden. If you give us a better idea of what exactly your trying to do maybe can come up with a solution.
