Hi,
I need a script that always looking for some open window,
like location: "C:\"
and when its detected that "C:\" is open, it will kill this window and script will close.
I hope I explain myself correctly.
Thanks in advance!
help: WinKill with loop Topic is solved
Re: help: WinKill with loop
O.k
Found it.
Answer:
This will close libraries when it will be opened.
Found it.
Answer:
Code: Select all
#Notrayicon
Loop
{
IfWinActive, libraries
{
WinKill, libraries
break
}
}
Return
Re: help: WinKill with loop
It is better to use WinWaitAcitve than wasting your cpu with looping.....
Re: help: WinKill with loop
Any code sample?Guest wrote:It is better to use WinWaitAcitve than wasting your cpu with looping.....
-
- Posts: 1259
- Joined: 16 Apr 2015, 09:41
Re: help: WinKill with loop Topic is solved
Code: Select all
#Notrayicon
WinWaitActive, libraries
WinKill, libraries
ExitApp
Re: help: WinKill with loop
Tnx Shadowpheonix
Who is online
Users browsing this forum: RandomBoy and 259 guests