Hi,
First of all, A happy new year everybody.
I did make it to work. I didn't know how to call a script but I think to difficult. It's easy (after knowing it)
Again many thanks SilverEagle.
Best regards,
John.
I learn scripting
-
- Posts: 713
- Joined: 30. Sep 08, 14:00
- Location: Netherlands [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
- djjb
- Posts: 128
- Joined: 15. Nov 05, 13:41
- Location: Geldrop / Holland [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: I learn scripting
- Attachments
-
- 21.jpg (91.87 KiB) Viewed 5015 times
-
- 22.jpg (103.78 KiB) Viewed 5015 times
-
- Posts: 713
- Joined: 30. Sep 08, 14:00
- Location: Netherlands [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
-
- Posts: 713
- Joined: 30. Sep 08, 14:00
- Location: Netherlands [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: I learn scripting
Hi John,
First question: Is program.addSkinsButton() really the one you want?
This will add an option to the settings tab (rightclick->settings->skins->skins) for your skin, but although your kioskCallback() function says it inverts the kioskmode (toggles it on/off each call), you can never use it that way because when you are in kioskmode you are not allowed access to the settings menu, so kioskCallback() will never be called while program.kioskMode is true.
Second - maybe related - question: Are you sure you only call kioskCallback() from the button and/or are not trying to write program.kioskMode from any of the program.onKioskXXXX functions at the same time as well? I had Silverjuke crash on that sort of mistakes.
Another way to get it to crash is sometimes when you start dialogs or use alert() in functions called by program.onXXXX. If you have anything popping up from those functions comment it out and see if that solves the crash.
Good luck hunting!
SilverEagle
First question: Is program.addSkinsButton() really the one you want?
This will add an option to the settings tab (rightclick->settings->skins->skins) for your skin, but although your kioskCallback() function says it inverts the kioskmode (toggles it on/off each call), you can never use it that way because when you are in kioskmode you are not allowed access to the settings menu, so kioskCallback() will never be called while program.kioskMode is true.
Second - maybe related - question: Are you sure you only call kioskCallback() from the button and/or are not trying to write program.kioskMode from any of the program.onKioskXXXX functions at the same time as well? I had Silverjuke crash on that sort of mistakes.
Another way to get it to crash is sometimes when you start dialogs or use alert() in functions called by program.onXXXX. If you have anything popping up from those functions comment it out and see if that solves the crash.
Good luck hunting!
SilverEagle
- djjb
- Posts: 128
- Joined: 15. Nov 05, 13:41
- Location: Geldrop / Holland [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: I learn scripting
Hi Silvereagle,
You wrote:
when you are in kioskmode you are not allowed access to the settings menu, so kioskCallback() will never be called while program.kioskMode is true.
I have a button in the skin for the settings-dialog, it works in kioskmode to.
Also the script above works well...But sometimes sj crashes.
When I tried it out for the first time, it crashes all the time.
Not on my home pc(vista) but only my music pc(xp home)
I fixed it with my screensetting in windows xp. (less dpi)
But still..sometimes it crashes..
best regards,
john
You wrote:
when you are in kioskmode you are not allowed access to the settings menu, so kioskCallback() will never be called while program.kioskMode is true.
I have a button in the skin for the settings-dialog, it works in kioskmode to.
Also the script above works well...But sometimes sj crashes.
When I tried it out for the first time, it crashes all the time.
Not on my home pc(vista) but only my music pc(xp home)
I fixed it with my screensetting in windows xp. (less dpi)
But still..sometimes it crashes..
best regards,
john