Sign in to follow this  
Followers 0
SnYder

Internet.Application (Options)

4 posts in this topic

Need help! I'm new to scripting in general and very new to AutoIT. I have developed an automation tool for some routine functions that involve using excel spreadsheets and IE. The tool is used by many users and I have run into some problems with mouse clicks. The tool was developed using my desktop and my preferences. I have no control on how other users have their browsers configured (small icons with text or large icons with text, etceteras).

Question: Is there a way I can select how I want the IE browser set up while I run my script (only for the session)? In my code I'm using the following ...

$oIE=ObjCreate("InternetExplorer.Application.1")

With $oIE

.Visible=1

.Left = 0

.Top = 0

.Height=600

.Width=900

.Silent=1

EndWith

Are there any other options where I can say turn off links, make icons small (or the way I want)? This is so that the mouse click is exactly where it is intended. I'm using absolute screen coordinates and have tried the relative screen coordinates without any success.

Thanks for all the help.

Snyder

Share this post


Link to post
Share on other sites



I would suggest staying away from using mouse click, instead try to use only the IE.au3 function to accomplish your automation. If you are having troubles with a specific page post a link or the source and I'm sure we can provide assistance.

Share this post


Link to post
Share on other sites

Just another voice chiming in to the "stay away from mouse clicks" chorus.

-S


(Yet Another) ExcelCOM UDF"A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly...[indent]...specialization is for insects." - R. A. Heinlein[/indent]

Share this post


Link to post
Share on other sites

Thanks for the suggestions.

I have been able to accomplish it with Mouseclicks. I do agree that it is probably not the best way but gets the job done. I was able to use one more object ...

".Toolbar=False"

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