I can screen scrap the below box on a website and it will output both text elements if I write the screen scrap variable using WriteLine as shown.
I need to be able to use each text line as a variable later on in the sequence.
So I could make (SEP001…) into variable1 and (IPC-QX…) Into variable2
I’ve searched and can’t really wrap my head around how this would be done.
Really i’m needing to have the program tell where the SEP00… text is located in the list if it’s on top or at the bottom or in the middle of the other text elements. This way the program can choose it and continue on. The only way I found to get the text from the box was with a screen scrap.
You can do one thing you can split the text according to new line by using this code string[ ] lines = theText.Split(new[ ] { Environment.NewLine },StringSplitOptions.None);
In this “lines” will be array of string now you can assign lines[0] in var1 and lines[1] in var2 and use that in further sequence.