Programming : how to get all track names in a project + the current selected track

Hello, I am programming an app that need to access to all track names in the opened project and the currently selected track name

is this somehow possible using Steinberg apI ?

I got this far with a custom js midi remote script, I am getting CC1 message upon track change, but what I want is the full track name in text format, not sure if syses is coming through, is the cubase console suppose to show the track name ?