DoctorSLO Posted January 18, 2009 Posted January 18, 2009 Hi. I have problem with this script: $IE2 = _IECreate($Povezava) $Gumbi = _IETagNameAllGetCollection($IE2) For $Gumb In $Gumbi If String($Gumb.title) = "Nadgradi zgradbo" Then _IEAction($Gumb, "Click") EndIf Next MsgBox(0, "oo", "good") Exit When I run script and comes to line where is _IEAction($Gumb, "Click") then the IEAction do this click successfully and after click I got this error: ==> The requested action with this object has failed.: If String($Gumb.title) = "Nadgradi zgradbo" Then If String($Gumb.title^ ERROR >Exit code: 1 Time: 19.872 And script exit. I'm asking you if you know why the hell I got error? If I put MsgBox(blablabla) in where is _IEAction($Gumb, "Click") I got no errors.
BrettF Posted January 18, 2009 Posted January 18, 2009 What about if you exit the loop? Also, what is the value of $Povezava? It might make it easier to debug. Also try _IEErrorHandlerRegister to find out why. Cheers, Brett 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!
DoctorSLO Posted January 18, 2009 Author Posted January 18, 2009 (edited) Oh, thx I just put in ExitLoop and Now it's works, ty Edited January 18, 2009 by DoctorSLO
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