ehdtkqorl123 Posted January 9, 2008 Share Posted January 9, 2008 Here is the code $oIE = _IECreate ("http://asdf.com", 0, 0) Global $sText = _IEBodyReadText($oIE) _IEQuit($oIE) Msgbox(0, "", StringInStr("asdf", $sText)) Question is that I am wondering why that StringInStr(..) returns 0 even though asdf.com contains asdf on its page. Somehow when I print $sText, it is displayed as multiple lines.. Something like About asdf What is asdf ? asdf Forums If a variable contains these three lines, for example, how can I find the position of "is"? It doesn't seem like each line is concatenated with \n character Link to comment Share on other sites More sharing options...
DW1 Posted January 9, 2008 Share Posted January 9, 2008 You just have the parameters backwards: StringInStr($sText, "asdf") AutoIt3 Online Help 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