Is there a way to save a pad name (1 of 8) into a variable?
I want to create pads for adding tags. Here's what I have now (one of the eight buttons for example):
(set_var $string " #Dance") &
param_contains `get_var $string` `get_browsed_song 'User 1'` ? nothing :
get_browsed_song 'User 1' & param_equal '' ?
browsed_song 'User 1' `get_var $string` :
get_text "`get_browsed_song 'User 1'` `get_var $string`" & param_cast & browsed_song 'User 1'
This works well, and I only need to change $string variable value to create a new pad with a different tag. But I also have to manually change the name of the pad button. It's not convenient.
If I could use a script to save the name of the button into $string variable value, that would be great. It would be enough just to copy/paste the script into the action of another pad and change its name.
I have tried many options and found that there is a way to save the pad page name into a variable:
set_var $string `pad_page`
But how do I do the same with the name of the pad name? Is there a way to save the name of xth pad in a variable?
I want to create pads for adding tags. Here's what I have now (one of the eight buttons for example):
(set_var $string " #Dance") &
param_contains `get_var $string` `get_browsed_song 'User 1'` ? nothing :
get_browsed_song 'User 1' & param_equal '' ?
browsed_song 'User 1' `get_var $string` :
get_text "`get_browsed_song 'User 1'` `get_var $string`" & param_cast & browsed_song 'User 1'
This works well, and I only need to change $string variable value to create a new pad with a different tag. But I also have to manually change the name of the pad button. It's not convenient.
If I could use a script to save the name of the button into $string variable value, that would be great. It would be enough just to copy/paste the script into the action of another pad and change its name.
I have tried many options and found that there is a way to save the pad page name into a variable:
set_var $string `pad_page`
But how do I do the same with the name of the pad name? Is there a way to save the name of xth pad in a variable?
Posté 4 days ago @ 12:31 pm
get_text "`pad 1`" & param_cast & set_var a
Posté 4 days ago @ 12:33 pm