Link Search Menu Expand Document

selector.enableClicks

description

Makes it possible to select by clicking (default).

syntax

getSelector(ELEMENT_NAME).enableClicks()

example(s)


@newImage("square", "square.png")
@,
@newImage("triangle", "triangle.png")
@    .before( getImage("square") )
@    .print()
@,
@newSelector("shapes")
@    .disableClicks()
@    .add( getImage("square") , getImage("triangle") )
@    .keys(     "F"           ,        "J"           )
@    .wait()
$    .enableClicks()
  • Adds two images side by side and waits for a selection by pressing either the F key or the J key, after which it becomes possible to select by clicking again.