Sign in to follow this  
Followers 0
igortar

Send Vs. ControlSend

6 posts in this topic

Hi Folks,

When I use Send command such as

Send("text message") I receive text message in current window? But when I replace this row with

ControlSend ("", "", "", "text message")

I don't receive reply in window

May be you have got ideas?

Share this post


Link to post
Share on other sites



May be you have got ideas?

Maybe its because you are, with that command, looking for a window that has no title and a non-existing control (because of a faulty argument (a string instead of a value) where the control-ID should be) ?

Share this post


Link to post
Share on other sites

ControlSend ( "title", "text", controlID, "string" )

title: The title of the window to access.

text: The text of the window to access.

controlID: The control to interact with. See Controls.

string: String of characters to send to the control.

Share this post


Link to post
Share on other sites

Look at the example of controlsend in the helpfile, and this should make more sense to you.

The problem is that I can send {Enter} (TAB) and this is working, but I can not send just a text using controllsend function. May be it needs to use special flag to send just a text in controlsend function?

Share this post


Link to post
Share on other sites

Hi Folks,

When I use Send command such as

Send("text message") I receive text message in current window? But when I replace this row with

ControlSend ("", "", "", "text message")

I don't receive reply in window

May be you have got ideas?

Try to:

ControlSend ("", "", ControlGetFocus ("", ""), "text message")

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