slipsystem Posted June 21, 2013 Share Posted June 21, 2013 hello guys I am a noob. I am trying to write a script that acts like a search function for thepiratebay basicly the idea im going for is enter the name of the movie and it automaticly loads it in bitcomet when you run the script it will give you a input box so you can enter the the name of what you are looking for. it will then open internet explorer on that search page sort it by number of seeds. then I get stuck I am trying to scan the links on that page for the word magnet then execute the link wich will then open up utorrent bitcommet whatever the default program is. i cant seem to find the word magnet #include <IE.au3> $INISearch = InputBox("Movie Downloader","Type name here") Local $oIE = _IECreate("http://thepiratebay.sx/search/" & $INISearch & "/0/7/0") Local $oLinks = _IELinkGetCollection($oIE) Local $iNumLinks = @extended For $oLink In $oLinks If StringLeft($oLink.href, 8) = 'magnet' Then $Magnetic = $oLink.href Next ShellExecute($Magnetic) any advice? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 21, 2013 Moderators Share Posted June 21, 2013 slipsystem,Yes, watch the file legally. Thread locked. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts