Phidget.ClearScriptTrigger
--------------------------

Removes a script trigger for a phidget.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Phidget](component_Phidget.md) | [13.5](newinversion135.md) | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | ❌ No |

MBS( "Phidget.ClearScriptTrigger"; PhidgetRef; Event ) 

**MBS**( **"Phidget.ClearScriptTrigger";** /\* Removes a script trigger for a phidget. \*/  
**$PhidgetRef**; /\* The reference number for the phidget.e.g. $phidget \*/   
**$Event**) /\* The name of the event.e.g. "Attach" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PhidgetRef | The reference number for the phidget. | $phidget |
| Event | The name of the event. | "Attach" |

### Result

Returns OK or error.

### Description

Removes a script trigger for a phidget.  
You may not need to do this as closing the phidget will stop triggers.  
See [Phidget.SetScriptTrigger](PhidgetSetScriptTrigger.md) for the list of events.  
### See also

- [Phidget.SetScriptTrigger](PhidgetSetScriptTrigger.md)

### Release notes

- **Version 13.5**
    - Added [Phidget.ClearScriptTrigger](https://www.mbsplugins.eu/PhidgetClearScriptTrigger.shtml) function.

### Blog Entries

- [New in MBS FileMaker Plugin 13.5](https://www.mbsplugins.de/archive/2023-11-28/New_in_MBS_FileMaker_Plugin_13/monkeybreadsoftware_blog_filemaker)
- [Neues MBS Plugin 13.5 für Claris FileMaker](https://www.mbsplugins.de/archive/2023-11-07/Neues_MBS_Plugin_135_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 13.5 for Claris FileMaker](https://www.mbsplugins.de/archive/2023-11-07/MBS_Plugin_135_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 13.5pr4](https://www.mbsplugins.de/archive/2023-10-16/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 14th October 2023 , last changed 5th February 2025

  
[Phidget.ClearLEDs](PhidgetClearLEDs.md) - [Phidget.Close](PhidgetClose.md)

[HTML Version](PhidgetClearScriptTrigger.shtml)