autolinktrader Posted October 15, 2012 Share Posted October 15, 2012 is this possable with autoit when my gui open a web page , and my user logs into the web site and lands on a user page can autoit check to see if this page exist , like( if winexist ) but more like if url exist im sorry for uncleare explanaction all i need is my script to wait till a user logs in to my website befor continuing , i happy will a simple single line of code ie if url exist Link to comment Share on other sites More sharing options...
JohnOne Posted October 15, 2012 Share Posted October 15, 2012 WinGetTitle() 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...
autolinktrader Posted October 15, 2012 Author Share Posted October 15, 2012 ;;;;;;;;;; so below i have my buttonCase $msg = $button1 MsgBox(4096, "WAR OF THE POKRBOT, MAN V MACHINE ,POWER OF POKERBOT", "man never stood a chance going to the web site please check out our greate profiles too", 1) Run(@Comspec & " /c start " & "http://www.thesiteofchoice.com");;;;;;;; user presses button;;;;;;;;and website loads up login page user then logs in;;;;;;;;new url pops up;;;;;;;;;is there a bit of code to i can use in a func() that will return 1 if this certain page exist;;;;;;;;;;func webpagethere()if http://www.thesiteofchoice.com/loggedin.php exist thenreuturn 1endifendfunc Link to comment Share on other sites More sharing options...
JohnOne Posted October 15, 2012 Share Posted October 15, 2012 Well a browser generally inherits the name of the webpage it is at, so... ...WingetTitle() 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...
ileandros Posted October 16, 2012 Share Posted October 16, 2012 (edited) Func Webpagethere() Local $url = "http://www.thesiteofchoice.com/loggedin.php" $tittle = WinGetTitle("[CLASS:IEFrame]", "") If $tittle == $url Then Return 1 Else MsgBox(0,"","Page was not loaded") EndIf EndFunc Edited October 16, 2012 by ileandros I feel nothing.It feels great. 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