Jump to content
Sign in to follow this  
RGBreality

How can I capture a text string from another application?

Recommended Posts

RGBreality

Hey, folks!

I am developing my first script where I am (trying to) capture a text string which a user enters into a different application; I then need to transfer that text string to a console window.

I see how to declare a variable, and have done so. I also know how to capture the text string from the application the end user uses. What I don't know is how to convey that text string to the console window.

I hope someone can help!

Thank you very much in advance!

Most graciously...

RGBreality

Share this post


Link to post
Share on other sites
Negative1

by console window are you referring to a Command console window already running? the scite console window? or a GUI console window of your creation?


What are we going to do tonight Brain?Same thing we do every night Pinky try to automate the world.

Share this post


Link to post
Share on other sites
RGBreality

Actually, it's a GUI console window from another third-party application--neither Scite's console window nor my own.

RGBreality

Share this post


Link to post
Share on other sites
Negative1

Actually, it's a GUI console window from another third-party application--neither Scite's console window nor my own.

RGBreality

Use the autoit window info tool and if the gui console window has an ID you can use ControlSend:

ControlSend

--------------------------------------------------------------------------------

Sends a string of characters to a control.

ControlSend ( "title", "text", controlID, "string" [, flag] )

Parameters

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.

flag [optional] Changes how "keys" is processed:

flag = 0 (default), Text contains special characters like + to indicate SHIFT and {LEFT} to indicate left arrow.

flag = 1, keys are sent raw.


What are we going to do tonight Brain?Same thing we do every night Pinky try to automate the world.

Share this post


Link to post
Share on other sites
RGBreality

Let me see if that works.

Thank you for your help, Negative1!

RGBreality

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.