WinIsRuntimeApp

Tells whether or not a particular window is a Windows Store App.

Syntax:

WinIsRuntimeApp("partial-winname")

Parameters:

(s) partial-winname the initial part of, or an entire, window name.

Returns:

(i) @TRUE when a window is associated with a Windows Runtime App (Window Store App)

    @FALSE non Runtime App window

 

Windows associated with system processes, like the Windows shell's 'File Explorer', do cause the function to return @TRUE even though the processes are not Windows Runtime Apps.

The function always returns @FALSE on Windows 7/2008 R2 and older versions of Windows.

The function only works with top-level (parent) application windows.

 

Note: "Partial-winname" is the initial part of a window name, and may be a complete window name. It is case-sensitive. You should specify enough characters so that "partial-winname" matches only one existing window. If it matches more than one window, the most recently accessed window which it matches will be used.

Example:
Title='Store'
If WinVersion(5)>='2-6-2' || WinVersion(1)>=10
    objShell = ObjectCreate("Shell.application")
    objShell.ShellExecute('ms-windows-store:')
    Result=WinIsRuntimeApp(Title)
   If Result Then Text='Is a Windows Store App'
    Else Text='Is NOT a Windows Store App'
Else
    Text='Wrong Windows version'
EndIf
Message(Title, Text)
See Also:

Partial Window Names, IntControl 46