Trevliga Spel forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Problems with image in button script

2 posters

Go down

Problems with image in button script Empty Problems with image in button script

Post by jordikt Tue Feb 20, 2024 3:30 pm

I have 2 buttons configured:

Button 1
Code:
[(press){image:%trevligaspel%\MidiLayouts\Buttons\Speaker B.png}]
[(press){image:%trevligaspel%\MidiLayouts\Buttons\Master Mono.png}]


Button 2
Code:
[(noteon:1,50,0-127){@SpeakerB:1}]->    Speaker B On
[(noteoff:1,50,0-127){@SpeakerB:0}]->   Speaker B Off

[(noteon:1,42,0-127){@MasterMono:1}]->  Master Mono On
[(noteoff:1,42,0-127){@MasterMono:0}]-> Master Mono Off

[(@SpeakerB:0)(@MasterMono:0){image:#none#}{text:SpeakerB\nStereo}]
[(@SpeakerB:1)(@MasterMono:1){image:#none#}{text: SpeakerB\nMono}]
[(@SpeakerB:1)(@MasterMono:0){text:B}{image:%trevligaspel%\MidiLayouts\Buttons\Speaker B.png}]
[(@SpeakerB:0)(@MasterMono:1){text:M}{image:%trevligaspel%\MidiLayouts\Buttons\Master Mono.png}]


The button 1 it is a test and works fine. Pressing the button toggles the 2 images that I want to see.

The button 2 should show the same images if the value of variables are 1-0 or 0-1. But no image is never shown.

The texts change correctly, but no image is shown.

I have restarted SD+ and the computer, but it still not working.

What I am doing wrong?

Thanks!
jordikt
jordikt

Posts : 278
Join date : 2024-02-10

Back to top Go down

Problems with image in button script Empty Re: Problems with image in button script

Post by Admin Tue Feb 20, 2024 3:54 pm

If you have extended logging enabled while it happens and send me the log file, I can see exactly what is going on.
Admin
Admin
Admin

Posts : 1235
Join date : 2020-03-26

https://trevligaspel.forumotion.eu

Back to top Go down

Problems with image in button script Empty Re: Problems with image in button script

Post by jordikt Tue Feb 20, 2024 8:21 pm

Problems with image in button script 1f611 I don't find any button to attach the log file. How do I send it to you?
jordikt
jordikt

Posts : 278
Join date : 2024-02-10

Back to top Go down

Problems with image in button script Empty Re: Problems with image in button script

Post by Admin Tue Feb 20, 2024 8:38 pm

jordikt wrote:Problems with image in button script 1f611 I don't find any button to attach the log file. How do I send it to you?

You can email it to trevligaspel@gmail.com
Admin
Admin
Admin

Posts : 1235
Join date : 2020-03-26

https://trevligaspel.forumotion.eu

Back to top Go down

Problems with image in button script Empty Re: Problems with image in button script

Post by jordikt Tue Feb 20, 2024 8:45 pm

done
jordikt
jordikt

Posts : 278
Join date : 2024-02-10

Back to top Go down

Problems with image in button script Empty Re: Problems with image in button script

Post by jordikt Tue Feb 20, 2024 9:21 pm

I did a mistake that caused the problem.

I assigned an image in the Stream Deck editor for button 2 before writing the script.

If an image is assigned in the editor, this always takes precedence, no matter what the plugin tries to do.

Solution: I have set the button 2 to the default image, and the issue has been fixed.
jordikt
jordikt

Posts : 278
Join date : 2024-02-10

Back to top Go down

Problems with image in button script Empty Re: Problems with image in button script

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum