Sign in to follow this  
Followers 0
tweakster2010

_IECreate vs ShellExecute

3 posts in this topic

I am trying to figure out a faster way to call a website and login without having to rely on _IEcreate for calling the website, the reason being is _IECreate calling said website which is a citrix environment login can take 15+ seconds to load. Shellexecute takes 2-3 seconds to load(still using IE as the default browser). I assume this is due to the way the functions are utilized and the field is auto populated by the login information I have listed, vs when I shellexecute ill throw in a sleep the send then sleep and send.

so IECreate round time is 20 seconds to login

Shellexecute is 5 seconds to login

Does anyone know a way to improve the speed of IEcreate? I prefer it as filling the fields automatically is ideal over hoping a user doesnt click in the time it loads into something else messing up the next key stroke. The Joys of login scripts to reduce admin time of having to log into each system manually :(

Share this post


Link to post
Share on other sites



You have to understand the difference between the two functions to understand which you want to rely on. _IECreate is going to create a browser object, and will return that object to you. It gives you something "solid" to script against after it is created. Using ShellExecute, you are basically just running the external program. The most you get back I believe is the Process ID is available; you don't get an actual object for further use.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

I think I understand a little better. Is there a way to improve the speed of _IECreate? I have noticed I use 3 internal sites with it. Only remote sessions have an issue otherwise they are quick. Maybe its the environment and what not with the fill data. Ahhhh well it was worth the thought. :) Thank you for the thorough response, helps people like me who get a bit of the gist but sometimes lack the understanding of the fundamentals (my biggest issue from time to time). Trial and error is how i learn :D AND TONS OF FORUM searching. waters has been a godsend for most of my Issues LOL.

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