zeng Posted March 6, 2008 Share Posted March 6, 2008 (edited) This is a totally newbie question. I was not able to figure out how to do the 2nd step: (1) click link#4 from URL1, which becomes URL2, (2) click link #5 from URL2 #include <IE.au3> $oIE = _IEcreate (URL1) _IELinkClickByIndex ($oIE, 4) winwait (URL2) _IELinkClickByIndex (?, 5) What do I use for ? Since URL2 was arrived by clicking from URL1, I cannot use IEcreate or IENavigate to assign new $oIE, what is the solution? Thanks. Edited March 6, 2008 by zeng Link to comment Share on other sites More sharing options...
BrettF Posted March 6, 2008 Share Posted March 6, 2008 This is a totally newbie question. I was not able to figure out how to do the 2nd step: (1) click link#4 from URL1, which becomes URL2, (2) click link #5 from URL2 #include <IE.au3> $oIE = _IEcreate (URL1) _IELinkClickByIndex ($oIE, 4) winwait (URL2) _IELinkClickByIndex (?, 5) What do I use for ? Since URL2 was arrived by clicking from URL1, I cannot use IEcreate or IENavigate to assign new $oIE, what is the solution? Thanks.Ah, but here you will find something interesting. Hopefully the following will help you understand #include <IE.au3> $oIe = _IECreate ("www.autoitscript.com", 1, 1, 1) $location = _IEPropertyGet ($oIe, "locationurl") MsgBox (0, "Location of $oIe is...", $location) _IENavigate ($oIe, "www.google.com", 1) $location = _IEPropertyGet ($oIe, "locationurl") MsgBox (0, "Location of $oIe is...", $location) Not quite sure where your problem is, as I don't have enough of your code to test with, now what the website is. I'm sure Dale will pop in later to clear up any other questions... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
muhmuuh Posted March 6, 2008 Share Posted March 6, 2008 This is a totally newbie question. I was not able to figure out how to do the 2nd step: (1) click link#4 from URL1, which becomes URL2, (2) click link #5 from URL2#include <IE.au3>$oIE = _IEcreate (URL1)_IELinkClickByIndex ($oIE, 4)winwait (URL2)_IELinkClickByIndex (?, 5)What do I use for ? Since URL2 was arrived by clicking from URL1, I cannot use IEcreate or IENavigate to assign new $oIE, what is the solution?Thanks.You should use _IELinkClickByIndex ($oIE, 5). $oIE points (maybe not the correct word) to the window, not to the url if that makes any sense. Also if you want to wait until the page is loaded completely I sugest you use _IELoadWait() instead of winwait.I hope I helped you. I ran. I ran until my muscles burned and my veins pumped battery acid. Then I ran some more. 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