Modify Script based on last used object
To save scripts i want to read out which object name was used to call the script.
For example i have 4 buttons that call a webpage and each page differs only in one number.
So when i click button 1 it should call the same script as button 2 just with a different web page.
I tried GetLayoutObjectAttribute with has focus but no luck, beuase it has no focus after the click.