Jump to content
joeloyzaga

how to use controlsend in this case

Recommended Posts

joeloyzaga

this is the code i've tried

$oIE = _IEAttach("iPower - Built by PwC, for PwC")
ControlSend ("iPower - Built by PwC, for PwC","", "WebEdit","wills",)
 
But my control name is "WebEdit" and I want to send "wills" to it but its not working
 
the attach works but I'm stumbling with the controlsend command
 
 
Can somebody correct it for me?

Share this post


Link to post
Share on other sites
orbs

you don't use ControlSend. you use the IE UDF. the same place you took _IEAttach from has plenty of other function to retrieve data, populate controls and handle objects in IE.

Share this post


Link to post
Share on other sites
joeloyzaga

the only thing that works is this - how can I change it to use the object where the object is - $oInput = _IEGetObjByName($oIE, "WebEdit")

MouseClick("left",1217,742,1)

MouseClick("left",724,770,1)
Send("wills")

Share this post


Link to post
Share on other sites
joeloyzaga

can you mouseclick on an object?

Edited by joeloyzaga

Share this post


Link to post
Share on other sites
joeloyzaga

this is the html - <input class="select2-input select2-focused" type="text" autocomplete="off" spellcheck="false" autocapitalize="off" autocorrect="off" jQuery110208908035605971999="404"/>

And its wihin a frame.....

Edited by joeloyzaga

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

×