darklordreturns Posted May 13, 2010 Share Posted May 13, 2010 Hi, I am new to auto it. I am trying to make a script. which log will allow me to log in in face book and then log out form face book. My 1st question is....if web page can not be displayed how to refresh it? and 2nd question is how log out from a the site?(face book) Regards DLR Link to comment Share on other sites More sharing options...
niubbone Posted May 13, 2010 Share Posted May 13, 2010 Hi, I'm pretty new to autoit too. What I found for you is: _IEAction This should do the work. Check help file. Should be something like _IEAction ($Yourpage, "refresh"), to reload a page. No idea about the logout. Sorry. Link to comment Share on other sites More sharing options...
Tvern Posted May 13, 2010 Share Posted May 13, 2010 (edited) In the page source the logout button looks like this: <a href="http://www.facebook.com/logout.php?h=6e14796ddd7a2c1c2a2822519dc82e6a&t=1273749133&ref=nb">Logout</a> I assume the values for "h", "t" and "ref" are dynamically generated, so you can't just use a static logout url. Assuming that you are using the _IE UDF: I would first attempt to do this using _IELinkClickByText(). If that fails you can always just read the link from the page source and _IENavigate() to it. edit: the link got messed op Edited May 13, 2010 by Tvern Link to comment Share on other sites More sharing options...
JohnOne Posted May 13, 2010 Share Posted May 13, 2010 Or send {F5} to the window. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
darklordreturns Posted May 13, 2010 Author Share Posted May 13, 2010 Thanks guys for advice. I hope now i can do it. Link to comment Share on other sites More sharing options...
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