cent Posted May 7, 2009 Share Posted May 7, 2009 Hello everyone ! I have a problem with the _StringBetween function. It won't return me nothing even if $o1 is a string and do return the text i want to parse. Can you please tell me where i'm wrong ? $o1 = _IEBodyReadText($oFrame) $o = String ($o1) ; i ve tried without this line too $Subj= _StringBetween( $o, 'F', 'll') $Sender = _StringBetween( $o, 'To: ', ' (@hotmail.com)') Link to comment Share on other sites More sharing options...
CodyBarrett Posted May 7, 2009 Share Posted May 7, 2009 i can't see where your using it in it.. but try this msgbox (48, 'Notification', $Subj[0]) ;$subj[0] returns the first found string [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] Link to comment Share on other sites More sharing options...
Zedna Posted May 7, 2009 Share Posted May 7, 2009 (edited) Try testing with constant as input text: $o1 = 'F Some subject||To: person (@hotmail.com)' $Subj= _StringBetween( $o, 'F', 'll') $Sender = _StringBetween( $o, 'To: ', ' (@hotmail.com)') Maybe there is problem with CRLF chars inside text. Edited May 7, 2009 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
cent Posted May 7, 2009 Author Share Posted May 7, 2009 i can't see where your using it in it.. but try this msgbox (48, 'Notification', $Subj[0]) ;$subj[0] returns the first found string Hey looks like it's working thank you very much mate ! Actually i'm using it in a script that login to my hotmail and retrieve the mails title + sender. It's made to make some tests. Try testing with constant as input text: $o1 = 'F Some subject||To: person (@hotmail.com)' $Subj= _StringBetween( $o, 'F', 'll') $Sender = _StringBetween( $o, 'To: ', ' (@hotmail.com)') Maybe there is problem with CRLF chars inside text. That was my first fear too ^^ Thx for ur answer !! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now