Jump to content
nassausky

Autoit Youtube Query

Recommended Posts

nassausky

Hey all,

Has anyone created any queries for youtube? I was thinking it might be something like this but can't quite figure it out:

$oIE = _IECreateEmbedded()
      _IENavigate($oIE,"https://www.youtube.com")
      Local $oForms = _IETagNameGetCollection($oIE, "form")
      Local $sTxt = ""
      For $oForm In $oForms
          If $oForm.id = "masthead-search" Then
             $oInputs = _IETagNameGetCollection($oIE, "input")
             For $oInput In $oInputs
                If $oInput.id = "masthead-search-term" Then
                   _IEFormElementSetValue($oInput, "cards")
                   _IEFormSubmit($oForm)
                EndIf
             Next
          EndIf
       Next

 

Edited by nassausky
Typo

Share this post


Link to post
Share on other sites
JLogan3o13

@nassausky please pay attention to where you post in the future. The Examples forum very clearly states:

Quote

Do not post general support questions here, instead use the AutoIt Help and Support forums.

 


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
nassausky

Sorry about that can you move it over or should i copy the question to the right section.

Share this post


Link to post
Share on other sites
JLogan3o13

It is moved to the proper forum


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
nassausky

How can their server be smart enough to give this response:

We're sorry...

... but your computer or network may be sending automated queries.

 

So my guess is I'm doing it correctly unless there is some other way around it. 

Edited by nassausky

Share this post


Link to post
Share on other sites
Melba23

nassausky,

Getting that as a reply means that you obviously fall foul of the Forum rules  which forbid the discussion of "Automation of software/sites contrary to their EULA" - so the thread is locked.

M23

 


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Similar Content

    • DynamicRookie
      By DynamicRookie
      Hey There!
       
      So, what i need to do is an app that can read text in a image (I.e. a png that has text saying "This is a png" and return the text to a variable)
      I'm pretty much a newbie on AutoIt, my purpose is doing that but i don't know any function that can

      Any help is much appreciated
    • santoshM
      By santoshM
      How can i exit from a procedure in auto
      Func test() if x=o then     return endif endFunc  
    • Valnurat
      By Valnurat
      Hi
      Small question.
      I trying to find all index in an array with value higher than 7.
      How can that be possible?
    • TrashBoat
      By TrashBoat
      Could someone help me create or give an idea of how to do a incrementing for loop that would do this: https://i.imgur.com/YFUt47H.gifv
      I'm having a hard time figuring it out :S
    • msd1994
      By msd1994
      I have a script that just adds some keyboard shortcuts for things like displaying the current song and artist, moving the window to the side so it won't pop up in my way, and play/pause, next song, previous song (these are the only 3 to still work since they don't need the window handle.)
      In some update recently, Spotify's window class swapped from "[CLASS:SpotifyMainWindow]" to "[CLASS:Chrome_WidgetWin_0]". Using the new class in my controls doesn't seem to work, I've tried getting the window handle from the process handle (_GetHwndFromPID($PID)) but that seems to fail as well.
      Does anybody have some idea of a way I could get this script working again?
       
      edit: seems like discord has the same window class name, so could be some issue with this? Still not sure of a way to solve the issue though, I added a function to get the handle of the active window and can just use that now, but it was able to find it on its own before on spotify startup or script startup which would be preferred.
       
      Thanks!
×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.