sarahjohns388

I need to automatically switch between 2 windows with same description

Recommended Posts

Hello All,

I am trying to get 4 Windows to switch every 10 seconds between the different windows - I can do this when the windows have different names but I am facing an issue that i am using LogicMonitor for 3 different dashboards.

So the 2 windows mentioned for LogicMonitor are different windows/different dashboards - How can I get my script to identify them as different windows and make them switch between the 2 ?ex: Cassandra

Hope this makes sense.....

Here is thes script I have:

Option Explicit
    Dim WshShell
    Set WshShell = WScript.CreateObject("WScript.Shell")
    Dim count 
    Count = 0

Do While Count < 5
        WScript.Sleep 10000
    WshShell.AppActivate("LogicMonitor - Test123 - dashboard - Google Chrome")
    WshShell.SendKeys ("%X")

        WScript.Sleep 10000
    WshShell.AppActivate("LogicMonitor - Test123 - dashboard - Google Chrome")
    WshShell.SendKeys ("%X")

    WScript.Sleep 10000
    WshShell.AppActivate("MQ Dashboard - Google Chrome")
    WshShell.SendKeys ("%X") 

Help Me On This!

 

Thanks

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.