|
Post by Julio on Nov 4, 2020 18:39:10 GMT
* | Esperar
1 | RUN ACTION | SELECT WINDOW BY NAME | Nueva pestaña
2 | IF | WINDOW TITLE | Nueva pestaña | EXIST | GOTO MACRO LINE | Existe
3 | RUN ACTION | INPUT BOX | No existe::::STRING
4 | RUN ACTION | GOTO MACRO LINE | Esperar
* | Existe
5 | RUN ACTION | INPUT BOX | Existe::::STRING
Estoy utilizando SELECT WINDOW BY NAME en la macro de más arriba conjuntamente con el navegador Chrome y no obtengo el resultado esperado.
Teniendo Chrome abierto y con la pestaña "Nueva pestaña" abierta, el programa siempre me dice que "No existe". Lo mismo ocurre aunque tenga cerrado Chrome.
¿Cual es mi error?
Muchas gracias por tu ayuda.
Saludos
|
|
|
Post by zeak on Nov 9, 2020 0:09:15 GMT
E: Hi Julio, S: Hola Julio, E: From what I can see you have not typed in all the text to select the window by name. S: Por lo que puedo ver, no ha escrito todo el texto para seleccionar la ventana por nombre. E: You have just typed in "New Tab" but what you need to type in is the full name "New Tab - Google Chrome" S: Acaba de escribir "Nueva pestaña", pero lo que debe escribir es el nombre completo "Nueva pestaña - Google Chrome". E: An easy way to see the full name of the window you are selecting is to hover you mouse over the window in the taskbar. S: Una manera fácil de ver el nombre completo de la ventana que está seleccionando es colocar el mouse sobre la ventana en la barra de tareas. E: What you are typing in. S: Qué estás escribiendo.  E: What you need to be typing in. S: Lo que necesita escribir.  E: Hovering over window to see full name. S: Colocando el cursor sobre la ventana para ver el nombre completo.  Espero que esto ayude.
|
|
|
Post by Julio on Nov 10, 2020 16:57:28 GMT
Muchas gracias Zeak.
He probado lo que me dices con la macro....
* | Esperar
1 | RUN ACTION | SELECT WINDOW BY NAME | Nueva pestaña - Google Chrome
2 | IF | WINDOW TITLE | Nueva petaña - Google Chrome | EXIST | GOTO MACRO LINE | Existe
3 | RUN ACTION | INPUT BOX | No existe::::STRING
4 | RUN ACTION | GOTO MACRO LINE | Esperar
* | Existe
5 | RUN ACTION | INPUT BOX | Existe::::STRING
.... y el resultado sigue siendo el mismo: Teniendo una Nueva Pestaña de Google Chrome abierta, la macro siempre me dice que esa pestaña no existe.
Saludos
Julio
|
|
|
Post by zeak on Nov 11, 2020 0:10:23 GMT
E: Hi Julio, S: Hola julio, E: There are a few things I found out when testing this, S: Hay algunas cosas que descubrí al probar esto, E: 1. If the only tab open or the tab selected on Google Chrome is the New Tab then MMM will see that it is there and select it. S: 1. Si la única pestaña abierta o la pestaña seleccionada en Google Chrome es Nueva pestaña, MMM verá que está allí y la seleccionará. E: 2. Even if the only tab open or the tab selected is New Tab, If Google Chrome is minimize, Action Select Window by Name will not maximize it. S: 2. Incluso si la única pestaña abierta o la pestaña seleccionada es Nueva pestaña, si Google Chrome está minimizado, la acción Seleccionar ventana por nombre no la maximizará. E: 3. If you have multiple tabs open in Google Chrome and New Tab is not the one selected, Action Select Window by Name will not switch to it and not recognize it. S: 3. Si tiene varias pestañas abiertas en Google Chrome y Nueva pestaña no es la seleccionada, la ventana de selección de acción por nombre no cambiará a ella y no la reconocerá. E: I noticed in your macro that you had Action Input Box, I changed these to Message Prompt. S: Noté en su macro que tenía un cuadro de entrada de acción, lo cambié a Mensaje de solicitud. E: Below I have done a quick video showing what results I was getting. S: A continuación, he hecho un video rápido que muestra los resultados que estaba obteniendo. 
|
|
|
Post by Julio on Nov 11, 2020 17:45:35 GMT
Muchas gracias Zeak.
He modificado la macro, para dejarla como la tuya.......
* | Esperar
1 | RUN ACTION | SELECT WINDOW BY NAME | Nueva pestaña - Google Chrome
2 | IF | WINDOW TITLE | Nueva petaña - Google Chrome | EXIST | GOTO MACRO LINE | Existe
3 | RUN ACTION | MESSAGE PROMPT | No existe::::0
4 | RUN ACTION | GOTO MACRO LINE | Esperar
* | Existe
5 | RUN ACTION | MESSAGE PROMPT | Existe::::0
...... y lamento decirte que no me funciona como a ti.
En los 3 supuestos tuyos, MMM siempre me dice que "No existe", tanto si la "Nueva pestaña" esta seleccionada o no.
He visto el vídeo tuyo y a mi no me funciona igual. No lo entiendo ¿A qué puede ser debido?
Julio
|
|