Jump to content

how to read from window and send to other window


Recommended Posts

Guest matricks
Posted

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.

Posted

is the following code working

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

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

Guest matricks
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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...