Jump to content
Sign in to follow this  
lizardly

Select Text from Text Box

Recommended Posts

lizardly

I need to Select the text (file) path from a text box in an application.

I want it as a variable (string) so I can use the path for file operations.

I've seen the Send("{SHIFTDOWN}{DOWN 1}{SHIFTUP}{CTRLDOWN}c{CTRLUP}") root

but haven't had a chance to play with it yet and don't see how to get it into a variable.

Any hints?

TIA

Share this post


Link to post
Share on other sites
herewasplato

I need to Select the text (file) path from a text box in an application.

I want it as a variable (string) so I can use the path for file operations.

I've seen the Send("{SHIFTDOWN}{DOWN 1}{SHIFTUP}{CTRLDOWN}c{CTRLUP}") root

but haven't had a chance to play with it yet and don't see how to get it into a variable.

Any hints?

TIA

Welcome to the forum.

Take a look in the help file under ClipGet()


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites
lizardly

Welcome to the forum.

Take a look in the help file under ClipGet()

That got me there!

Thanks!

Send("!O") ; Options

Send("p") ; Preferences

For $i = 0 to 6 Step 1 ; tabs to log file path

Send("{Tab}")

Sleep(100)

Next

; Select the old path text to put these two missing files in!

Send("{SHIFTDOWN}{DOWN 1}{SHIFTUP}{CTRLDOWN}c{CTRLUP}")

$SessionPath = ClipGet()

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  

×