Jump to content
Sign in to follow this  

help me please

Recommended Posts

how can i tell a script a new window is opened without giving it the new window name?

Watch the processes that are running, and when a new one appears that you "recognize", give them a message? :D

...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format

Share this post

Link to post
Share on other sites

well you see im making a pop up blocker but as you can see

Dim $list = ProcessList()
#include <GUIConstants.au3>
$blocker = GUICreate("blocker", 115, 31, 192, 125)
$Button1 = GUICtrlCreateButton("mouseclick", 8, 8, 97, 17)
GUISetOnEvent($Button1, "_MouseClick")
While 1
    $msg = GuiGetMsg()
    Case $msg = $GUI_EVENT_CLOSE
    Case Else

Func _MouseClick()  ; If mouse is clicked it thinks that you have targeted the link
    If MouseClick("left") Then Sleep(100)
    Func _Block()
        If Not MouseClick("left") Then
    $list2 = ProcessList()
    If $list2[0][0] > $list[0][0] Then
         $list[0][0] = $list2[0][0]
        $list[0][0] = $list2[0][0]

it would shut down any new window but what i want it to do is wait until a explorer window is opened and if mousclick was not pushed it will gety rid of the new window, but my codes not working, and im not sure how to tell it only loo for the ie windows

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  

  • Create New...