Steve, I assume you refer to the debug window by a URL? In that case, you could add a keypress trigger to the master slide which would then launch the debug window's URL. See this example here, from any slide, you can press a key and a URL opens in a new window. Just make sure that you don't use a key or key combination (like CTRL+O) that is used by the browser. Hope this helps.
The debug I want to open is the one set by changing the 'lms\configuration.js' file (in the published course folder. You can have it launch on course start by changing 'var SHOW_DEBUG_ON_LAUNCH = false;' to 'true'.
Obviously having this only launch on a key-press would be much better. I've looked at your solution and it's a great idea but I'd need to publish the course to get the url for the debug window. I'd then need to republish the course to include the functionality. I'd prefer to have a solution that I can implement at the development stage.
I'm currently looking at java script to open the debug window on a key-press using the existing 'showDebugWindow();' function.
OK. I worked this out and I'm posting it in case anyone else is interested. I couldn't find a solution online so apologies if this is covering old ground. It ended up being pretty straightforward. As usual I was complicating the issue!
In Storyline add a JavaScript trigger. Call this from a key press, button or whatever you choose. The trigger is simply:
lmsAPI.DebugWindow();
In the published course folder locate the 'SCORM2004Functions.js' file in '\lms' folder and add the following function:
function DebugWindow() { ShowDebugWindow(); }
That seems to be it. Works across all browsers I've tested it in. I was complicating this by trying to write JavaScript to capture multiple key presses etc.
Thanks to Michael for focusing me back on what Storyline itself can do
5 Replies
Steve, I assume you refer to the debug window by a URL? In that case, you could add a keypress trigger to the master slide which would then launch the debug window's URL. See this example here, from any slide, you can press a key and a URL opens in a new window. Just make sure that you don't use a key or key combination (like CTRL+O) that is used by the browser. Hope this helps.
Hi Steve! Looks like Michael is taking care of you here, just let us know if you need anything further.
Thanks Michael,
The debug I want to open is the one set by changing the 'lms\configuration.js' file (in the published course folder. You can have it launch on course start by changing 'var SHOW_DEBUG_ON_LAUNCH = false;' to 'true'.
Obviously having this only launch on a key-press would be much better. I've looked at your solution and it's a great idea but I'd need to publish the course to get the url for the debug window. I'd then need to republish the course to include the functionality. I'd prefer to have a solution that I can implement at the development stage.
I'm currently looking at java script to open the debug window on a key-press using the existing 'showDebugWindow();' function.
If I find a solution I'll post it here.
Thanks for your help
Steve
OK. I worked this out and I'm posting it in case anyone else is interested. I couldn't find a solution online so apologies if this is covering old ground. It ended up being pretty straightforward. As usual I was complicating the issue!
In Storyline add a JavaScript trigger. Call this from a key press, button or whatever you choose. The trigger is simply:
lmsAPI.DebugWindow();
In the published course folder locate the 'SCORM2004Functions.js' file in '\lms' folder and add the following function:
function DebugWindow() {
ShowDebugWindow();
}
That seems to be it. Works across all browsers I've tested it in. I was complicating this by trying to write JavaScript to capture multiple key presses etc.
Thanks to Michael for focusing me back on what Storyline itself can do
Thanks Steve for sharing that here and I'm glad Michael was able to help you out!
This discussion is closed. You can start a new discussion or contact Articulate Support.