GPAL - Generally Positive Automation Library v1.0
GPAL The Fluent Automation LIbrary
Loading...
Searching...
No Matches
GenerallyPositive.Browser.WindowHelper Class Reference

Static Public Member Functions

static bool TopBrowser (Process process, int processId=0)
 Brings the browser window to the foreground. Not useful in headlesss or OttoMagic mode where we are totally in control and in focus. bool success = browser.MagicHelper.TopBrowser(process, processId);.
static void ResizeWindow (Process process, Rectangle inRect)
 Resizes and repositions a process's main window using optional parameters.

Detailed Description

Definition at line 2912 of file MagicHelper.cs.

Member Function Documentation

◆ ResizeWindow()

void GenerallyPositive.Browser.WindowHelper.ResizeWindow ( Process process,
Rectangle inRect )
static

Resizes and repositions a process's main window using optional parameters.

Parameters
processThe Process whose main window to resize.
topOptional new top position. If null, the current position is retained.
leftOptional new left position. If null, the current position is retained.
widthOptional new width. If null, the current width is retained.
heightOptional new height. If null, the current height is retained.

Definition at line 3095 of file MagicHelper.cs.

◆ TopBrowser()

bool GenerallyPositive.Browser.WindowHelper.TopBrowser ( Process process,
int processId = 0 )
static

Brings the browser window to the foreground. Not useful in headlesss or OttoMagic mode where we are totally in control and in focus. bool success = browser.MagicHelper.TopBrowser(process, processId);.

Parameters
processThe browser process
processIdOptional specific process ID or service ID to scan for windows
Returns
Whether the operation succeeded

Definition at line 2949 of file MagicHelper.cs.


The documentation for this class was generated from the following file: