Jump to content

Making a more universal script


Recommended Posts

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.

Link to comment
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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
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!"

Link to comment
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.

Link to comment
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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

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