Jump to content
iosman123

Switching App Without Losing Keyboard/Mouse Focus?.

Recommended Posts

Hello,

 

I can switch between Chrome windows, however, when the switch happens and if I am typing in an application, for example, notepad, the focus goes to the Chrome tab.

Here is my script:

#include <Constants.au3>

AutoItSetOption("WinTitleMatchMode", $OPT_MATCHANY) ;2
While 1
WinActivate("[TITLE: ChromeTitle1;CLASS:Chrome_WidgetWin_1]")
Sleep(3000)
WinActivate("[TITLE: ChromeTitle2;CLASS:Chrome_WidgetWin_1]")
Sleep(3000)
WinActivate("[TITLE: ChromeTitle3;CLASS:Chrome_WidgetWin_1]")
Sleep(3000)
WinActivate("[TITLE: ChromeTitle4;CLASS:Chrome_WidgetWin_1]")
Sleep(3000)
WEnd

Is there a way to switch the windows w/o losing the keyboard/mouse focus?

 

thanks

iosman

Share this post


Link to post
Share on other sites

@iosman123,

WHt's up with the word-for-word copying of this post: 

 

Jos

@All Others, please refrain from posting until the "all clear".

Share this post


Link to post
Share on other sites
 
 
 
1
On 10/20/2019 at 4:03 PM, iosman123 said:

Hello,

 

I can switch between Chrome windows, however, when the switch happens and if I am typing in an application, for example, notepad, the focus goes to the Chrome tab.

Here is my script:


#include <Constants.au3>

AutoItSetOption("WinTitleMatchMode", $OPT_MATCHANY) ;2
While 1
WinActivate("[TITLE:. ChromeTitle1;CLASS:Chrome_WidgetWin_1]")
Sleep(3000)
WinActivate("[TITLE:. ChromeTitle2;CLASS:Chrome_WidgetWin_1]")
Sleep(3000)
WinActivate("[TITLE:. ChromeTitle3;CLASS:Chrome_WidgetWin_1]")
Sleep(3000)
WinActivate("[TITLE: ChromeTitle4;CLASS:Chrome_WidgetWin_1]")
Sleep(3000)
WEnd

Is there a way to switch the windows w/o losing the keyboard/mouse focus?

 

thanks

iosman

 

thanks my issue has been fixed.

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

×
×
  • Create New...