|
Post by Julio on Jan 4, 2022 17:59:29 GMT
Hola, buenas tardes.
Haciendo pruebas he comparado el comportamiento de las 2 condiciones siguientes: 1ª.- IF | WINDOW TITLE | Titulo1 | EXIST.....
2ª.- RUN ACTION | SELECT WINDOW BY NAME | Nombre1
Para que la 1ª condicion sea cierta es necesario que "Titulo1" coincida completamente con el título de la ventana de la barra de tareas. Pero el carácter “ñ" en los títulos de las ventanas no es reconocido en dicha comparación aunque esté presente en" Titulo1".
Para que la condición 2ª sea cierta es necesario que "Nombre1" coincida con los primeros caracteres de la ventana de la barra de tareas. En esta comparación se reconoce el carácter "ñ" en el nombre de la ventana.
¿Es esto correcto?.
En caso afirmativo.... ¿es posible que la comparacion con "Nombre1" que hace la 2ª condición, se haga de igual manera con "Titulo1" en la 1ª?. Es decir, que no sea necesario escribir en "Titulo1" el nombre completo del titulo de la ventana y se admita el caracter "ñ" en dicho titulo, como sucede en la condición 2ª.
Saludos
|
|
|
Post by philranger on Jan 4, 2022 22:08:09 GMT
Hello, good afternoon.
By doing tests I have compared the behavior of the following 2 conditions: 1st.- IF | WINDOW TITLE | Title1 | EXIST .....
2nd.- RUN ACTION | SELECT WINDOW BY NAME | Name1
For the 1st condition to be true, it is necessary that "Title1" completely matches the title of the taskbar window. But the character "ñ" in the window titles is not recognized in this comparison even if it is present in "Title1".
For the 2nd condition to be true, "Name1" must match the first characters of the taskbar window. This comparison recognizes the "ñ" character in the window name.
Is this correct?.
If so ... is it possible that the comparison with "Name1" that makes the 2nd condition, is made in the same way with "Title1" in the 1st? That is, it is not necessary to write in "Title1" the full name of the window title and the character "ñ" is allowed in said title, as in the 2nd condition.
Greetings
|
|
|
Post by philranger on Jan 6, 2022 21:24:13 GMT
Hello,
I am not familiar with using accentuated characters in MMM, sorry.
What I usually do is to go from one program to the other one by using the command:
1 | X | X | 50 | Keypress Alt+ | tab
It is a good idea to let around 200 milliseconds for this command to complete before the next action.
Hoping this helps a bit!
|
|
|
Post by philranger on Jan 6, 2022 21:28:36 GMT
|
|
|
Post by Bill on Feb 14, 2022 13:24:54 GMT
How can i use condition entry like this:
40 | IF | WINDOW TITLE | Part1 | Part2 | EXIST | EXIT
I want to check if window title matched with "Part1 | Part2" but it seem not work. I already try some type of configuration like:
40 | IF | WINDOW TITLE | Part1 \| Part2 | EXIST | EXIT
40 | IF | WINDOW TITLE | Part1 \\| Part2 | EXIST | EXIT
40 | IF | WINDOW TITLE | "Part1 | Part2" | EXIST | EXIT
Please help <3
|
|
|
Post by julio on Feb 15, 2022 18:14:14 GMT
Hello Philranger.
Thank you very much for your answer.
I am sorry to inform you that your contribution has not helped me because I was referring, not to application windows such as Notepad that do work, but to Chrome Browser windows (tabs) active on the taskbar.
I hope I have explained well. Excuse my English.
Greetings
|
|
|
Post by philranger on Feb 18, 2022 20:21:41 GMT
Hello,
Your English was perfect. I don’t habe Chrome on my machine but normally a windows name includes the program name as well as the file name. You may have to concatenate them in a single string though.
|
|
|
Post by Steve on Mar 7, 2022 21:47:33 GMT
How can i use condition entry like this: 40 | IF | WINDOW TITLE | Part1 | Part2 | EXIST | EXIT I want to check if window title matched with "Part1 | Part2" but it seem not work. I already try some type of configuration like: 40 | IF | WINDOW TITLE | Part1 \| Part2 | EXIST | EXIT 40 | IF | WINDOW TITLE | Part1 \\| Part2 | EXIST | EXIT 40 | IF | WINDOW TITLE | "Part1 | Part2" | EXIST | EXIT Please help <3 Hi Bill, Please start a new thread for this one. Cheers.
|
|