Ok so i have sorted out searching the string once it is loaded into a variable.....If at all possible can somone please advise how i pull hidden text based on the window summary above. I belive once i know how to do this i should be all good - Thank you for pointing me in the right direction so far
;This is a test - Once "Acct Info:" has been found
;I then know "Acct Info:" + 123456 will always be 17 chars
;Declare test string....
Dim $Adddet = "bla bla bla bla Acct Info: 123456 asdasdasd"
;Find location of acct info and remove one to ensure is correct number
$result = StringInStr($Adddet, "Acct Info:")
$result = $result - 1
MsgBox(0, "Search result:", $result)
;Remove all chars before "Acct Info:" now that we know where it is....
$Adddet = StringTrimLeft ( $Adddet, $result )
MsgBox(0, "Search result:", $Adddet)
;Get total length of string
;As we know "Acct Info:" + 123456 will be 17 chars we then remove 17 from total
$len = StringLen($Adddet)
$len = $len - 17
;We now use the leftovers to trim the excess chars which leaves us with the result we want :)
$Adddet = StringTrimRight ( $Adddet, $len )
MsgBox(0, "Search result:", $Adddet)