Code: Select all
SendInput #+s
ErrorLevel:=0
WinWaitActive,ahk_class Microsoft-Windows-SnipperCaptureForm-WinShiftS,,2
if (ErrorLevel=1)Return
Sleep 100
WinWaitNotActive,ahk_class Microsoft-Windows-SnipperCaptureForm-WinShiftS,,
Run, msPaint.exe
Code: Select all
SendInput #+s
ErrorLevel:=0
WinWaitActive,ahk_class Microsoft-Windows-SnipperCaptureForm-WinShiftS,,2
if (ErrorLevel=1)Return
Sleep 100
WinWaitNotActive,ahk_class Microsoft-Windows-SnipperCaptureForm-WinShiftS,,
Run, msPaint.exe
Code: Select all
SendInput, #+s
IfWinExist, ahk_class Microsoft-Windows-Tablet-SnipperCaptureForm ; If Window Exists
{
WinWaitClose, ahk_class Microsoft-Windows-Tablet-SnipperCaptureForm ; Wait for Window to Close
}
Sleep, 100
Run, mspaint.exe