Jump to content

Recommended Posts

Posted

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
Posted

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

most likely because it is a new window..

a new process will exist also

in Autoit wrappers there is a script to show new processes

( in my sig below )

8)

NEWHeader1.png

Posted

in Autoit wrappers there is a script to show new processes

And you could also look at Sysinternals PSLIST. I use that to view remote machines' processes...
...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format
Posted

in Autoit wrappers there is a script to show new processes

( in my sig below )

I checked it out. Very sweet! :D
...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format
Posted

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

[s]Autoit[/s]
  • Moderators
Posted

I'm curious what you think these 2 lines do?

If Not MouseClick("left") Then
If MouseClick("left") Then

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Posted

I'm curious what you think these 2 lines do?

If Not MouseClick("left") Then
If MouseClick("left") Then
lol i know im fixing i up
[s]Autoit[/s]

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
×
×
  • Create New...