| getWindowsHandles | R Documentation |
This function gets the Windows handles of visible top level windows orwindows within theR MDI frame (when using theRgui).
getWindowsHandles(which = "R", pattern = "", minimized = FALSE)
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. |
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.
A list of external pointers containing the window handles.
This is only available on Windows.
Duncan Murdoch
arrangeWindows,getWindowsHandle (singular).
if(.Platform$OS.type == "windows") withAutoprint({ getWindowsHandles() getWindowsHandles("all")})Add the following code to your website.
For more information on customizing the embed code, readEmbedding Snippets.