Jump to content

Is AutoIt a good fit for what I want to do?


Jambon28
 Share

Go to solution Solved by Earthshine,

Recommended Posts

Hi everyone,

 

First of all, thank you for having me onboard, that's my first message here, and I'm not sure I'm posting in the correct section so, I apology if this is  not the correct section.

Here is an explanation of what I try to do:

I find myself changing my display settings several times a day, so I'm currently looking for a way to record these actions in a kind of macro-command.
The idea is to record what I'm doing in an executable file so that all I have to do is execute the file to have all the actions automatically done in one step, instead of doing them manually one by one.

Basically the actions I'm taking and I'd like to record in my macro-command are:
_ I right click on the desktop
_ I choose "Display settings"
_  I choose "Multiple displays", and I change from "Show only on 1" to "Extend these displays" (or vice versa)

Can you please tell me if AutoIt would be a good fit for this purpose, and what would be the steps to take in order to achieve my goal?

I have very basic coding skills (I did a bit of Python) and I first want to know is AutoIt is able to do this or not before I even try to use it.

Thanks a lot in advance!

 

Link to comment
Share on other sites

Sure it should be able to do that but it is interesting that you change your settings multiple times a day. I find that puzzling. You’re going to want to search for UI automation in the FAQ 31 area

My resources are limited. You must ask the right questions

 

Link to comment
Share on other sites

1 hour ago, Earthshine said:

it is interesting that you change your settings multiple times a day

I actually used to do this as well. I have two computers and two monitors. In the morning I switch to my work computer by moving the cords from my personal computer. Windows politely remembers your last screen setup, but if you don't plug them in simultaneously then it's two changes.

DisplaySwitch.exe is what you're looking for from what I can tell. It won't let you select your primary display, but you can choose how your second screens are used.

DISPLAYSWITCH - Windows CMD - SS64.com

If you do want to change your primary display at the same time, I think UI Automation or some 3rd party apps are required. StackOverflow is failing me by providing the same answer repeatedly

Edit: This will jump you directly to the display settings screen

rundll32.exe shell32.dll,Control_RunDLL desk.cpl
Edited by seadoggie01

All my code provided is Public Domain... but it may not work. ;) Use it, change it, break it, whatever you want.

Spoiler

My Humble Contributions:
Personal Function Documentation - A personal HelpFile for your functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts
UI-SimpleWrappers UDF - Use UI Automation more Simply-er
KeePass UDF - Automate KeePass, a password manager
InputBoxes - Simple Input boxes for various variable types

Link to comment
Share on other sites

Link to comment
Share on other sites

:lol: Just noticed there is a small bug in nirsoft tool.  In the VCP string of capabilities of my primary monitor, there is no space between one capability and the next :

Quote

(vcp(02 04 05 08 10 12 14(01 05 06 08 0B) 16 18 1A 60(01 03)6C 6E 70 C8 9B 9D 9F 9C A0 9EB0 B6 DF)prot(monitor)type(LCD)cmds(01 02 03 07 0C F3)mccs_ver(2.1)asset_eep(64)mpu_ver(V2.00)model(SA240Y bid)mswhql(1))

Nirsoft omits the 6C capability !  Funny...

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