[..] Winlist() with different items
Posté : lun. 03 févr. 2014 23:10
hello everybody, i need your help please. this is my code and i will explain my problem in it
i want to get the process of more than one application ,but i want to specific the app
in my code i specified the "[class:PROCEXPL]" and i get its PID but i need to specify more than one app like this
so my code will show me the PID of those applications only , but this dosen't work
thank you in advance
Code : Tout sélectionner
#include <MsgBoxConstants.au3>
Example()
Func Example()
; Retrieve a list of window handles.
Local $aList = WinList("[class:PROCEXPL]")
; Loop through the array displaying only visable windows with a title.
For $i = 1 To $aList[0][0]
If $aList[$i][0] <> "" And BitAND(WinGetState($aList[$i][1]), 2) Then
$vv = WinGetProcess($aList[$i][1])
MsgBox(0,"",""&$vv)
EndIf
Next
EndFuncin my code i specified the "[class:PROCEXPL]" and i get its PID but i need to specify more than one app like this
Code : Tout sélectionner
Local $aList = WinList("[class:PROCEXPL]" and "[class:MozillaWindowClas]" and "[class:PiriformCCleaner]" )thank you in advance