Register for your free account! | Forgot your password?

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

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

Advertisement



Prozesse durchsuchen

Discussion on Prozesse durchsuchen within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
AutoitScript's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 74
Received Thanks: 24
Prozesse durchsuchen

Hi epvp,
Ich möchte ein Programm schreiben, das alle Prozesse nach einem Wort durchsucht.
PHP Code:
#include <array.au3>
$arr=ProcessList()
$arr1=_ArrayToString($arr)
if 
Stringinstr($arr1,"explorer")<>0 Then
    MsgBox
(0,"handler","explorer gefunden")
EndIf
Msgbox(0,$arr1,$arr1
Warum funktioniert das nicht? DIe MSgBox ist nur zur Probe da, doch sie ist immer leer.

EDIT:
Habs auch schon so versucht:
PHP Code:
 #include <array.au3>
$arr=ProcessList()
$se=_ArraySearch($arr,"explorer")
if 
$se<>-1  Then
    MsgBox
(0,"gefunden","hier: "&$se)
    EndIf 
Allerdings liefert ArraySearch immer 1 zurück, was bedeutet, das es kein array ist. Es ist jedoch einer und lasst sich mit arraydisplay auflisten.
AutoitScript is offline  
Old 02/01/2011, 11:09   #2
 
-AmA-'s Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 728
Received Thanks: 460

PHP Code:
#include <array.au3>
$arr=ProcessList()
$se=_ArraySearch($arr,"explorer"0001)
if 
$se<>-1  Then
    MsgBox
(0,"gefunden","hier: "&$arr[$se][0])
EndIf 
-AmA- is offline  
Thanks
1 User
Old 02/01/2011, 11:20   #3
 
AutoitScript's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 74
Received Thanks: 24
Danke du bist der beste!
AutoitScript is offline  
Reply




All times are GMT +1. The time now is 20:47.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.