Sign in to follow this  
Followers 0
allanon

Switching between multiple monitors

2 posts in this topic

Heya,

Am new so thought id start with something that annoys the crap out of me. Switching between my 3 monitors.

Below is the script that was recorded by AutoIt. yet when i try to run the script an icon appears in the task bar but nothing happens. When in editing mode the script sometimes works when tested, but not always. Below it is the reverse script that was also recorded by AutoIt to go back forom using the third monitor (sony tv) to the dual monitor set up I have. Same goes for working sometimes in editing mode but not always. Any advice on why it wont run properly as a script would be appreciated.

This script goes from using my 2 monitors on my comp desk to using one of those monitors and a sony tv to watch movies on.

#region --- Au3Recorder generated code Start ---

_WinWaitActivate("D:\Execs\Scripts\Sony TV Display.au3 * SciTE","")

Send("{LWINDOWN}{LWINUP}")

_WinWaitActivate("Start menu","")

Send("{UP}{UP}{ENTER}")

_WinWaitActivate("Screen Resolution","")

Send("{TAB}{UP}{TAB}{UP}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{RIGHT}{RIGHT}{ENTER}")

_WinWaitActivate("Display Settings","")

Send("{LEFT}{ENTER}")

WinClose("Screen Resolution")

#region --- Internal functions Au3Recorder Start ---

Func _WinWaitActivate($title,$text,$timeout=0)

WinWait($title,$text,$timeout)

If Not WinActive($title,$text) Then WinActivate($title,$text)

WinWaitActive($title,$text,$timeout)

EndFunc

#endregion --- Internal functions Au3Recorder End ---

#endregion --- Au3Recorder generated code End ---

#endregion --- Au3Recorder generated code End ---

And this script is to go back to the 2 monitor set up.

#region --- Au3Recorder generated code Start ---

_WinWaitActivate("D:\Execs\Scripts\Dual Monitor Display.au3 * SciTE [2 of 3]","Source")

Send("{LWINDOWN}{LWINUP}")

_WinWaitActivate("Start menu","All Programs")

Send("{UP}{UP}{ENTER}")

_WinWaitActivate("Screen Resolution","Address: Control Pan")

Send("{TAB}{DOWN}{TAB}{UP}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{RIGHT}{RIGHT}{ENTER}")

_WinWaitActivate("Display Settings","&Keep changes")

Send("{LEFT}{ENTER}")

#region --- Internal functions Au3Recorder Start ---

Func _WinWaitActivate($title,$text,$timeout=0)

WinWait($title,$text,$timeout)

If Not WinActive($title,$text) Then WinActivate($title,$text)

WinWaitActive($title,$text,$timeout)

EndFunc

#endregion --- Internal functions Au3Recorder End ---

#endregion --- Au3Recorder generated code End ---

#endregion --- Au3Recorder generated code End ---

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Forget about Au3Recorder. That's not the way to do anything other than creating yourself the whole number of problems. Send... Send... Send... tactic is nothing but ridiculous.

Read about what you want to do and you will find a proper way to switch.

If you would have problems then, you will find help here. I'm almost positive about that.

Edited by trancexx

♡♡♡

.

eMyvnE

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