Sign in to follow this  
Followers 0
kimurtus

help with IE popup msgbox

6 posts in this topic

here is my script,

#include <IE.au3>
$oIE = _IECreate ("http://wmeng.exchanger.ru/asp/wmlist.asp")
$oForm = _IEFormGetObjByName ($oIE, "beforepay")
$oSelect = _IEFormElementGetObjByName ($oForm, "exchtype")

_IEFormElementOptionselect ($oSelect, 22, 1, "byValue") ;select element wmy --> wmr

I need to click the question box that popup and then read the data from the site, i cant get past the popup msg box, please help

Share this post


Link to post
Share on other sites



Examine the popup dialog box with AU3Info.exe, the AutoIt Window Info Tool. You will either find it's an IE dialog with HTML elements in it, or it's a standard Windows dialog like a MsgBox(). If it is an HTML page, then use _IEAttach() with the "DialogBox" option to get a reference and use the _IE* functions. For a Windows dialog just use the normal ControlSend() functions, etc.

;)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

thanks for answer, i try controlsend but the script waits the return from the browser wichs is asking if you sure to load the page i selected, so i can't controlc click it unles i have another script running and looking for it and i dont want to work it that way

Share this post


Link to post
Share on other sites

I don't think _IEFormElementOptionselect() should be blocking you script. Is that really where it gets stuck?

;)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

yes becose when it select the option, it popups asking if that is the direction you choose, and after you accept, it loads the site and continue with the script line

Share this post


Link to post
Share on other sites

Then it sounds like there is an "onchange" event attached to that option that kicks a javascript that is blocking. You might have to spawn a child process script from the main right before do it, just to handle that dialog.

It's not hard to do. Your script can just spawn a copy of itself with a command line option that tells it to just handle that dialog and close.

;)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0