WinAction – by Sverx – www.sverx.tk
WinAction 0.90 è gratis ed è
disponibile per il download qui
Per
domande/commenti scrivete al
mio
indirizzo di posta elettronica
WinAction
0.90 is free and you can download it here
For
questions/comments write to my
e-mail address
WinAction (the English version of this document is right after the Italian one...)
WinAction - Utilizzo [Italiano]
WinAction è una Windows(tm) console application (scritta in MS Visual C++) che permette di operare alcune operazioni sulle finestre aperte.
Le operazioni possibili sono:
- ottenere la lista delle finestre
aperte
- chiudere delle finestre, come se si facesse click sul
tasto con la "X" nell'angolo alto a destra nella barra del
titolo della finestra
La sintassi per utilizzare WinAction è la seguente:
WinAction -a list|close [-h+] [-t <titolo>] [-c <classe>]
I parametri sono:
|
-a list|close |
specifica l'azione desiderata: lista o chiusura delle finestre |
|
-h+ |
specifica che si vogliono includere nel comando anche le finestre non visibili ("hidden") |
|
-t <titolo> |
considera esclusivamente le
finestre il cui titolo contenga la stringa <titolo> |
|
-c <classe> |
considera esclusivamente le
finiestre la cui classe sia <classe> |
sia <titolo> che <classe> non fanno distinzione tra caratteri maiuscoli e minuscoli.
Esempi:
Es. 1 - Ottenere una lista delle finestre aperte e visibili:
WinAction -a list
Es. 2 - Ottenere una lista delle finestre aperte (sia visibili che invisibili):
WinAction -a list -h+
La lista fornita contiene in ogni riga tre informazioni: l'"handle" della finestra, la classe, il titolo completo
Es. 3 - Ottenere la lista delle finestre visibili di classe "IEFrame" (ovvero le finestre di Internet Explorer)
WinAction -a list -c ieframe
Es. 4 - Chiudere le finestre visibili di classe "WinAmp v1.x" (WinAmp)
WinAction -a close -c "WinAmp v1.x"
(le doppie virgolette servono per poter specificare un parametro contenente caratteri spazio)
Es. 5 - Chiudere le finestre il cui titolo contiene la parola "Yahoo"
WinAction -a close -t yahoo
Es. 6 - Chiudere le finestre, visibili e non, di classe "IEFrame" il cui titolo contiene la frase "about:blank"
WinAction -a close -h+ -c IEFrame -t "about:blank"
Nota: il comando
WinAction -a close
senza nessun parametro -c o -r chiuderebbe _tutte_ le finestre e quindi -per sicurezza- non è consentito.
WinAction is a Windows(tm) console application (written with MS Visual C++) that let you do some operations on open windows.
These operations are:
- obtain a list of open windows
-
close a/some window(s), similarly to the action you can do clicking
with your mouse on the "X" button on the upper right corner
of the window
The syntax to launch the application follows:
WinAction -a list|close [-h+] [-t <title>] [-c <class>]
Parameters:
|
-a list|close |
specify if you want to list the windows or close them |
|
-h+ |
specify if you want to include windows that are hidden |
|
-t <title> |
consider only the windows whose
title contains <title> |
|
-c <class> |
consider only the windows whose
class is <class> |
both <title> and aren't case-sensitive.
Examples:
Ex. 1 - Obtain a lista of the visible open windows:
WinAction -a list
Ex. 2 - Obtain a list of the open window, both visible and hidden ones:
WinAction -a list -h+
The list contains three information for each row: the window handle, the class, the complete title
Ex. 3 - Obtain the list of the visible windows of "IEFrame" class (Internet Explorer windows)
WinAction -a list -c ieframe
Ex. 4 - Close the visible windows of class "WinAmp v1.x" (WinAmp)
WinAction -a close -c "WinAmp v1.x"
(Quotas are needed to specify a parameter which contains spaces)
Ex. 5 - Close the windows whose title contains the word "Yahoo"
WinAction -a close -t yahoo
Ex. 6 - Close the windows, both visible and hidden, of "IEFrame" class whose title contains the string "about:blank"
WinAction -a close -h+ -c IEFrame -t "about:blank"
Nota: the command
WinAction -a close
without other parameters like -c or -r would close _every_ window so -for security reasons- isn't accepted.