fielpo Posted June 25, 2011 Share Posted June 25, 2011 hi i have a problem with the function if not winexist... i need that it reconise a windows, but the windows have every time a different tile but some words are the same i have this code run( @AutoItExe & " /AutoIt3ExecuteScript mysoftware.exe ") ; <<<<< Test using Notepad. Sleep ( 10000 ) ; <<<<< Wait for CMD to Start. While 1 If Not Wintext("A WORD FROM TITLE") Then $PID = Run( @AutoItExe & " /AutoIt3ExecuteScript mysoftware.exe ") ; <<<<< Use AU3Info Tool in SciTE > Tools to get the CLASS name of the Window. Sleep(5000) ; Sleep Wait. WEnd Exit NOW IF I TEST IT WITH NOTEPAD OR CMD it works fine but if i use with what i need and put just a word from title it doesen't reconize so it start to open windows in loop... Link to comment Share on other sites More sharing options...
somdcomputerguy Posted June 25, 2011 Share Posted June 25, 2011 Search WinTitleMatchMode in Help file. I believe that will resolve your situation. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Andreik Posted June 25, 2011 Share Posted June 25, 2011 AutoItSetOption("WinTitleMatchMode",2) or a dirty way to check with StringInStr() the word you looking for. When the words fail... music speaks. Link to comment Share on other sites More sharing options...
fielpo Posted June 25, 2011 Author Share Posted June 25, 2011 thanks you save me just added Opt("WinTitleMatchMode", 2) and now work well thanks again 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