Soulstriker Posted February 25, 2010 Share Posted February 25, 2010 (edited) Hi!I've been working with the _IE tools and the forums helped me a lot, but i don't know how to deal with this.I must click on a link that when i click it, pops out a little dialog asking you a YES/No question.Here's the code of the onclick event from the HTML.onclick="if ( !confirm ('//some prompt text') ) { return false; }"I've tried some things with the _IEAction command, without success.Any help would be appreciated.I attached a screenshot of the prompt window too.Thx in advance! Edited February 25, 2010 by Soulstriker Link to comment Share on other sites More sharing options...
PsaltyDS Posted February 25, 2010 Share Posted February 25, 2010 Examine that dialog box with the AutoIt info tool (AU3Info.exe). It might be a normal window with normal controls that respond to ControlSend() or ControlClick(). 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 Link to comment Share on other sites More sharing options...
notsure Posted February 26, 2010 Share Posted February 26, 2010 Java is a killer for AutoIT, but you can easily send an Enter or something to that box. Shouldnt be that hard, if you can name the website we can have a look. Link to comment Share on other sites More sharing options...
Soulstriker Posted February 26, 2010 Author Share Posted February 26, 2010 Hi! Thx for the replies! Ok, I found out that when that box pops out, the script, for some unknown reason stop executing, and anything else that should happen after that box, doesn't happen. What I did was try some control commands. Something curious was that ControlClick didn't work but ControlSend did. I made another script that executes before clicking the link and sends an Enter key to the box. It worked perfect. Thx for the help! 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