Jump to content

_IECreateEmbedded doesn't effect for pop-up window


Recommended Posts

hi. I am having problem with using IECreateEmbedded.

I wrote a script to login to the particular site. and it succeed...

but, after log-on, the problem occurs.

This site runs with pop-up window, and get some information from that window (using java script) to the main window.

The problem is that, even though I logged on the site, it doesn't effect for the pop-up window,

i mean after i click some link in the site(using auto-it script) and it returns a pop-up window, it says "I didn't log-on".

so i have to log-on once again....

I thinks it is because my log-on information doesn't effect for the pop-up window, it only works for the IEcreated window by Auto-it.

Are there any way to make it also work for the pop-up window.

it is in emergency.

I really need your help.

plz. reply .. plzplzplzplzplzplzplplz

here is my code..

#include <GUIConstants.au3>
#include <IE.au3>
AutoItSetOption("GUICloseOnESC", 1); Send the $GUI_EVENT_CLOSE message when ESC is pressed 
HotKeySet("{ESC}", "Terminate") ; press ESC to activate "Terminate" Function.(at bottom)
_IEErrorHandlerRegister ()

$handle_NMS = _IECreateEmbedded () 
$main_GUI=GUICreate($title_wk, $defaultWidth, $defaultHeight, 20, 20, $WS_OVERLAPPEDWINDOW)
$GUIActiveX = GUICtrlCreateObj($handle_NMS, 10, 20, $defaultWidth-40, $defaultHeight-30)
,,,,,,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,,,,
Link to comment
Share on other sites

Does it work if you just do a normal _IECreate?

If so, do you need to use the _IECreateEmbedded function? (to display what you're doing?) If you need to have it there to show something, you could always do your navigating in a hidden window you make with _IECreate (provided it worked) and then just have it keep writing to your embedded control to keep updating the HTML to reflect what's in your Hidden window....

Link to comment
Share on other sites

Does it work if you just do a normal _IECreate?

If so, do you need to use the _IECreateEmbedded function? (to display what you're doing?) If you need to have it there to show something, you could always do your navigating in a hidden window you make with _IECreate (provided it worked) and then just have it keep writing to your embedded control to keep updating the HTML to reflect what's in your Hidden window....

The reason I must use IE Embedded is that the script must work for other display resolution. (1024*764,, and so on..)

The Internet site I am working is made by jave script. so i cannot get retrieve the forms or other things..

Only thing I can do is Mouseclick in specific points.(X,Y).

If i use _IECreate, point x,y is changed according to its display resolution, therefore i have to work with IECreateEmbedded..

...

and,, i did edit my script with your idea and it works, but i have to log in twice; one with IECREATE and the other with IECreateEmbedde.

but if there's a way to solve the point problem with IECreate..(the point(x,y) is changed with display resoltion..)

let me know.. :D

I really appreciate your help.

thinks.

Thanks for your help.

:o

Edited by wonnylee
Link to comment
Share on other sites

Sure sounds like a game and sure is hard to believe it is an emergency.

Dale

Edited by DaleHohm

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...