Jump to content

Using Data from Window Info


daashag
 Share

Recommended Posts

@daashag,

You are welcome.

StringStripWS ($aArray[0],1)

Removes the "white space" from the front of the path.

StringStripWS ($aArray[0],2)

Removes the "white space" from the end of the path.

StringStripWS ($aArray[0],3)

Removes the "white space" from both ends of the path.

I should have noticed from your post of the "AutoIt Window Info" tool.

If the path was displayed on a separate line in that tool,

then there had to be a CR or CRLF after "001"

and there had to be a CR or CRLF after the path.

If we tell _StringBetween to return everything between '001' and 'TROON', it does just that - including whatever form of line returns your app is using.

I've never worked with _StringBetween before...

Thanks for the opportunity to learn about another of SmOke_N's fine UDF's.

Glad that it helped you out too.

I PM'd piccaso to come to my aid while I was stuck on this...

@piccaso,

Thanks for coming to the thread.

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

Link to comment
Share on other sites

  • 3 months later...

And if beginning and end of visible text is unknow ?

best regard

Then you will not want to use the _StringBetween UDF. Please post more info about what you are working with.

Can you post the info from the AutoIt info tool like in this post:

http://www.autoitscript.com/forum/index.ph...st&p=269150

-MSP-

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

Link to comment
Share on other sites

Please i need still a help:

I ave more same strings within a file,how delete all doubles ?

Tank

I would suggest that you open a new topic in the support forum and post a sample of the text that you are dealing with and a sample of what you want the text to look like after the script runs - or a sample of the text that you want the script to pull out of the starting text.

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

Link to comment
Share on other sites

I would suggest that you open a new topic in the support forum and post a sample of the text that you are dealing with and a sample of what you want the text to look like after the script runs - or a sample of the text that you want the script to pull out of the starting text.

Tank you

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...