Get Window Handle of Windows Screen Sketch

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
grimboto
Posts: 53
Joined: 09 Jul 2014, 19:20

Get Window Handle of Windows Screen Sketch

18 Feb 2018, 15:27

I'm trying to get the window Handle of the window that opens when Screen Sketch is opened.

Window Spy shows the Title as "Windows Ink Workspace" But WinExist("Windows Ink Workspace") returns nothing.

MouseGetPos will return the right handle but i don't want to have to rely on the position of the mouse to get what i need.

is there another this can be achived?

Code: Select all

Run, ms-penworkspace://Capture

;Windows Ink Workspace
;ahk_class Windows.UI.Core.CoreWindow
;ahk_exe ShellExperienceHost.exe

sleep 1000

MouseGetPos, OutputVarX, OutputVarY, OutputVarWin, OutputVarControl, 1

WinGet, OutputVar , list, Ink

WinGetTitle, currentTitle, % "ahk_id " OutputVarWin
msgbox % currentTitle

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Draken, Google [Bot], haomingchen1998, ReyAHK and 251 guests