Hello, I love dashstudio but I can't do certain things that seem very useful to me.
Is there a way by a button to go to a specific screen other than previous or next ?
May be javascript but i dont find by myself.
I found the function [GraphicalDashPlugin.NextScreen] but when I apply it to a button nothing happens.
Do you have an idea ?
Thank you in advance.
Hi.
GraphicalDashPlugin.NextScreen should work as a mapped action.
Make sure your buttons are visible and unlocked.
And that there is nothing on top of them. Even a transparent layer.
Hi Manu47, did you ever get your requirement fixed? I have the exact same issue of wanting to trigger specific screens in a Dash from events or buttons.
Hope to hear!
Regards, G
I found a small workaround for myself using autohotkey.
You have to know the order of your screens and assign keyboard keys to first and next screen.
Your button in the dashboard then triggers an autohotkey script for the key combination for the screen you want to go to.
e.g. You have four screens and you want a button to directly go to the 3rd. The autohotkey script would send "key to first screen" and then two keys to go to the third screen.
Not perfect, but it works for my current use case.
Whilst we are on the topic of screens, Is there a way to delete a screen?
I have found a solution. I use 'trigger', 'keymapping' and widget to change screen.
Thanks for this Manu47. Recent versions of SimHub have a feature to allow you to do this directly in the DashStudio... this how I resolved it.
I did a screen shot, but dont know how to post it!
Regards,
G
@super71962 how did you do it? I#m still struggling and dont find any trigger that says keymapping
@kimi.172 I'll reply later- not at my Simhub machine atm 😉
@kimi-172 I have attached a screenshot of one of my dashboards. Simply add a 'button' from the toolbox, choose the graphic files you want to use for pressed/unpressed, and then on the right of the page navigate to 'predefined behaviour' and select 'navigate to a specific screen'.
I hope that kelps Kimi.