Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hide Notepad but keeping it activated for text input
#3
getwintext and setwintext will work while notepad is hidden i've used this before and had good results

basic example

Code:
Copy      Help
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("[]" "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 window


I 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.


Messages In This Thread
RE: Hide Notepad but keeping it activated for text input - by Kevin - 09-01-2018, 04:57 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)