Sign in to follow this  
Followers 0
ericg32

SEND $ Variable

5 posts in this topic

Maybe I missed this along the way ! I have data stored in $mydata that I wish to send to a window.. I don't see how to make SEND to CONTROLSEND do this ..

I have tried various syntax of send($mydata) send"$mydata") etc. but of no avail.

The problem is simple.. suppose I have a list of things to send to IEXPLORER.. I can invoke explorer - go to the right webpage , then I want to send the contents and {enter}

Any ideas ?

thnx

Eric

Share this post


Link to post
Share on other sites

Maybe I missed this along the way ! I have data stored in $mydata that I wish to send to a window.. I don't see how to make SEND to CONTROLSEND do this ..

I have tried various syntax of send($mydata) send"$mydata") etc. but of no avail.

The problem is simple.. suppose I have a list of things to send to IEXPLORER.. I can invoke explorer - go to the right webpage , then I want to send the contents and {enter}

Any ideas ?

thnx

Eric

Look up the _IE functions provided by Dale.

IE is a pain to work with, but it can be done.


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

Thnx Blue.. I will review that.. am I missing something in the (control)send where I cannot send a string variable ? I can send text but not text stored in $... ?

THnx

Look up the _IE functions provided by Dale.

IE is a pain to work with, but it can be done.

Share this post


Link to post
Share on other sites

Try this... it may help you uinderstand

Run("notepad.exe")

WinWaitActive("")

ControlSend("Untitled", "", "Edit1", "This is a line of text in the notepad window" & @CRLF)

Sleep(2000)

$variable = "This is a another line of text in the notepad window" & @CRLF

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

Sleep(5000)

; close notepad

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Found the error of my ways.. I had the pointer ..not the content.. once I fixed the reference it works as expected !.. Needed the GUICTRLREAD !

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