Share via

Shortcut to switch between Microsoft Edge windows

Anonymous
2024-06-03T09:41:37+00:00

I have 5 Windows open in Microsoft Edge, each on has a unique web links like apkbeb.com and I need, for example, a shortcut using ALT+1 to always go to the first opened window,a shortcut ALT+2 to always go to the second opened window.

About the ALT+TAB will go always to the last opened window and it is not what i need.

I need a shortcut to go to a specific window opened in Microsoft Edge.

Does anyone know a way to do it?

Microsoft Edge | Open the browser | Windows 10

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. DYARI BARHAM 34,526 Reputation points Independent Advisor
    2024-06-03T21:25:40+00:00

    Certainly. Kindly follow these steps:

    1-Go to the AutoHotkey website and download then install it.

    2-Right-click on the desktop > New > AutoHotkey Script.

    3-Name the script, for example, Edge Switch > Create.

    4-Right-click the script file > Edit Script (on Notepad).

    5-Copy and Paste the script to the Notepad file:

    #NoEnv

    SendMode Input

    SetWorkingDir %A_ScriptDir%

    ; ALT+1 to switch to the first Edge window

    !1::SwitchToEdgeWindow(1)

    ; ALT+2 to switch to the second Edge window

    !2::SwitchToEdgeWindow(2)

    SwitchToEdgeWindow(index) {

    ; Get a list of all Edge windows
    
    WinGet, id, list, ahk\_class Chrome\_WidgetWin\_1
    
    ; Check if the specified window index exists
    
    if (index <= id0) {
    
        ; Activate the specified window
    
        WinActivate, % "ahk\_id " id%index%
    
    }
    

    }

    6-Save the script and double-click the file to run it.

    Test it. Does it work for you?

    Please keep me posted.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-06-03T16:57:34+00:00

    Yes, I will definitely try this and update you on how it worked.

    Was this answer helpful?

    0 comments No comments
  3. DYARI BARHAM 34,526 Reputation points Independent Advisor
    2024-06-03T13:26:12+00:00

    Hi david,

    I'm Dyari. Thanks for reaching out. I will be happy to assist you in this regard.

    I am afraid there is no Windows or Microsoft Edge option to do it. However, you can do it with a third-party tool like AutoHotKey.

    If you want to run that tool, I will write you a script.

    Please keep me updated.

    Was this answer helpful?

    0 comments No comments