Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

Script to close window immediately when it appears.


  • Please log in to reply
2 replies to this topic

#1 taylormade

taylormade

    Seeker

  • Normal Members
  • 8 posts

Posted 26 February 2008 - 03:05 PM

Can someone show me the AutoIt script that will immediately close a window
that appears on the desktop as soon as it appears if the Window Title and contents are known?







#2 ReaImDown

ReaImDown

    Slacker

  • Active Members
  • PipPipPipPipPipPip
  • 557 posts

Posted 26 February 2008 - 06:20 PM

Can someone show me the AutoIt script that will immediately close a window
that appears on the desktop as soon as it appears if the Window Title and contents are known?

[code=auto:0]while 1
sleep(100)
if WinExists("NAME","Text") then WinClose("NAME")
Wend

Edited by ReaImDown, 26 February 2008 - 06:21 PM.

~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs

#3 weaponx

weaponx

    I'm coming for blood, no code of conduct, no law.

  • MVPs
  • 5,366 posts

Posted 26 February 2008 - 09:19 PM

Per your PM I would have posted the same thing as ReaImDown




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users