Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

href magnetic links

$
0
0

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?

 


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>