NeKuDa Posted December 17, 2007 Posted December 17, 2007 (edited) I want to make a program that goes to a certain page on the web using firefox browser. fills a form and repeats the process every hour. while true ShellExecute("address") WinWaitActive("Site Name - Mozilla Firefox"); sleep(Random(1111,2222)); MouseClick("left",X, Y); Send("0000"); Send("{ENTER}"); sleep(Random(4000,4444)); WinKill("Site Name - Mozilla Firefox"); sleep(Random(4000,4444)); sleep(360000); wend this is very ugly but seems to work. and the questions are: 1)how can I make it more elegant? 2)my problem is that my small brother/sister use my PC. 2.1)how can I disable the keyboard/mouse for the time the script works? 2.2)and also add a warning with big letters on the upper right side of the screen that keyboard/mouse gonna be disabled in mm:ss. thats all thanks a lot ahead. Edited December 17, 2007 by NeKuDa
Nahuel Posted December 17, 2007 Posted December 17, 2007 How about you use IE.au3 with Interet Explorer and save yourself a lot of trouble?
PsaltyDS Posted December 17, 2007 Posted December 17, 2007 and the questions are:1)how can I make it more elegant?Nahuel answered that already...2)my problem is that my small brother/sister use my PC.Get a job, an apartment, and a girlfriend (in that order) and your little sibs will no longer be your biggest problem!2.1)how can I disable the keyboard/mouse for the time the script works?BlockInput() in the help file.2.2)and also add a warning with big letters on the upper right side of the screen that keyboard/mouse gonna be disabled in mm:ss.SplashTextOn() in the help file.thats all thanks a lot ahead.You're welcome a lot ahead... whatever that means. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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