Sign in to follow this  
Followers 0
Guest matricks

how to read from window and send to other window

3 posts in this topic

i want to read a "string" of char (numbers and letter) from unactive window and send what i read to other window...

can u plz write for me how to do it?

i will start:

WinActivate("Untitled - Notepad1") ; active the notepad1 window

$TEXT = WinGetText("Untitled -Notpad1") ; get the text from notepad1 to "TEXT"

WinActivate("Untitled - Notepad2") ; active the notepad2 window

????????????????????????????????? ; send whats in "TEXT" to notepad2

thanks alot

matricks.

Share this post


Link to post
Share on other sites



is the following code working

WinWaitActive("Untitled - Notepad2")
Send($text)

if you don't want to activate you can use the ControlSend :whistle:

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

i manage

thanks

i use:

ControlSend("Untitled", "", "Edit1", $TEXT)

u'r way is better (shorter) and also correct.

but thanks alot again :whistle:

Edited by matricks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0