tansu
New Member
Posts: 1
|
Post by tansu on Nov 26, 2020 18:54:55 GMT
I'm new to the MMM program. The program is very useful. I want to use the program in the cargo acceptance process. Problem is pop-up window. When we call the barcode in the cargo acceptance program we use, the computer keeps waiting for the pop-up window. So can the condition be created when the pop up screen is opened in the MMM program since the time is not determined?
Thanks for help
|
|
|
Post by Steve on Nov 27, 2020 9:28:30 GMT
Hi tansu What your after is the "WINDOW TITLE" and "SELECT WINDOW BY NAME" condition (more here www.turnssoft.com/conditions.html#windowtitle and here www.turnssoft.com/conditions.html#selectwindowbyname). window titleThe WINDOW TITLE object evaluates a condition based on the presence of a window title name. The Window Title condition is useful to check if a program window is open. Consider the WINDOW TITLE example statement below taken from a macro condition: 1 | IF | WINDOW TITLE | index.txt - Notepad | EXIST | SELECT WINDOW BY NAME | index.txt - Notepad | ELSE | 1 | RUN ACTION | RUN PROGRAM | D:\Macro\index.txtThis reads - IF a WINDOW with the TITLE named index.txt - Notepad does EXIST (meaning that a window is open that does have that title name) then SELECT the WINDOW BY its NAME. index.txt - Notepad. If the window title named index.txt does not exist, ELSE, then RUN the ACTION to RUN the PROGRAM at D:\Macro\index.txt opening the file. select window by nameSELECT WINDOW BY NAME action selects the open window with the title value that matches the SELECT WINDOW BY NAME value. By selecting a window it is given active scope, for example when clicking into a window that program is given active scope. Consider the SELECT WINDOW BY NAME example statement below taken from a macro condition: 1 | RUN ACTION | SELECT WINDOW BY NAME | New Tab - Mozilla FirefoxThis reads - RUN the ACTION SELECT WINDOW BY NAME the window title 'New Tab - Mozilla Firefox'. So this action will run and select the window with the window title 'New Tab - Mozilla Firefox'. If there is no window with that title then the condition action is skipped. Consider the WINDOW TITLE example statement below used to SELECT WINDOW: 1 | IF | WINDOW TITLE | index.txt - Notepad | EXIST | SELECT WINDOW BY NAME | index.txt - Notepad | ELSE | 1 | RUN ACTION | RUN PROGRAM | D:\Macro\index.txtThis reads - IF a WINDOW with the TITLE named index.txt - Notepad does EXIST (meaning that a window is open that does have that title) then SELECT the WINDOW BY its NAME. index.txt - Notepad. The the windows title named index.txt does not exist, ELSE then RUN the ACTION to RUN the PROGRAM at D:\Macro\index.txt
|
|