akroon

String operator [ALL]

4 posts in this topic

Hi all,

I'm looking for an operator like [*] in most languages, to work with windows title.

I give an example to understand the situation: i want use a function WinMove() on a window which part of the title have a fixed text, and the rest can change. For example a title which tell how much new mails you have in the inbox can be:

  • 3 New mails!
  • 4 New mails!
  • 33432 New mails!
  • and so on

I want use the function WinMove() on this window.

Is there something like:

WinMove("* New mails!","",0,0)

Thanks for your time :)

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Moved to the appropriate forum, as the DEV forum very clearly states:

Quote

Do not create AutoIt-related topics here, use AutoIt General Help and Support 

Take a look at WinTitleMatchMode in the help file.

Edit: Or wait until someone copies and pastes out of the help file for you :)

Edited by JLogan3o13

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

You can use.

Opt("WinTitleMatchMode", 2) ;1=start, 2=subStr, 3=exact, 4=advanced, -1 to -4=Nocase
 

 

Saludos

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Thank you!

AutoItSetOption("WinTitleMatchMode", 2)

Its working :)

Edited by akroon

Share this post


Link to post
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