|
Post by vferrusola on Apr 6, 2016 12:01:52 GMT
Is there any way to know the script of a button when pressed? If possible with the same image button could (for example) load different urls as could be completed with the ScriptID.
Thanks Victor
|
|
|
Post by justme on Apr 6, 2016 16:14:16 GMT
Not sure I understand completely what you are trying to do but there is no function that will tell you the scriptID of a button that has been pressed.
It is not difficult to create a function like that yourself. In General Script define a variable, eg button_name. Now the variable button_name is available everywhere in your code.
In the script of your buttons set button_name to the scriptID of that button.
|
|
|
Post by runes on Apr 7, 2016 6:47:08 GMT
There's no way to do that unfortunately. It would be very cool though. Hippani could that be added to the suggestion list?
|
|
|
Post by justme on Apr 7, 2016 7:34:12 GMT
|
|
|
Post by vferrusola on Apr 7, 2016 9:13:50 GMT
Thank you for your answers.
And it would be possible to access the label of a pressed button? The goal is to have a single button on the library being repeated on the screen and load different urls with some additional button information.
Thanks
|
|
|
Post by justme on Apr 8, 2016 8:08:03 GMT
You might be better of with a combination of "text object" and "hotspot" as a workaround.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Apr 8, 2016 15:50:41 GMT
|
|