Show Captions Settings via Javascript for Video.js - video.js

I want to make a button that will call a function, and in said function, it will execute the JS code to display the Captions Settings box. The settings box i am referring to is if you have tracks set up, the CC button shows, when you click that, you can then select the button "Captions Settings" and it shows the cc settings.
So what would the JS code be to show the settings box?

I found the answer. I looked at video.js and found how they were handling the click of the 'CaptionSettingsMenuItem'.
function ShowTheCaptionsSettingsWindow(){
ReplaceWithYourPlayerObjectName.getChild('textTrackSettings').show();
ReplaceWithYourPlayerObjectName.getChild('textTrackSettings').el_.focus();
}

Related

Domino form not showing buttons or hotspots with javascript code

Domino web app (traditional, not XPages)
Simple form with a single subform. I add a button and a hotspot, each with action set to Web/Javascript
Javascript : alert('hello');
Neither the button nor the hotspot are visible in the browswer. No hide formulas on either.
DB Setting of "Use JavaScript when generating pages" is checked.
Can anyone point out something that I am missing? I have double-checked there's nothing like a div set to dislay:none; or hide formula in place.
Domino 11.01 on server
Browsers: Chrome and Firefox
Figured it out...I had accidentally included the button as set to pass-thru HTML....as soon as I took that checkmark off, the button now shows. It's not evident that is set without highlighting the button and looking at 'text' menu option.
Thanks for trying to help me.
Matt

How to click on Open/save/save as/cancel button on IE 11 using vba

I would like to click on open when a file download dialog appear in IE 11. I found this code http://www.siddharthrout.com/2011/10/23/vbavb-netvb6click-opensavecancel-button-on-ie-download-window/
But this code does not work with IE11. I have also attached the IE11 download dialog box here too. Anyone has any idea, please, help.
You can use Alt+N to focus on the Notification Bar.
And then send {tab} key to navigate to the specific button.
With VBA, you may use Autohotkey.dll or AutoItX3.dll to send these hotkey combinations.

Webdriver: Click on button's part for open color chooser

I use Selenium to test some web-product in my company.
Product has button, which open dialog to choose color. I think it's created using 'extJS' (I'm not so sure).
But then i click to any part of that button, using Webdriver, it's always just set current selected color, but newer opened dialog window to select color.
I found similar button on some random site, which has similiar behavior.
Link to site with button on developer.yahoo.com
So in source of the page you can see, that there is no specific element for right part of button, with down-oriented arrow.
So xPath
//*[#id='color-picker-button']
describe button in all,right part and left part.
But every child element of this describe only left part of this button, so right part with arrow has no any specific xPath to click in my WebDriver text.
I also tried things like
driver.action.move_to(element, coordinate_right, coordinate_down).perform
but it has no effect for me.
So in general my question is :
How to open color selector window on that Yahoo page
Use the SendKeys() method and send the "down arrow" key to the control (C#):
element.SendKeys(Keys.ArrowDown);
That should open it right up.

How can I add hotkeys with Safari extension

Can I listen to hotkeys with safari extension?
I want to respond to Cmd+SomeKey with action done by extension, but I've read intro on apple developer and there is nothing about hotkeys.
You can add custom buttons to the Safari toolbar, create bars of your own, add contextual menu items, display content in bars or tabs, and inject scripts and style sheets into webpages.
No single word about hotkeys, and google doesn't find any article about that. So is it possible at all? If it is possible, where can I get additional info?
It can be done -- someone helped me to set it up for my browser window resizer extension. You need to have an injected script that checks for a specific keypress/combo then send a message back to your toolbar or global page. Here's an example on github of an inject script to monitor for specific keypresses (alt-1 to alt-0) and here's an example of doing something with the message lines 92-108 & 131 of this toolbar page.

Missing [X] button in dojo dialog box to close the window

For some reason, I am not able to see the [X] button to close the dialog box.
I tested examples from dojo website. Everything works but [X] button does not show up.
What am I missing?
I've seen this before, and if I recall correctly, it has to do with the Dijit theme not being set up properly. Could it be that you're not including the appropriate CSS file for the theme you're using? Or perhaps you don't even have a theme specified in your test page?
This reference page may help: http://docs.dojocampus.org/dijit-themes