VG onClickItemLink (Event)¶
- Table of contents
- VG onClickItemLink (Event)
- Description
- Parameters
- Example
Description¶
This event fires whenever you click an item link. Also see this thread in the ISXVG forums for more information on this event and related items.
Parameters¶
This event does not send any parameters; however, it does come with a contextual LSObject! See the example below.
Example¶
<pre>
atom(script) VG_onClickItemLink()
{
; The Item being linked (as an 'item' datatype object) is sent as ${Context}
echo Item Link Clicked:: ${Context.Name} (${Context.Description})
}
function main()
{
; If ISXVG isn't loaded, then no reason to run this script.
if (!${ISXVG(exists)})
return
;Initialize/Attach the event Atom that we defined previously
Event[VG_onClickItemLink]:AttachAtom[VG_onClickItemLink]
do
{
waitframe
}
while ${ISXVG(exists)}
;We're done with the script, so let's detach all of the event atoms
Event[VG_onClickItemLink]:DetachAtom[VG_onClickItemLink]
}
</pre>