--- In [email protected], "nickodemos2002" <nickodemos2...@...> wrote: > > OK. I did some work on my own and came up with this. Works OK but is there > anything I can do to make it cleaner? > > Win.Keys("^c") > Win.Keys("^t") > Wait.For(500) > Win.Keys("http://www.classiccinemazone.com/index.php?page=torrents&active=0&order=data&by=DESC&pages=1{en}") > Wait.For(5000) > Wait.For(activewindow("*Index->Torrents*")) > Win.Keys("^fSearch Torrents{en}{esc}{tab}^v{en}") > > I am using this under a call to snippets. Is there another way or is this > how you call up your macros and scripts? >
Why bother with sending keys to the browser, just construct the url and launch it: Function FindMovie(movie) local name=replacechars(movie, "\x20", "+") local cmd="http://www.classiccinemazone.com/index.php?" cmd++="page=torrents&search=" cmd++=name++"&category=0&active=0" do(cmd) quit Save above in a script file, e.g., moviescripts.powerpro, and make a hotkey with the following command: .moviescri...@findmovie(clip.get) Regards, Sheri
