[basic] How to get name clicked TextFrame?

I have two textframes in doc with set macro “hello” on click event.
How to recognize which frame has launched a macro? How to get name/ID/‘handler’ textframe that I clicked?

May be so?

Sub Hello()
print "You select frame '" + ThisComponent.getCurrentSelection().getName() +"'!"
End Sub

or

Sub Hello1(oEvent)
print "You select frame '" +oEvent+"'!"
End Sub

depending on the type of event being handled