iiz Posted July 9, 2007 Share Posted July 9, 2007 ok so i made this really simple script and i wanted to add alot of complexity here is the original: While 1 $delay = Random(3000) MouseClick ("left") Sleep($delay) WEnd i would like this script to click reload on a browser then alt+tab to another browser and click again(since there is no mouse movement i basically just want to add it doing the alt+tab since i can just hover the mouse over the reload button), and be able to repeat this with a delay of about 20seconds or 2k milli if anyone could help me out here that would be great thanks -iiz Link to comment Share on other sites More sharing options...
narayanjr Posted July 9, 2007 Share Posted July 9, 2007 Opt("WinTitleMatchMode", 2) While 1 WinWaitActive("Firefox") ; just put one word thats always in the title here like firefox or Explorer Send("{F5}") Sleep(1000) Send("{ALT DOWN}") Send("{TAB}") Send("{ALT UP}") Sleep(1000) WEnd that should work Link to comment Share on other sites More sharing options...
DW1 Posted July 9, 2007 Share Posted July 9, 2007 Im sure there is a better way to do what you are after. What is it you are trying to accomplish. Alt Tab will error on you if you have an extra window open... and there are built in commands for activating windows... read the help file. AutoIt3 Online Help Link to comment Share on other sites More sharing options...
iiz Posted July 9, 2007 Author Share Posted July 9, 2007 Opt("WinTitleMatchMode", 2) While 1 WinWaitActive("Firefox") ; just put one word thats always in the title here like firefox or Explorer Send("{F5}") Sleep(1000) Send("{ALT DOWN}") Send("{TAB}") Send("{ALT UP}") Sleep(1000) WEnd that should work thank you very much Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now