Youtube AutoPlay in Visual Basic - visual-studio-2010

I recently doing a simple education school project on Visual Studio, which I can open a text file and watch all the youtube videos I have saved as links. The main program is done, now I just have to deal with this Youtube AutoPlay thing that I can't fix.
It's a webbrowser and after I import, the combobox will show the links. I can then play "start" to navigate to the youtube links one after another like a playlist. Even though it brings me to the page but it just don't autoplay. I need to manual click to start playing. I want it to be automatic.
?autoplay=1 or &autoplay=1 is not working. Maybe a auto click code or script can help me solve the issue.

autoplay=1 should work , but you'll need a /v/ as well , i.e:
If you're normal link is:
youtube.com/watch?v=7ik8yt8yUGs
then change it to :
youtube.com/v/7ik8yt8yUGs&autoplay=1

Related

Show an adaptive card in popup (using tabs configuration url) while bot is installed in msteams

I want to show a task module (not url) while bot installs (with tab) in the teams. Something like Text does, but a bit more interactive with drop downs and all.
I have referred to the link to create deep link for tab and paste the link here, in app-studio manifest editor:
But this doesn't seem to work. Only an empty pop up shows following this procedure.
Can someone correct me, where I am going wrong! TIA!
This "Text" screen is not showing a Task module, it's showing a custom Configuration page for the app's Tab installation. When you create an App that includes a Tab, you have the option of creating such a "Configuration" popup that gives the user the chance to configure how your tab will actually work. See here for more: https://learn.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/create-tab-pages/configuration-page
Within that configuration page, you can show whatever web content you'd like. Showing an Adaptive Card is a bit of a strange scenario considering it's a web page, but you could conceivably do this using the adaptive cards js library inside the page (https://www.npmjs.com/package/adaptivecards)

CkEditor: Image2 (enhanced image) plugin simplified upload process

I am in the process of integrating the Image2 (enhanced image) plugin into my CkEditor.
My use case for this plugin is for allowing users to upload images from local machines to the server.
So far so good, but the default upload process of this plugin has some steps I would like to be able to skip.
For instance, whenever I click the Image button in the editor's toolbar, I'd like the uploader to automatically open the file browser instead of just popping up the standard file managed dialog.
Also, I would like for the upload process to be automatically started whenever the user choodses the image to upload (by default, the plugin requires a click on the "Upload it"/"Send it to the server" button). Actually, I would like to remove the "Upload it"/"Send it to the server" button entirely.
Last but not least, I'd like the dialog to close automatically whenever an image is successfully uploaded.
Feels like almost a no-brainer to me, but I could not find anyone that actually managed to solve this situation, despite the fact that this kind of question has been asked many times around the net in recent years.
Can someone point me in the right direction? thank you.

Is there a way to export notes taken in Google Play books?

I have taken a series of notes in a book that I read on Google Play books. Is there a way to export these notes all together as a text document or some similar format?
Google has changed this and now if you have Android device you can get your notes on Google Drive. Simply do this:
Open Play Books on your Android device
Go to Settings
Save notes, highlights and bookmarks in Google Drive - turn this ON
This feature is still not perfect. The biggest problem I have is that page number is not recorded properly for most books. Instead, you just have link that opens the page in Google Play Books. Meaning, it'll probably work for you personally, but sharing notes and making sense of notes on different devices is problematic.
It isn't perfect but here is one way to do it. After doing this you will receive a zip file with your book(s) and an HTML (or JSON) file with your notes.
Follow this link to the Google Data Tools https://www.google.com/settings/takeout/downloads
Click the Create New Archive button
Click the Select None button
Go down to Google Play Books and flick the switch on
Hit the down arrow
Either download all or click on the Select Books radio (a popup will appear where you can select none again and search at the top)
After you have chosen your books, go to Next at the bottom
Pick your export options and you're good to go.
there is no such available function at the moment. I have submitted a request already, let's see what google developers say.
It works on some books and not others apparently. I can't produce a summary/review of Guttag's book for my class.I have the print version and just bought the Playbook version.

back button function for phonegap windows phone 7

How do I get the back button from Windows phone to work with PhoneGap 1.2?
Now what the back button does is exit the app.
There is a good post I dont understand or get to work by one of the SO editors: http://www.scottlogic.co.uk/blog/colin/2011/11/handling-the-back-stack-in-windows-phone-7-phonegap-applications/
but I dont understand it and I cant get it to work. (even the sample .sln has an error for me)
My app is a very simple structure of index.html and many html does that come off that one page, so if all the back button did was goto index.html, that would probably work for me.
Is there a solution for idiots? For example - add this framework but only to specific pages. Put this code here, and that code there, and those pages dont need anything. Something like that?
I have recently published a more simple example for back-button handling in applications that contains simple HTML pages:
http://www.scottlogic.co.uk/blog/colin/2011/12/a-simple-multi-page-windows-phone-7-phonegap-example/
In essence, there is some C# code that keeps track of when the browser navigates from one page to another, handling the back-button event in an appropriate fashion. Just drop your code into the www directory and it should work fine.

Modify contents of Firefox download dialog from add-on kit

I'd like to be able to add an option to the download dialog that pops-up in Firefox when starting a file download. Is it possible to do so using the new add-on SDK or do I have to do it the old way?
edit: Obviously, if the new option is selected, I need a way to know it and execute code based on it.
That's something you would use XUL overlays for. I guess that the dialog you are talking about is chrome://mozapps/content/downloads/downloads.xul - the download manager. AFAIK doing this isn't possible with the Add-on SDK, it only provides the most common UI integration points. You could create a traditional extension however, it can overlay any dialog.
There is no existing module that will help you that I know of, so you would have to create one, or wait for one to be made by someone else. But the main idea to extending browser UI is simple, and goes like this:
When the addon is loaded, scan for open windows of the type that you wish to extend.
extend the open windows by adding xul elements and javascript to the page.
listen for newly opened windows, and test that they are the type that you are looking for once they open
extend newly opened windows while your addon is active
Clean up after yourself when windows close or when your addon is disabled/uninstalled.
The last step is the most important and never matter with old school extensions which were not restartless.
Some for the built-in modules that you can look at that do this are the widget module, the context menu module, and the hotkeys module, all of which you can find here.
I've made a couple myself which are the toolbar button module, the xulkeys module, the menuitems module, and a few others, all of which you can find here.
Recently I wrote an extension do the same things. A bootstrap extension, not using addon-sdk.
I already submit it on AMO, but wait for review
https://addons.mozilla.org/en-US/firefox/addon/download-dialog-tweak/
And the source code
https://github.com/muzuiget/download_dialog_tweak

Resources