This sets 'variable' to the page number of the specified link.
On entry, 'variable' should be:
1
RED link
2
GREEN link
3
YELLOW link
4
CYAN link
Specifics
The page numbers are returned in base ten (i.e. p101 is 101), which may be used with the majority of the script commands which also work in base ten.
If you would like actual hex values returned (i.e. p101 is 257), add '16' to the value set in variable on entry.