Flawblure Posted February 11, 2006 Share Posted February 11, 2006 Is it possible to search a window, such as Internet Explorer or some other web browser, for a string, I dont think it being a link would make a differance, and then find that link's x,y coords? Because the position of this link changes at random times, I'm looking for a way to just find the links coords at the start of the script. I've been messing around with "GetWinText" and "ControlGetPos" and I don't think they do what I'm looking for.... Link to comment Share on other sites More sharing options...
Valuater Posted February 11, 2006 Share Posted February 11, 2006 Welcome to Autoitno, not that i know of,however you can search for the link and click it with IE.au3and to help with IE.au3, you can use the IE.au3 Builderboth are in the Scripts and Scrapts sectionbut.... this could help alot, its for new people to get everythingand learn alothttp://www.autoitscript.com/forum/index.php?showtopic=21048#8) Link to comment Share on other sites More sharing options...
flyingboz Posted February 11, 2006 Share Posted February 11, 2006 (edited) Is it possible to search a window, for a string, then find that link's x,y coords?Perhaps if you described what end result you are trying to accomplish via such a method, there might be a different approach to get your desired outcome. Edited February 11, 2006 by flyingboz Reading the help file before you post... Not only will it make you look smarter, it will make you smarter. Link to comment Share on other sites More sharing options...
Flawblure Posted February 11, 2006 Author Share Posted February 11, 2006 Perhaps if you described what end result you are trying to accomplish via such a method, there might be a different approach to get your desired outcome.I'm trying to search a webpage for a specific string, if that string exists, put the string into a variable.If the above is possible, then would it be possible to simply search the page for any change in text at all, and then if there is, put the text that used to not be there into a variable? Link to comment Share on other sites More sharing options...
Valuater Posted February 11, 2006 Share Posted February 11, 2006 I'm trying to search a webpage for a specific string, if that string exists, put the string into a variable.If the above is possible, then would it be possible to simply search the page for any change in text at all, and then if there is, put the text that used to not be there into a variable?what do you have so far???any script???have you searched for IE.au3 Library8) Link to comment Share on other sites More sharing options...
Flawblure Posted February 11, 2006 Author Share Posted February 11, 2006 what do you have so far???any script???have you searched for IE.au3 Library8)Yes, I've been using IE.au3 library... it's awesome, only problem is I can't figure out how to "attach" to a website that already exists so that I can use links in it. The only script I have so far are little snibbits using IE.au3, not really worth showing.Still havent found the stuff about searching for a string, or better yet, a change in string though. Link to comment Share on other sites More sharing options...
Valuater Posted February 11, 2006 Share Posted February 11, 2006 Yes, I've been using IE.au3 library... it's awesome, only problem is I can't figure out how to "attach" to a website that already exists so that I can use links in it. The only script I have so far are little snibbits using IE.au3, not really worth showing.Still havent found the stuff about searching for a string, or better yet, a change in string though.Great you are using IE.au3... really take a look at the builder, it will help alot alsohttp://www.autoitscript.com/forum/index.ph...st=0&p=137835to attach use the function in IE.au3_IEAttach ($oIE)8) Link to comment Share on other sites More sharing options...
Flawblure Posted February 11, 2006 Author Share Posted February 11, 2006 Great you are using IE.au3... really take a look at the builder, it will help alot alsohttp://www.autoitscript.com/forum/index.ph...st=0&p=137835to attach use the function in IE.au3_IEAttach ($oIE)8)For the _IEAttach($oIE) do i not even need to make $oIE equal to anything?? That alone will just make it work with the current window? Link to comment Share on other sites More sharing options...
Valuater Posted February 11, 2006 Share Posted February 11, 2006 ok... can we make the web sie open from the IE build??? like #include <IE.au3> #Region --- IE-Builder generated code Start --- Dim $oIE $sUrl = "www.autoit3.com" $oIE = _IECreate () _IENavigate ($oIE, $sUrl) ( straight from the ie. au3 builder ) 8) Link to comment Share on other sites More sharing options...
Flawblure Posted February 11, 2006 Author Share Posted February 11, 2006 ok... can we make the web sie open from the IE build??? like #include <IE.au3> #Region --- IE-Builder generated code Start --- Dim $oIE $sUrl = "www.autoit3.com" $oIE = _IECreate () _IENavigate ($oIE, $sUrl) ( straight from the ie. au3 builder ) 8) Right... but once again that makes a new webpage.... I want to attach a currently opened webpage :/. Link to comment Share on other sites More sharing options...
Valuater Posted February 11, 2006 Share Posted February 11, 2006 (edited) Right... but once again that makes a new webpage.... I want to attach a currently opened webpage :/.if i am correct, the web page must be created as an objectbut, i am not sureso... someone else can maybe answer that, or if we could open it from the code above and work with it... i can help8) Edited February 11, 2006 by Valuater Link to comment Share on other sites More sharing options...
Flawblure Posted February 11, 2006 Author Share Posted February 11, 2006 if i am correct, the web page must be created as an objectbut, i am not sureso... someone else can maybe answer that, or if we could open it from the code above and work with it... i can help8)Hmm, alright.... Guess I misunderstood what _IEAttach did then. I thought it made a webpage that object. Link to comment Share on other sites More sharing options...
Valuater Posted February 11, 2006 Share Posted February 11, 2006 if that was ok... lets make it with the code above what is the web address and the word/link you want or was that a no.. you dont want to make it with the ie.au3 tools ???? 8) Link to comment Share on other sites More sharing options...
Flawblure Posted February 11, 2006 Author Share Posted February 11, 2006 if that was ok... lets make it with the code above what is the web address and the word/link you wantor was that a no.. you dont want to make it with the ie.au3 tools????8)Think I figured it out from here... thanks for the help! Link to comment Share on other sites More sharing options...
Valuater Posted February 11, 2006 Share Posted February 11, 2006 Welcome ' 8) 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