Jump to content

Select Text from Text Box


Recommended Posts

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

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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()

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...