Device.FindButton
Skip to content
mnscript
ButtonDevice Device.FindButton(string) 

Description ​

Finds a connected Button Device

Arguments ​

string - The device name to search for

Returns ​

ButtonDevice - The found device

Example ​

msc
using Device;

// Finds a Button device with the name "My Button"
ButtonDevice button = Device.FindButton("My Button");