up Inquisit Language Reference

macaddress property

This property reports the MAC addresses associated with the computer's network card.

Member of

<computer>

Remarks

This is a collection property containing a list of all of the MAC addresses the computer has. The MAC address is a globally unique code permanently assigned to a network adapter. As such, it can be a useful way to detect repeat responders over the internet. If the computer has no network adapter, the result is all zeroes. A computer with multiple network cards will thus have multiple MAC addresses in this collection.

Examples

The following displays the mac address in a text stimulus:

<text sometext>
/ items= ("correct = <% computer.macaddress.1 %>")
</text>

The following displays the mac address in an instruction page:

<page somepage>
correct = <% computer.macaddress.1 %>
</page>

Send comments on this topic:
Copyright Millisecond Software, LLC. All rights reserved.