Hi
I would like to program a custom button that's functionality changes each time it's pressed but cannot work out how, ideally I would just like to toggle my broswer_sort order from 'First Seen' to 'Last Played' with each press - but importantly to display on the button the current sort order when pressed so I can see at a glance which one is active.
Currently I have tried adding the following VDJScript to a button
custom_button_name 'First Seen' ? browser_sort '-lastplay' & custom_button_name 'Last Play' : browser_sort '-firstseen' & custom_button_name 'First Seen'
nothing happens at all
... or
browser_sort '-firstseen' ? browser_sort '-lastplay' & custom_button_name 'Last Play' : browser_sort '-firstseen' & custom_button_name 'First Seen'
will toggle the sort but won't change the button_name
I would like to program a custom button that's functionality changes each time it's pressed but cannot work out how, ideally I would just like to toggle my broswer_sort order from 'First Seen' to 'Last Played' with each press - but importantly to display on the button the current sort order when pressed so I can see at a glance which one is active.
Currently I have tried adding the following VDJScript to a button
custom_button_name 'First Seen' ? browser_sort '-lastplay' & custom_button_name 'Last Play' : browser_sort '-firstseen' & custom_button_name 'First Seen'
nothing happens at all
... or
browser_sort '-firstseen' ? browser_sort '-lastplay' & custom_button_name 'Last Play' : browser_sort '-firstseen' & custom_button_name 'First Seen'
will toggle the sort but won't change the button_name
Posté Fri 28 Sep 18 @ 3:27 pm