Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pasting to notepad (when notepad is in background)
#13
Try to send characters instead. This should work with most controls.

Function SendCharactersToWindow
Code:
Copy      Help
;/
function hwnd $_string

;Sends the string to a child window using WM_CHAR messages.
;The window can be inactive.

;hwnd - child window handle.

;EXAMPLE
;int hwnd=id(15 "Notepad")
;SendCharactersToWindow hwnd "Line1[]Line2"


str s=_string
s.findreplace("[]" "[13]")
s.unicode
word* w=s
for(_i 0 s.len/2) PostMessageW hwnd WM_CHAR w[_i] 0



See also: SendKeysToWindow


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)