(AGK version: 108.14)
Submitted: 2013-06-23 07:24:24
Setvirtualresolution(640,480)
ResetTimer()

    CreateText(1,"Click Me")
    SetTextSize(1,30)
    SetTextPosition(1,50,50)

//When left mouse is clicked or screen touched, check to see if this is over the text
Repeat
    if ( GetPointerPressed ( ) = 1 )
        hit = GetTextHitTest (1, GetPointerX ( ), GetPointerY ( ) )
    endif

    Print(hit)
    Sync()
Until Timer()>15
End
Help make AGK better by submitting an example for this command!
(All examples are subject to approval)
Login to post an example of your own.