Vicks 1 Report post Posted June 29, 2006 how can i tell a script a new window is opened without giving it the new window name? [s]Autoit[/s] Share this post Link to post Share on other sites
jefhal 3 Report post Posted June 29, 2006 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? ...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format Share this post Link to post Share on other sites
Valuater 107 Report post Posted June 29, 2006 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 alsoin Autoit wrappers there is a script to show new processes ( in my sig below )8) Share this post Link to post Share on other sites
jefhal 3 Report post Posted June 29, 2006 in Autoit wrappers there is a script to show new processesAnd 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 Share this post Link to post Share on other sites
jefhal 3 Report post Posted June 29, 2006 in Autoit wrappers there is a script to show new processes ( in my sig below )I checked it out. Very sweet! ...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format Share this post Link to post Share on other sites
Vicks 1 Report post Posted June 29, 2006 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] Share this post Link to post Share on other sites
SmOke_N 199 Report post Posted June 29, 2006 I'm curious what you think these 2 lines do?If Not MouseClick("left") ThenIf 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. Share this post Link to post Share on other sites
Vicks 1 Report post Posted June 29, 2006 I'm curious what you think these 2 lines do?If Not MouseClick("left") ThenIf MouseClick("left") Then lol i know im fixing i up [s]Autoit[/s] Share this post Link to post Share on other sites