Can't ControlSend to Windows 10 "Universal Apps"

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
rhinox202
Posts: 11
Joined: 30 Sep 2015, 10:22

Can't ControlSend to Windows 10 "Universal Apps"

22 Oct 2016, 19:14

I have a script that currently works in IE but I'm trying to transition it over to Edge. In working on a script, I stumbled upon a function by lexikos (listed below) for getting the process name of a Windows App. The function works great, however, I thought it would fix my inability to ControlSend keys to Microsoft Edge. That was not the case. I have tried everything I can think of and, as such, was hoping for a little help. I've tried multiple variations of the commands below. No dice! Any help would be greatly appreciated. Thanks.

- ControlSend,, {Space}, Microsoft Edge ahk_exe ApplicationFrameHost.exe
- ControlSend, ApplicationFrameInputSinkWindow1, {Space}, ahk_id %name%

Code: Select all

; https://autohotkey.com/boards/viewtopic.php?p=73137#p73137
WinGetActiveProcessName() {
    WinGet name, ProcessName, A
    if (name = "ApplicationFrameHost.exe") {
        ControlGet hwnd, Hwnd,, Windows.UI.Core.CoreWindow1, A
        if hwnd {
            WinGet name, ProcessName, ahk_id %hwnd%
        }
    }
    return name
}

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 375 guests