set_window function is used for giving input to the window.win_activate function is used for the activate window.Note: In scripts, important to use win_activate function before set_window function in point of syncronization
[Source: JAGAN MOHAN "Interview questions bible"]
[Source: JAGAN MOHAN "Interview questions bible"]