Jump to content

Recommended Posts

Posted

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 :(

  • Moderators
  • Solution
Posted

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.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Posted

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.

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
  • Recently Browsing   0 members

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