script to open Screen Sketch on Win10
script to open Screen Sketch on Win10
Does anyone know an AutoHotKey script that opens Screen sketch directly? i know that the shortcut Win+W opens Windows Ink Workspace but i have to select screen sketch afterward (which is annoying). Any help appreciated.
Re: script to open Screen Sketch on Win10
Have it click on the location to select Screen Sketch after the menu pops up. Just change the coordinates in the script below so it clicks on the right place on your monitor.
Code: Select all
CoordMode, Mouse, Screen
Send, #w
Sleep, 500
Click, 2400, 1040
Re: script to open Screen Sketch on Win10
Code: Select all
run ms-penworkspace://Capture ; Screen Sketch
run ms-penworkspace://Create ; Sketch Pad
Re: script to open Screen Sketch on Win10
How could we run it in maximized windows ?
doesn't work; Hwnd gives me a blank value
Code: Select all
Run, ms-penworkspace://Capture,, Max, Hwnd
Re: script to open Screen Sketch on Win10
Code: Select all
Run, ms-penworkspace://Capture
WinwaitActive,Snip & Sketch
WinMaximize,A
Re: script to open Screen Sketch on Win10
Probably as could be expected:
On Win10, many built-in tools now run under the ApplicationFrameHost which seems to complicate things.https://www.autohotkey.com/docs/commands/Run.htm#Parameters wrote:OutputVarPID
[...] The variable will be made blank if the PID could not be determined, which usually happens if a system verb, document, or shortcut is launched rather than a direct executable file.
This here seems to work, if you just have one instance open at a time...
Code: Select all
w:: ; press w
run ms-penworkspace://Capture
WinWaitActive Ausschneiden ahk_exe ApplicationFrameHost.exe
WinMaximize Ausschneiden ahk_exe ApplicationFrameHost.exe
return
I haven't really done much with the ApplicationFrameHost - perhaps someone has a better, or more reliable, idea.
edit: Oh, too late.
Re: script to open Screen Sketch on Win10
@gregster @vsub
Thanks. You two's simple method works like a charm.
Thanks. You two's simple method works like a charm.
Who is online
Users browsing this forum: gabelynn1 and 350 guests