Jump to content

Recommended Posts

Posted

I have big problem,

I do not know as put optional value

$optionalvalue = Numbers, words, letters etc....
$result1 = StringInStr(_IEBodyReadText($oframe1), "Text"&$optionalvalue&"Text2"

SORRY FOR MY BAD ENGLISH :)

Posted

Hi

you've forgotten the last ")"

$optionalvalue = Numbers, words, letters etc....
$result1 = StringInStr(_IEBodyReadText($oframe1), "Text" & $optionalvalue & "Text2")

Johannes

Johannes LorenzBensheim, Germanyjlorenz1@web.de[post="12602"]Highlightning AutoIt Syntax in Notepad++ - Just copy in your Profile/application data/notepad++[/post]

Posted

Unless you can describe what you want in some more detail, then many answers can be considered for helping you.

This is one idea, but I think that you want to use StringRegExp() instead of StringInStr() in the search which allows optional characters to search for?

Global $optionalvalue
$optionalvalue &= 16
$optionalvalue &= 'word'

$result1 = StringInStr(_IEBodyReadText($oframe1), "Text" & Eval('optionalvalue') & "Text2")

:)

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
×
×
  • Create New...