12-26-2013, 05:10 AM
Create function SendKeysToWindow. Its code is here:
pasting to notepad (when notepad is in background)
Then try this macro with Notepad:
Macro Macro2207
Macro for your window would be like this:
Macro Macro2206
pasting to notepad (when notepad is in background)
Then try this macro with Notepad:
Macro Macro2207
int w1=act(win("Untitled - Notepad" "Notepad")) ;;to test
int c1=child ;;the focused control
rep
,SendKeysToWindow c1 key(a)
,1
;You can activate some other window, this macro will still work.
Macro for your window would be like this:
Macro Macro2206