Question #264573 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/264573
Status: Open => Answered RaiMan proposed the following answer: this does nothing, but returns the region of the frontmost window App.focusedWindow(); so a possible usage: reg = App.focusedWindow(); Pattern m_upload = new Pattern("D:\\Sikuli\\file.png"); s.wait (m_upload, 3); since you do not have any function before, that gives focus to the element, where you want to type, type will type to whatever GUI element has focus in the moment (apparently your IDE window) s.type("path"); I guess, this would be sufficient (having had a short look on the interesting webpage): App.focus("Firefox"); reg = App.focusedWindow(); Pattern m_upload = new Pattern("D:\\Sikuli\\file.png"); reg.wait (m_upload, 3); // give input focus to the entry field reg.click(); // supposing a suitable click target s.type("path"); -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. _______________________________________________ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp