Jump to content

Any function like _IEActivate


UNO
 Share

Recommended Posts

Hi All,

Is there any function to activate(I mean to receive focus,so as to sendkeys) a hidden IE instance by supplying its ByRef $o_object

for eg like

_IEActivate( ByRef $o_object )

Anyone has any idea

Thanks in Advance

Link to comment
Share on other sites

Try _IEAction($o_object, "focus")

Dale

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

I tried that too

My idea was using AutoIT as a load/regression testing tool

So i had around 5 dummy threads waiting for a trigger.

Unfortunately 2 thing were not met

1)they were not able to be isolated i.e they interfeared with each other

2)i could not get the focus of the correct instance of IE

Anyone who has some good code for load testing or

making multiple instances work without interfearing with each other.

Link to comment
Share on other sites

#include <IE.au3>

$oIE1 = _IECreate(a url here)

$oIE2 = _IECreate(another url here)

$oIE1 and $oIE2 are now distinct browser instances and you can manipulate them independantly.

If this is not what you are after, please explain more clearly.

Dale

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

DaleHohm ,

But how do I make many instance of the same IE application.

The above code is good for 2 IE instance ,but suppose i want to run 100 instance then how do i do it.

Also the 100 instance should be independent and mustn't interfeare with each other.

They should be able to send the data in the background.

I can try this on an array of 100 but all those different $oIE[] should have to wait at the login screen until all the 100 threads are at the same point and then the trigger should activate.

Then they try to login @ the same time without interfearing each other.

I will write the individual response time into an excel file(suggest if any other good way is possible).@ the server side i will see the results of memstat and other utilities.

Any idea will be appreciated.

Thanks in advance

Link to comment
Share on other sites

$oIE1 ... $oIE100 could all point to the same URL.

You are not clear about what you mean by "interfere with one another".

Note that _IECreate, _IENavigate and others have noWait parameters taht can be passed to make command execution not stall waiting for page loads to complete.

Dale

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...