Drew Posted July 23, 2008 Share Posted July 23, 2008 (edited) I'm writing something to automate IE , and I was wondering if there was a way to see if the user is currently logged in , or needs to. Any suggestions? Edit: I apologize for the double post , it wasn't intentional. Edited July 23, 2008 by Drew Link to comment Share on other sites More sharing options...
d4rk Posted July 23, 2008 Share Posted July 23, 2008 (edited) Ok, logged in what? a site or his PC ? Edited July 23, 2008 by d4rk [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys Link to comment Share on other sites More sharing options...
Drew Posted July 23, 2008 Author Share Posted July 23, 2008 Site Link to comment Share on other sites More sharing options...
d4rk Posted July 23, 2008 Share Posted July 23, 2008 Check the cookies or check in the HTML sources, you can find some string like "Welcome back","Last visit at", ... anything prove his appearence [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys Link to comment Share on other sites More sharing options...
Drew Posted July 23, 2008 Author Share Posted July 23, 2008 How would I read the source without having to actually open it? Link to comment Share on other sites More sharing options...
d4rk Posted July 23, 2008 Share Posted July 23, 2008 Source is in pocket once you search the web, just look _IE* in the UDFs document [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys Link to comment Share on other sites More sharing options...
Drew Posted July 23, 2008 Author Share Posted July 23, 2008 I've read the source and found where I can tell if their logged in or not but I'm unsure how to to tell the script where to read it. Here's what I found in the source: ClientContext = {"UserId":-1,"DisplayFriendId":0,"IsLoggedIn":false}; Link to comment Share on other sites More sharing options...
d4rk Posted July 23, 2008 Share Posted July 23, 2008 If StringInStr("Your HTML Source","Your KeyWord",2)<>0 then msgbox(64,"","Log in") Endif [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys Link to comment Share on other sites More sharing options...
Drew Posted July 23, 2008 Author Share Posted July 23, 2008 What would I type for "Your HTML Source" , because I don't have it on my computer or anything. Link to comment Share on other sites More sharing options...
d4rk Posted July 23, 2008 Share Posted July 23, 2008 As i said, look IE* in the UDFs, no one here gonna make it for you [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys Link to comment Share on other sites More sharing options...
Drew Posted July 23, 2008 Author Share Posted July 23, 2008 I'm not asking you to make it for me. That is by far the last thing I'm searching for. I'm simply confused as to what sort of address I put in for the script to read the source. I'm not new to AutoIt , but I am brand new to any IE automation... So please excuse my inexperience. Link to comment Share on other sites More sharing options...
Drew Posted July 24, 2008 Author Share Posted July 24, 2008 I've tried several things , I'm still unsure what I'm supposed to use to read my source d4rk. I'm not looking for you to write my script for me, I'm asking for help. I'm willing to do my own work, and my own research. The section in the helpfile that covers the IE commands is a rather large, and slightly confusing to one who has never worked with such before. If you could point me to a few helpful commands that's all I'm asking. Thanks. Link to comment Share on other sites More sharing options...
bogQ Posted July 25, 2008 Share Posted July 25, 2008 I've tried several things #include <File.au3> #include <IE.au3> $oIE = _IECreate ("http://www.autoitscript.com/autoit3/") $sHTML = _IEBodyReadHTML ($oIE) filewrite("7.txt",$sHTML) Dim $search = "7.txt" Dim $find = "AutoIt</a> (and AutoItX)" Dim $aRecords If Not _FileReadToArray($search,$aRecords) Then EndIf For $x = 1 to $aRecords[0] If StringInStr($aRecords[$x], $find) Then $lineQ = Number($x) Next $file = FileOpen("7.txt", 0) $line = FileReadLine($file, $lineQ) $dataTXT = StringSplit($line," ") MsgBox(0,"","Autoit Version "&$dataTXT[5]) helpful commands _IEBodyReadHTML filewrite _FileReadToArray there is probably faser way 4 all of this but this will work TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. 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