Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 00:44

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



winlist() with different items

Discussion on winlist() with different items within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2012
Posts: 2
Received Thanks: 0
winlist() with different items

hello everybody, i need your help please. this is my code and i will explain my problem in it


PHP Code:
#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]), 2Then
          $vv 
WinGetProcess($aList[$i][1])
         
MsgBox(0,"",""&$vv)

        EndIf
    
Next
 EndFunc 
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

PHP Code:
 Local $aList WinList("[class:PROCEXPL]" and "[class:MozillaWindowClas]" and "[class:PiriformCCleaner]" 
so my code will show me the PID of those applications only , but this dosen't work

thank you in advance
jeanoyaji is offline  
Old 02/03/2014, 22:56   #2
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Put the classnames in an array and loop WinList.
alpines is offline  
Old 02/03/2014, 23:01   #3
 
elite*gold: 0
Join Date: Oct 2012
Posts: 2
Received Thanks: 0
thank you for your answer
can you give me hints of how to put the arry?
jeanoyaji is offline  
Old 02/04/2014, 08:16   #4
 
lolkop's Avatar
 
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
Code:
$list = WinList("[REGEXPCLASS:(PROCEXPL)|(MozillaWindowClass)|(PiriformCCleaner)]")
For $i=1 To $list[0][0]
	ConsoleWrite(WinGetProcess($list[$i][1])&@CRLF)
Next
lolkop is offline  
Reply


Similar Threads Similar Threads
[Selling] Items on Eagle server (Including +12, Gems, Garments And lots of composing items)
09/19/2013 - Conquer Online 2 Trading - 8 Replies
I have played conquer for many years and decided to quit long time ago.. I might not be known on epvp, But i'm deffiniatly thrustworthy. And since there is allot of scamming going on on the internet i won't be the one going first but i don't mind to use a middleman like "www.playerauctions.com" (Sorry if i'm not allowed to mention website) It's just that i know that Transactions through that site are thrustworthy. I will be making screenshots and record the trades to make sure that the...
[Ganz Einfach]HowTo GM Items & Neue Waffen & Drachengott Items implementieren
08/01/2012 - Metin2 PServer Guides & Strategies - 31 Replies
Hey Com, ich weiß zwar, dass es schon einige solcher Threads gibt ABER diesen bestimmt noch nicht.... Also ich habe mal eine Query(Erklär ich gleich) für euch reingeschreiben, mit der man übelst einfach GM,Drachengott und neue Waffen entbuggt :) Also so gehts :1. Navicat öffnen 2. in die Datenbank "player" 3. die Tabelle "item_proto" öffnen 4. Links oben auf File
AutoIT - WinList
12/25/2010 - AutoIt - 9 Replies
Hello, I am making a program, which can detect mBot (SRO Bot) and then Hide it. I got the CLASS of the mBot window so a part of the code looks like this: Func _RefreshBot() _GUICtrlListView_BeginUpdate($listviewmBot) _GUICtrlListView_DeleteAllItems($listviewmBot) $Client = WinList ("") If $Client > 0 Then For $X = 1 To $Client GUICtrlCreateListViewItem($Client, $listviewmBot) Next Else
NIGHTCLUB CHEAT!! Clone all owned items even Facebook Credits Items 100%Working!!
08/21/2010 - Facebook - 2 Replies
Require Tools * Charles * Firefox * NotePad++ (not required but it makes your job easier) Credits: Kingrj123,Botete0030 Steps@pwnthis to cloning items even Facebook Credits items:



All times are GMT +1. The time now is 00:44.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.