TrashMonkey Posted April 18, 2013 Posted April 18, 2013 I've been looking around for a solution and have only found this information, yet I still can't get my script to work.Here's the way it looks now Run("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe") WinWaitActive("New Tab - Google Chrome") Send("https://www.facebook.com/events/161462477347458/") Send("{enter}") Sleep(2000) MouseClick("left", 835,426) sleep(500) MouseClick("left", 754,490) Sleep(2000) Send("{tab 5}") Sleep(1000) Local $sNewDate = _DateAdd('d', 7, "2013/04/18") Send($sNewDate)I'm attempting to write a script that will recreate a weekly facebook event. Ultimately I'd like the date to automatically update to the next event. Any help would be appreciated.
Malkey Posted April 19, 2013 Posted April 19, 2013 (edited) _DateAdd is a user function with the conventional leading underscore, and not a built-in function.The help file indicates _DateAdd is stored in the Date.au3 file in the ..AutoIt3Include directory.Therfore, this should be added to the beginning of your script.#include <Date.au3> Edited April 19, 2013 by Malkey
TrashMonkey Posted April 19, 2013 Author Posted April 19, 2013 _DateAdd is a user function with the conventional leading underscore, and not a built-in function. The help file indicates _DateAdd is stored in the Date.au3 file in the ..AutoIt3Include directory. Therfore, this should be added to the beginning of your script. #include <Date.au3> oh jeebus, I can't believe I missed that...Thanks Malkey.
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