DragDrop.GetMouseX
------------------

Queries the native mouse position where the item was dropped.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DragDrop](component_DragDrop.md) | [2.4](newinversion24.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "DragDrop.GetMouseX"; droparea ) 

**MBS**( **"DragDrop.GetMouseX"** /\* Queries the native mouse position where the item was dropped. \*/  
**$droparea**) /\* The reference ID for this drop area. e.g. $dropHandle \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| droparea | The reference ID for this drop area. | $dropHandle |

### Result

Returns the mouse x coordinate.

### Description

Queries the native mouse position where the item was dropped.   
Call this function in the drag action script. The mouse position is relative to the window.  
Added Windows support for MBS Plugin 8.1.  
### Examples

Queries Mouse X and Y coordinates:

 MBS ( "DragDrop.GetMouseX"; $droparea ) &amp; " / " &amp; MBS ( "[DragDrop.GetMouseY](DragDropGetMouseY.md)"; $droparea )  
### See also

- [DragDrop.GetMouseY](DragDropGetMouseY.md)
- [DragDrop.GetTypes](DragDropGetTypes.md)

This function is free to use.

Created 18th August 2014 , last changed 5th February 2018

  
[DragDrop.GetLeft](DragDropGetLeft.md) - [DragDrop.GetMouseY](DragDropGetMouseY.md)

[HTML Version](DragDropGetMouseX.shtml)