; Author: Zach Boatrite ; Script Function: ; Automatically runs slayer quest (facebook) ; ; Prompt the user to run the script - use a Yes/No prompt (4 - see help file) $answer = MsgBox(4, "Slay it!", "This script will run firefox and repeatedly do the first slayer task in facebook. Run?") ; Check the user's answer to the prompt (see the help file for MsgBox return values) ; If "No" was clicked (7) then exit the script If $answer = 7 Then MsgBox(0, "AutoIt", "OK. Bye!") Exit EndIf ; Run Firefox Send("#r") WinWaitActive("Run") Send("firefox.exe ""http://apps.facebook.com/slayers/quests-start.php?quest=101""") Send("{ENTER}") ; Facebook will ask to sign in, just hit enter WinWaitActive("Login | Facebook - Mozilla Firefox") Sleep(5000) Send("{ENTER}") ; Wait for Firefox to become active WinWaitActive("Slayers on Facebook - Mozilla Firefox") ; Send the slayer quest url to the address bar Sleep(5000) Send("!d") Send("http://apps.facebook.com/slayers/quests-start.php?quest=101") Send("{ENTER}") While True ; Now wait for 10 minutes to regain energy points (10 min * 60 sec/min = 600 sec * 1000 ms/sec = 60000 ms) ; Sleep(300000) ; Send("{F5}") ; Sleep(300000) For $count = 1 to 20 Sleep(30000) Send("{F5}") Next ; Now resend url by going to address bar (alt + d) and entering the url for that quest, and hit enter Send("!d") Send("http://apps.facebook.com/slayers/quests-start.php?quest=101") Send("{ENTER}") WEnd ; Finished!