Jump to content
Sign in to follow this  
TrashMonkey

Send Future Date

Recommended Posts

TrashMonkey

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.

Share this post


Link to post
Share on other sites
Malkey

_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 by Malkey

Share this post


Link to post
Share on other sites
TrashMonkey

_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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×