I am trying to create a script that has the ability to visit a YouTube video and post a comment on my behalf. I am able to get the script to write text in the comment box, but I can not get the script to click the post button.
This is what I have so far.
_IENavigate($mIE, "http://www.youtube.com/watch?v=BNb62NBYvGU") _IELoadWait($mIE) $oForm = _IEGetObjByName($mIE,"comment") _IEAction($oForm, "focus") _IEFormSubmit($oForm) $oSubmit = _IEGetObjByName($mIE,"add_comment") _IEFormElementSetValue($oForm,"Thanks") _IEAction($oSubmit,"click")
Thank you for your time.