Jump to content

Link protector


Recommended Posts

Hi, first of all sorry my bad english...

I want to make a link protector for rapidshare, megaupload and so...

Just a bit of info:

When you are going to download something from rapidshare, in the middle of the page, appears the link you want to download, just like this:

Posted Image

So anyone can see the link.

I want to hide it. Just that.

I wanna ask if its possible to make an autoit script to open the web page, show the buttons, letters, and all this stuff, except for the link. Like a special browser.

Only want to know if its possible. Im newbie with this, and dont know the limits of Autoit.

Regards

Link to comment
Share on other sites

Maybe...

#include <GUIConstantsEx.au3>
#include <IE.au3>
#include <WindowsConstants.au3>

;******* USER INPUT ****************
$URL = "http://rapidshare.com/files/122233080/close0.bmp.html"

$Replacement = "Hi how are you!!!!"
; ********* END ********************

_IEErrorHandlerRegister ()
$oIE = _IECreateEmbedded ()
$GUI = GUICreate("Download File", 750, 300)
$GUIActiveX = GUICtrlCreateObj($oIE, 0, -260, 770, 550)
GUISetState() 
_IENavigate($oIE, $URL)
$nURL = StringTrimRight($URL, 5)

; Waiting for user to close the window
While GUIGetMsg() <> -3
    $body = _IEBodyReadHTML($oIE)
    If StringInStr($body, $nURL) Then _IEBodyWriteHTML($oIE, StringReplace($body, $nURL, $Replacement))
WEnd

8)

Edited by Valuater

NEWHeader1.png

Link to comment
Share on other sites

  • 3 weeks later...

I got a problem, when press F5 the links appears. How can i hide the URL even when reflresh?

#NoTrayIcon
#include <GUIConstantsEx.au3>
#include <IE.au3>
#include <WindowsConstants.au3>

; answer for Rapidshare Link
$answer = InputBox("Hider", "Introduce un enlace Rapidshare", "", "", _
    -1, -1, 400, 300)
If @error = 1 Then Exit

$URL = $answer
$Replacement = " Enlace oculto "

;creates GUI
_IEErrorHandlerRegister ()
$oIE = _IECreateEmbedded ()
$GUI = GUICreate("Ocultador Beta", 750, 300)
$GUIActiveX = GUICtrlCreateObj($oIE, 0, -260, 770, 550)

;Navigate to URL
_IENavigate($oIE, $URL)
_IELoadWait ($oIE)
$nURL = StringTrimRight($URL, 0)
GuiSetState()
; Waiting for user to close the window
While GUIGetMsg() <> -3
    $body = _IEBodyReadHTML($oIE)
    If StringInStr($body, $nURL) Then _IEBodyWriteHTML($oIE, StringReplace($body, $nURL, $Replacement));replace URL with $Replacement
    WEnd
Exit

Thanks

Edited by Rambo
Link to comment
Share on other sites

Yeah, you write "5" but 5 is the "count" for triming

StringTrimRight ( "string", count )

Parameters

string The string to evaluate.

count The number of characters to trim.

I changed for 0 because to hide the complete URL...

Is this the problem? Why??

BTW, when push F5 a few times, and refresh, original URL is saw a few seconds...

What if i set F5 as do-nothing with HotKeySet ??

Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...