ericg32 Posted October 12, 2007 Share Posted October 12, 2007 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 Link to comment Share on other sites More sharing options...
Blue_Drache Posted October 12, 2007 Share Posted October 12, 2007 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 ?thnxEricLook 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 Link to comment Share on other sites More sharing options...
ericg32 Posted October 12, 2007 Author Share Posted October 12, 2007 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 $... ?THnxLook up the _IE functions provided by Dale.IE is a pain to work with, but it can be done. Link to comment Share on other sites More sharing options...
Valuater Posted October 12, 2007 Share Posted October 12, 2007 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) Link to comment Share on other sites More sharing options...
ericg32 Posted October 12, 2007 Author Share Posted October 12, 2007 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 ! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now