exciterId — determines the element that raised the event and returns its ID.

Description:

u16 exciterId();

Returns ID of the element raised the event:

Return values:

Returns ID of the element raised the event: Type of return value u16.

Example:

<item addr="524:248" name="Test for exciterId function" type="script">

V-ID/V-ADDR 
{
	if(opt0())
	{
		u16 exciter_id = exciterId();
		u8 strForMess[70]; 
		sprintf(strForMess, "%cId of the element raised the event: %d", 1, exciter_id);
		setStatus(@exciterId():32, &strForMess);
		setStatus(V-ADDR, 0);
	}
}

</item>

The result of performing the example in the interface:

In this case the script will return the interface ID where the element script was pressed:

“Id of the element raised the event: 2023”