Autohotkey, it's a scripting tool to automate stuff.
By highlighting, I think you're referring to the event sheet? If so, yes, it is a visual indicator, but I'm trying to get the current line number programmatically/externally.
However, I just realised that I can only spy the first column's text (using Autohotkey) from the bottom ribbon status bar (ie the text 'Ready'). So even my status bar suggestion might actually not work because I can't access all of the info in the status bar.
What I'm ultimately hoping for is to be able to query/spy important layout state information from the interface controls so that I can contextualise my macros. But due to their opaqueness, I get stumped now and then.
Thanks for replying.