Vicks Posted June 29, 2006 Share 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] Link to comment Share on other sites More sharing options...
jefhal Posted June 29, 2006 Share 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 Link to comment Share on other sites More sharing options...
Valuater Posted June 29, 2006 Share 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) Link to comment Share on other sites More sharing options...
jefhal Posted June 29, 2006 Share 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 Link to comment Share on other sites More sharing options...
jefhal Posted June 29, 2006 Share 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 Link to comment Share on other sites More sharing options...
Vicks Posted June 29, 2006 Author Share 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] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted June 29, 2006 Moderators Share 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. Link to comment Share on other sites More sharing options...
Vicks Posted June 29, 2006 Author Share 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] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now