Sign in to follow this  
Followers 0
IsmokeIdrank

Making a more universal script

7 posts in this topic

As I'm getting more use to using autoit and enjoying practicing and learning new things I thought I'd ask friends to give me some ideas for things they could possibly need automated but then I realized that I'm unsure if that would even work. At this time I seem to use a lot of pixelsearch to make sure the program isn't just wildly clicking with random timers and it works out great, but if I was to make something for someone else and they had a different resolution or possibly because I have adblock then some websites may be positioned slightly different to me such as hotmail, forums, etc.

So I'm curious if there is some kind of work-around to all this or if there's a command that would be much more accurate than pixelsearch, or if I'm just going to have to ask for their monitor resolution and use it while I make their script. Of course this is only a problem if mouseclicks are involved but I am curious none the less.

Share this post


Link to post
Share on other sites



Try to write scripts independant of monitor resolutions!

How to do this depends on the task you try to automate.

There are many UDFs (User Defined Functions) available with AutoIt or on the forum which will help you.

Give us an example on what you try to do and we can point you into the right direction.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Hint:

See @DesktopWidth & @DesktopHeight in the help file under Macros.


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

Well my friend is a sales manager at a store and is constantly receiving sales reports so he asked me if I could do something along of lines of, watching his hotmail account and any time it spots an email with his work's name (I guess they all have the subject as the name of the store?) that it would take that email and push it into a folder for him so he can easily get to them when he's away from his computer/phone. The idea is to keep this running constantly at home because he never turns his computer off anyways and apparently he gets quite a bit of emails and would rather not sift through it all.

Share this post


Link to post
Share on other sites

Is he using the Internet Explorer to access his hotmail account or a mail client like Outlook?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Is he using the Internet Explorer to access his hotmail account or a mail client like Outlook?

most likely firefox or google chrome but I'm sure I can get him to just use IE for this, regardless, not using outlook.

Share this post


Link to post
Share on other sites

Use the "Advanced Search" feature of this forum and search for "hotmail" in the thread title only. You will get a lot of hits that should you get started.

Here is a link to the Haven't used it myself but maybe it gives you an idea how to do it for hotmail.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

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