RemoteControl.FindWindow
------------------------

Finds a window on Windows based on class name and/or window title.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [RemoteControl](component_RemoteControl.md) | [2.8](newinversion28.md) | ❌ No | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "RemoteControl.FindWindow"; WindowClassName; WindowTitle ) 

**MBS**( **"RemoteControl.FindWindow";** /\* Finds a window on Windows based on class name and/or window title. \*/  
**$WindowClassName**; /\* The internal class name of a window.e.g. CalcFrame \*/   
**$WindowTitle**) /\* The title of the window.e.g. "Calculator" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WindowClassName | The internal class name of a window. | CalcFrame |
| WindowTitle | The title of the window. | "Calculator" |

### Result

Returns the window handle for use with other [window](component_Window.md) functions.

### Description

Finds a window on Windows based on class name and/or window title.  
One of both parameters can be an empty string.  
### Example Databases

- [RemoteControl/Control Windows Calculator](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/RemoteControl/Control%20Windows%20Calculator.shtml#1GroupButton30.000000024.000000061.0000000211.0000000LayoutObjectAnchor_)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[RemoteControl.ClickMouse](RemoteControlClickMouse.md) - [RemoteControl.GetWindowsList](RemoteControlGetWindowsList.md)

[HTML Version](RemoteControlFindWindow.shtml)