aio Posted October 4, 2006 Posted October 4, 2006 Thanks. I agree..I haven't had any luck finding any posts with the same issue and a solution either. You would think this would be a common task! Hopefully it's just something we're overlooking, but I've tried a ton of things so far..I've some day off...can anyone give us an help?As far as I've understood, when you click on that kind of links control is taken by the dialog box interrupting the execution of any script line following ...How can we solve this problem?As Duncan says is a very basic automation with IE and it's impossible that none has faced it previously.
aio Posted October 4, 2006 Posted October 4, 2006 Through this whole thread, you've managed to show "nothing" of what you've tried and what hasn't worked for you Did you try the basics?Opt('WinTitleMatchMode', 4) Dim $Continue = True;If $Continue = True then it will (should if it's default) click the Continue or Ok button While 1 If WinExists('classname=#32770') Then If $Continue Then Send('{ENTER}') Else Send('{TAB}{ENTER}') EndIf EndIf Sleep(10) WEnd Ooopss.... Haven't seen this thankyou 'SmOke_N'. I'll try it and give you a feedback.
lte5000 Posted October 4, 2006 Posted October 4, 2006 The whole purpose of this script is to automatically configure a browser-based device - that is why there is not site I can give you to test with. The answer to the second question is the same as the first - this is a trusted device and we want to automatically accept the certs. Both of these are IE dialog boxes, which is why I'm puzzled as to why no one has had this issue before.DuncanM, I ran into something like this a bit ago. Give this code a try. #include <IE.au3> $oIE = _IECreate("https://192.168.100.1", 0, 1, 0) WinWait("Client Authentication", "The Website you want to view") ControlSend("Client Authentication", "OK", 1) HTH.
DuncanM Posted October 4, 2006 Author Posted October 4, 2006 DuncanM, I ran into something like this a bit ago. Give this code a try. #include <IE.au3> $oIE = _IECreate("https://192.168.100.1", 0, 1, 0) WinWait("Client Authentication", "The Website you want to view") ControlSend("Client Authentication", "OK", 1) HTH. lte5000, THANK YOU!!! That did the trick..I knew there had to be some way around it - you're a lifesaver!
lte5000 Posted October 4, 2006 Posted October 4, 2006 lte5000,THANK YOU!!! That did the trick..I knew there had to be some way around it - you're a lifesaver!Welcome!Without those extra parameters (actually the fourth parameter) _IECreate just waits and waits and the page never loadsOptional: specifies whether to wait for page to load before returning0 = Return immediately, not waiting for page to load1 = (Default) Wait for page load to complete before returning
DuncanM Posted October 4, 2006 Author Posted October 4, 2006 Welcome!Without those extra parameters (actually the fourth parameter) _IECreate just waits and waits and the page never loadslte,One more quick question - later in my script, I get references to the left and right frames as follows:$leftFrame = _IEFrameGetCollection($oIE, 1)$rightFrame = _IEFrameGetCollection($oIE, 2)Then, I click a submit button in the right frame, which displays a generic popup window asking me if I want to continue (OK/CANCEL) - I cannot seem to get it to click on the OK button for this popup. Do you know if this could be caused by the fact that I'm referencing a specific frame, or if there are additional parameters I need to use when creating the reference to the right frame? Thanks again!
lte5000 Posted October 4, 2006 Posted October 4, 2006 lte,One more quick question - later in my script, I get references to the left and right frames as follows:$leftFrame = _IEFrameGetCollection($oIE, 1)$rightFrame = _IEFrameGetCollection($oIE, 2)Then, I click a submit button in the right frame, which displays a generic popup window asking me if I want to continue (OK/CANCEL) - I cannot seem to get it to click on the OK button for this popup. Do you know if this could be caused by the fact that I'm referencing a specific frame, or if there are additional parameters I need to use when creating the reference to the right frame? Thanks again!Wouldn't know... without seeing your code.
DuncanM Posted October 5, 2006 Author Posted October 5, 2006 Wouldn't know... without seeing your code. I apologize, but I am not able to import all my code at the moment - my only question is if AutoIT might somehow be waiting for the dialog box to exit before continuing, and if so, is there a way to have it not wait?
lte5000 Posted October 6, 2006 Posted October 6, 2006 I apologize, but I am not able to import all my code at the moment - my only question is if AutoIT might somehow be waiting for the dialog box to exit before continuing, and if so, is there a way to have it not wait? Have you been perusing the docs for the _IE functions? (in the AU3 help file under 'User Defined Functions' > 'IE Management') Anyway, I assume you are using _IEFormSubmit to click the 'submit button'? Try this: _IEFormSubmit ($TheForm, 0)oÝ÷ Ú)ìµæ¡ûaÆ®¶sbôTf÷&Õ7V&ÖBb33cµFTf÷&Ò -------------------------------------------------------------------------------- Submit a specified Form. #include <IE.au3> _IEFormSubmit ( ByRef $o_object [, $f_wait = 1]) Parameters $o_object Object variable of an InternetExplorer.Application, Form object $f_wait Optional: specifies whether to wait for page to load before returning 0 = Return immediately, not waiting for page to load 1 = (Default) Wait for page load to complete before returning
DuncanM Posted October 10, 2006 Author Posted October 10, 2006 Sorry for the delayed response - I've been out the past several days. Thanks for the help, but _IEFormSubmit is not responding. I know I'm referencing the correct form object, and it still will not submit (yet I get no errors, nothing). Have you encountered this before??
emre Posted November 10, 2006 Posted November 10, 2006 (edited) DuncanM, I ran into something like this a bit ago. Give this code a try. #include <IE.au3> $oIE = _IECreate("https://192.168.100.1", 0, 1, 0) WinWait("Client Authentication", "The Website you want to view") ControlSend("Client Authentication", "OK", 1) HTH. Hi need urgent help i tried your code but still doesnt works:( please look #include <IE.au3> $oIE = _IECreate("https://website", 0, 1, 0) WinWait("Client Authentication", "The Website you want to view") ControlSend("Client Authentication", "OK", 1) Edited November 10, 2006 by emre
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