Movatterモバイル変換


[0]ホーム

URL:


rdrr.io

getWindowsHandles: Get handles of Windows in the MS Windows RGui

getWindowsHandlesR Documentation

Get handles of Windows in the MS Windows RGui

Description

This function gets the Windows handles of visible top level windows orwindows within theR MDI frame (when using theRgui).

Usage

getWindowsHandles(which = "R", pattern = "", minimized = FALSE)

Arguments

which

A vector of strings "R" or "all" (possibly with repetitions). Seethe Details section.

pattern

A vector of patterns that the titles of the windows must match.

minimized

A logical vector indicating whether minimized windows should be considered.

Details

This function will search for Windows handles, for passing to externalGUIs or to thearrangeWindows function. Each of thearguments may be a vector of values. These will be treated asfollows:

  • The arguments will all be recycled to the same length.

  • The corresponding elements of each argument will be applied inseparate searches.

  • The final result will be the union of the windows identified ineach of the searches.

If an element ofwhich is"R", only windows belonging tothe currentR process will be returned. In MDI mode, those will be thechild windows within theR GUI (Rgui) frame. In SDI mode,all windows belonging to the process will be included.

If the element is"all", then top level windows will be returned.

The elements ofpattern will be used to make a subset of windowswhose title text matches (according togrep) the pattern.

Ifminimized = FALSE, minimized windows will be ignored.

Value

A list of external pointers containing the window handles.

Note

This is only available on Windows.

Author(s)

Duncan Murdoch

See Also

arrangeWindows,getWindowsHandle (singular).

Examples

if(.Platform$OS.type == "windows") withAutoprint({  getWindowsHandles()  getWindowsHandles("all")})

What can we improve?

R Package Documentation

Browse R Packages

We want your feedback!

Note that we can't provide technical support on individual packages. You should contact the package authors for that.

 
Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, readEmbedding Snippets.

Close

[8]ページ先頭

©2009-2025 Movatter.jp