cortx Posted May 29, 2008 Share Posted May 29, 2008 Hi,Hi everybody, i need you, because my knowledge are not enoughi would like to make a function what get in a variable an URL of destination about a picture.For example on this website:http://www.autoitscript.com/autoit3/The picture link on http://www.autoitscript.com/autoit3/downloads_gfx.shtml.So, for me, I want to get this link http://www.autoitscript.com/autoit3/downloads_gfx.shtml in a variableFor information, if can be usefull,The mouse pointer is always on the pictureBest RegardsCortX Link to comment Share on other sites More sharing options...
Valuater Posted May 29, 2008 Share Posted May 29, 2008 $Var = "http://www.autoitscript.com/autoit3/downloads_gfx.shtml" ShellExecute($Var) Sleep(5000) 8) Link to comment Share on other sites More sharing options...
cortx Posted May 29, 2008 Author Share Posted May 29, 2008 (edited) $Var = "http://www.autoitscript.com/autoit3/downloads_gfx.shtml" ShellExecute($Var) Sleep(5000) 8)I think you have not understand my ask. You code execute the url, for me I just want to get it in a variable for write it in a log file. The link behind the image is not know by me, it's only for example as I give you that. If you want an other example: How to get the URL link under the first picture on this site AZERTY search in google image Thanks Edited May 29, 2008 by cortx Link to comment Share on other sites More sharing options...
cortx Posted May 29, 2008 Author Share Posted May 29, 2008 If it's be usefull, the link what I want to get is show in the status bar of Internet Explorer; Link to comment Share on other sites More sharing options...
cortx Posted May 29, 2008 Author Share Posted May 29, 2008 Hello everybody. I found an answer seams to be work, I get the information in the status bar. AutoItSetOption("WinTitleMatchMode", 2) $x = StatusbarGetText("Internet Explorer") MsgBox(0, "Internet Explorer's status bar says:", $x) Thanks. Link to comment Share on other sites More sharing options...
yyyy273 Posted May 29, 2008 Share Posted May 29, 2008 #include <INet.au3> $source = _INetGetSource("http://www.autoitscript.com/autoit3/") $array = StringRegExp($source,'(<a href=".*"><img src=")',3) for $i = 0 to ubound($array) -1 $array[$i] = stringtrimleft($array[$i],9) $array[$i] = stringtrimright($array[$i],12) consolewrite("Array[" & $i & "] = " & $array[$i] & @CRLF) Next 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