Joined: 11 Jun 2007 Posts: 2447 Location: 127.0.0.1
Posted: Fri Feb 29, 2008 2:14 pm Post subject: blocking a pop up website (request)
I am making a trainer for a game that when you are unable to login it opens a webpage which everyone thinks is annoying. the request to send the web page to open is done in flash so is there anyway of blocking it with a vb script or flash AS?
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
Posted: Fri Feb 29, 2008 4:09 pm Post subject:
If you are using the Internet Explorer control that comes with VB6 (or .NET should work the same way) you can block the popups that are being sent to you in the NewWindow2 event of the control. Which would be done doing:
Code:
Private Sub WebBrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)
Cancel = True
End Sub
This wont block all popups, things like javascript things can be bypassed and still popup too. You can look up disabling JavaScript but I personally have never done it myself. But this should block any basic popups. _________________
Joined: 11 Jun 2007 Posts: 2447 Location: 127.0.0.1
Posted: Fri Feb 29, 2008 6:49 pm Post subject:
Wiccaan wrote:
If you are using the Internet Explorer control that comes with VB6 (or .NET should work the same way) you can block the popups that are being sent to you in the NewWindow2 event of the control. Which would be done doing:
Code:
Private Sub WebBrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)
Cancel = True
End Sub
This wont block all popups, things like javascript things can be bypassed and still popup too. You can look up disabling JavaScript but I personally have never done it myself. But this should block any basic popups.
I am not using a web browser, I am using the Active X Shockwaveflash form
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum