Jump to content
Sign in to follow this  
Vicks

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()
AdlibEnable("_Block")
#include <GUIConstants.au3>
$blocker = GUICreate("blocker", 115, 31, 192, 125)
$Button1 = GUICtrlCreateButton("mouseclick", 8, 8, 97, 17)
GUISetOnEvent($Button1, "_MouseClick")
GUISetState(@SW_HIDE)
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
        ;;;;;;;
    EndSelect
WEnd
Exit


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

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...