Sign in to follow this  
Followers 0
fgthhhh

how to remove/disable alerts popup in web browser?

20 posts in this topic

sometime that pop up is very annoying, so is there anyway for me to remove/disable it?

thx u

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

inb4: your never gonna get any help cause you didn't state what browser you're using and you also didn't specify the type of alert you are receiving.

Edit: also, inb4 you didn't post a script example at the least.

Edited by System238

Things that I've done..

Icon Resource Editor: icon resource editor 

AutoIt Piano: a piano

AutoIt Unlocker: unlocks files when you want to delete them

Colorful tooltips: a wrapper for the tool tips UDF

Rouge GoogleBot: a full screen animation

ASciTE text editor: a text editor written in autoit

Warning: Posts by this user are subject to change or may disappear without notice.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

That was actually pretty cool.

Edited by System238

Things that I've done..

Icon Resource Editor: icon resource editor 

AutoIt Piano: a piano

AutoIt Unlocker: unlocks files when you want to delete them

Colorful tooltips: a wrapper for the tool tips UDF

Rouge GoogleBot: a full screen animation

ASciTE text editor: a text editor written in autoit

Warning: Posts by this user are subject to change or may disappear without notice.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

lol, that's cool but i never ask anything before search and i think i need some help, so if u don't know pls don't spam.actually i found a solution ("javascript:function alert() { }") but it don't work well

i'm using ie ( i put ie in my program )

i didn't give an example, sry.it's just normal alert, here is it http://www.mediacollege.com/internet/javascript/basic/alert.html

Edited by fgthhhh

Share this post


Link to post
Share on other sites

lol, that's cool but i never ask anything before search and i think i need some help, so if u don't know pls don't spam.actually i found a solution ("javascript:function alert() { }") but it don't work well

i'm using ie ( i put ie in my program )

i thought that Javascript Alert is a common thing that every1 know so i didn't give an example, sry. here is it http://www.mediacollege.com/internet/javascript/basic/alert.html

I'm going to assume English is not your main language.

I think you're at the wrong forum buddy, no one here could have ever guessed you were talking about java script code when you're posting in the "AutoIt" help section.

This forum is mainly used for people who are developing some code in the AutoIt language, not java script, If you want help with Java related code, you should specify its java code, else everyone's gonna assume an assumption.

lol


Things that I've done..

Icon Resource Editor: icon resource editor 

AutoIt Piano: a piano

AutoIt Unlocker: unlocks files when you want to delete them

Colorful tooltips: a wrapper for the tool tips UDF

Rouge GoogleBot: a full screen animation

ASciTE text editor: a text editor written in autoit

Warning: Posts by this user are subject to change or may disappear without notice.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

lol, that's cool but i never ask anything before search and i think i need some help, so if u don't know pls don't spam.actually i found a solution ("javascript:function alert() { }") but it don't work well

i'm using ie ( i put ie in my program )

i didn't give an example, sry.it's just normal alert, here is it http://www.mediacollege.com/internet/javascript/basic/alert.html

I hopefully assumed that your first post was the result of temporary brain defect, but now that I see your second post I can see that is not the case. The question that you asked was this: "How do I disable popups in my web browser?" as System238 said, what browser? Are we to magically guess which browser you're using? For all we know you are still using Mosaic. Maybe to your surprise, I know that we are powerful wizards capable of conjuring fantastic software, but we cannot read minds.

Most browsers simply have settings to disable popups. You simply go into Settings -> Click on the appropriate tab -> Disable (javascript) popups. It's very simple, in fact it is so simple that I almost start to think that the browsers developers intended you to make use of it. You can find more about this procedure by spending 10 seconds looking at your Settings window, or you can have a go at Googling your problem. That is actually, as unimaginable as it may seem, the appropriate thing to do first: Google it, Google everything and Google hard.

If you however have an automated solution that you need to distribute to thousands of users it becomes a different matter. You are, after all, posting in the AutoIt help forum. The fact that you'll get a different solution under different circumstances should be obvious. We're simply not going to list every possible combination of every possible solution for you: That's not feasible for hundreds of users a day. This is why we rely on a technique where the person asking the question provides as much relevant information as possible, so that we can spend a minimum of our own time solving other peoples' (sometimes retarded) problems.

After my short speech, if you are still suffering from that temporary brain disorder (it can be easily diagnosed, if you don't agree with me then you still have it) then I would recommend not posting until you have sought help from a doctor. He should be able to direct you to the appropriate instances. If the problem has solved itself, then you may use your next posting opportunity to start over as if the thread began at your next post.

Edited by Manadar

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

i know that my english is bad so it made u don't really understand.i'm still calm but i see that u are really impolite

return to main topic,

1,i think u misunderstand what i'm saying

i'm asking about alert that popup like this Posted Image

u can see it here http://www.htmlite.com/JS002.php

i'm not asking about popup like this Posted Image

and u always answer me about popup, even this http://lmgtfy.com/?q=disable+popup+browser

2, i already knew 2 options:

+disable javascript ( but i still want javascript, just don't want alert, the alert block my code)

+or block popup ( that block "a form of web advertising that appears in a new window", not alert )

3, i'm looking for a autoit solution, so i should post it here, i thought a solution like search a new-window and kill it. i tried but no-use

so i should ask if anyone has other solution

ps: i'm not mod or admin so i can't set rule here but pls answer if you know,and be a gentlemen, don't use not good words. thnks

Edited by fgthhhh

Share this post


Link to post
Share on other sites

I assume by your screenshot that you are clicking on the DU link. If that is the case, while your script is waiting for the new page to load, you could add in a check for the "Message from WebPage" popup. If it shows up, you could have your script quickly click the ok so it will go away and your script can continue.


010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

in some case the alert show up instantly, so the check loop can't even do its job

this is my not working code, seem the alert pause whole program

_IENavigate($oIE, 'http://www.htmlite.com/JS002.php') ; same result with _IENavigate($oIE, 'http://www.htmlite.com/JS002.php',0)                
                While 1                 
                $handle = WinGetHandle("Message from webpage", "")
                If @error = 0 Then
                    WinClose("Message from webpage", "")
                    ExitLoop
                EndIf   
                WEnd
Edited by fgthhhh

Share this post


Link to post
Share on other sites

@fgthhhh,

No need to report posts like that because I do not see anything to get upset about.

You better get used to people telling you their truth because you "ain't seen nothing yet" .....

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Winexists might be a better function to use instead of wingethandle.

Also depending on what comes next in the code, you may not have to have a While 1 loop. The way it's written now, if the window doesn't show up, it will be stuck in that loop forever.

Either function should catch the popup even if it shows up before the While loop starts.

Another problem is the @error

at the start of the script @error is 0 if the window is not available the moment it searches for it, @error will be set to 1 and I don't see in the help file that @error is reset to 0 if it finds the window later.

try something like if $handle <> ""


010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Share this post


Link to post
Share on other sites

in case i know that the alert will show, but the code still don't work

do u have any suggestion for me?

_IENavigate($oIE, 'http://www.htmlite.com/JS002.php',0)             
                While 1                 
                If WinExists("Message from webpage") Then
                    WinClose("Message from webpage", "")
                    ExitLoop
                EndIf
                WEnd

Share this post


Link to post
Share on other sites

I'm not sure what else might be going on in your code, but this is working just fine for me.

#include <IE.au3>
$oIE = _IECreate ("www.autoitscript.com")
_IENavigate($oIE, 'http://www.htmlite.com/JS002.php',0)
                While 1
                If WinExists("Message from webpage") Then
                    WinClose("Message from webpage", "")
                    ExitLoop
                EndIf
                WEnd

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Share this post


Link to post
Share on other sites

#15 ·  Posted (edited)

yep, your code do work perfectly, but when i put it in a GUI, it doesn't work anymore, seem it stop when the alert popup

this is the image

and this is my code, pls run and see it

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
$oIE = _IECreateEmbedded ()
GUICreate("Embedded Web control Test", 640, 580)
$GUIACTIVEX = GUICtrlCreateObj($oIE, 25, 25,500,300)
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 600, 360)
$GUI_Button_Stop = GUICtrlCreateButton("run", 340, 420, 100, 30)
GUISetState()       ;Show GUI
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            Exit
        Case $msg = $GUI_Button_Stop
                _IENavigate($oIE, 'http://www.htmlite.com/JS002.php',0)
                While 1
                ConsoleWrite("checking...") 
                If WinExists("Message from webpage") Then
                    WinClose("Message from webpage")
                    ExitLoop
                EndIf
                WEnd
    EndSelect
WEnd
Edited by fgthhhh

Share this post


Link to post
Share on other sites

yep, your code do work perfectly, but when i put it in a GUI, it don't work anymore, seem it stop when the alert popup

this is the image http://i40.photobucket.com/albums/e233/fgthhhh/Capture-4.png

and this is my code, pls run and see it

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
$oIE = _IECreateEmbedded ()
GUICreate("Embedded Web control Test", 640, 580)
$GUIACTIVEX = GUICtrlCreateObj($oIE, 25, 25,500,300)
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 600, 360)
$GUI_Button_Stop = GUICtrlCreateButton("run", 340, 420, 100, 30)
GUISetState()       ;Show GUI
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            Exit
        Case $msg = $GUI_Button_Stop
                _IENavigate($oIE, 'http://www.htmlite.com/JS002.php',0)
                While 1
                ConsoleWrite("checking...") 
                If WinExists("Message from webpage") Then
                    WinClose("Message from webpage")
                    ExitLoop
                EndIf
                WEnd
    EndSelect
WEnd

Does internet explorer have to be embedded into the gui? It seemes that the entire script pauses once that pesky little window shows up due to it being a child of your gui I would assume.

Things that I've done..

Icon Resource Editor: icon resource editor 

AutoIt Piano: a piano

AutoIt Unlocker: unlocks files when you want to delete them

Colorful tooltips: a wrapper for the tool tips UDF

Rouge GoogleBot: a full screen animation

ASciTE text editor: a text editor written in autoit

Warning: Posts by this user are subject to change or may disappear without notice.

Share this post


Link to post
Share on other sites

it doesn't have to be embedded but it's better if i put ie window and my program into one GUI. really appreciate if anyone can help me solve this problem

Share this post


Link to post
Share on other sites

it doesn't have to be embedded but it's better if i put ie window and my program into one GUI. really appreciate if anyone can help me solve this problem

Unless Autoit were to become multi threaded, your out of luck with embedding IE into your GUI.

Your GUI encounter's a paradox when that little window shows up?

Any way, I read a mad post from a developer and he seemed pretty pissed when people bring up this subject.

Do a quick search and you'll see a few locked threads with that subject.


Things that I've done..

Icon Resource Editor: icon resource editor 

AutoIt Piano: a piano

AutoIt Unlocker: unlocks files when you want to delete them

Colorful tooltips: a wrapper for the tool tips UDF

Rouge GoogleBot: a full screen animation

ASciTE text editor: a text editor written in autoit

Warning: Posts by this user are subject to change or may disappear without notice.

Share this post


Link to post
Share on other sites

After messing with the code trying to find a solution, I've realized that by embeding the webpage into a gui, that popup became a script-blocker (much like MsgBox) where the script will stop until that window is delt with.


010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Share this post


Link to post
Share on other sites

#20 ·  Posted (edited)

If you absolutely need IE to be included into your GUI, then I recomend compiling the program and have it install another executable and launch it right before clicking "run",

then have that executable look 4 the window and close it!

Problem solved.

Edited by System238

Things that I've done..

Icon Resource Editor: icon resource editor 

AutoIt Piano: a piano

AutoIt Unlocker: unlocks files when you want to delete them

Colorful tooltips: a wrapper for the tool tips UDF

Rouge GoogleBot: a full screen animation

ASciTE text editor: a text editor written in autoit

Warning: Posts by this user are subject to change or may disappear without notice.

Share this post


Link to post
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
Sign in to follow this  
Followers 0