def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("\\SnippingTool.exe"),
            any(
                [
                    "ms-screensketch:edit?&filePath=\\\\"
                    in event.deep_get("CommandLine", default=""),
                    "ms-screensketch:edit?&filePath=%%5C"
                    in event.deep_get("CommandLine", default=""),
                    "ms-screensketch:edit?&filePath=%5C"
                    in event.deep_get("CommandLine", default=""),
                    "ms-screensketch:edit?&filePath=http"
                    in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
