CODE ID

This tutorial is specific to our newest product, Hudl Sportscode. If you’re on Sportscode v11, use these resources instead or upgrade today.

Use CODE ID to grab the identifier from another button using a name.


FORMAT: CODE ID "button_name"


DEFINITIONS:

  • button_name: A string with the name of a button in the code input window.

EXAMPLE 1

$id = CODE ID "Kobe Bryant"

Obtains the identifier of the button with the name "Kobe Bryant". The identifier is stored in the variable $id which can be used as you wish in your script.

EXAMPLE 2

$id = CODE ID "Kobe Bryant" IN WINDOW "Lakers"

Obtains the identifier of the button with the name "Kobe Bryant" from the window called "Kobe Bryant". The identifier is stored in the variable $id which can be used as you wish in your script.