Rambo Posted June 13, 2008 Share Posted June 13, 2008 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: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 More sharing options...
Valuater Posted June 13, 2008 Share Posted June 13, 2008 (edited) 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 June 13, 2008 by Valuater Link to comment Share on other sites More sharing options...
Rambo Posted June 16, 2008 Author Share Posted June 16, 2008 Thank you! i´ll take your code to base for mine. Link to comment Share on other sites More sharing options...
Rambo Posted July 2, 2008 Author Share Posted July 2, 2008 (edited) 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 July 2, 2008 by Rambo Link to comment Share on other sites More sharing options...
Valuater Posted July 2, 2008 Share Posted July 2, 2008 You have changed the one I posted for you...example $nURL = StringTrimRight($URL, 0) I did not write the line like that Check your code/changes again 8) Link to comment Share on other sites More sharing options...
Rambo Posted July 2, 2008 Author Share Posted July 2, 2008 Yeah, you write "5" but 5 is the "count" for trimingStringTrimRight ( "string", count )Parametersstring 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now