Jump to content

optional value


 Share

Recommended Posts

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]

Link to comment
Share on other sites

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")

:)

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...