Jump to content

need some help with processlist


Recommended Posts

so far i have

; List all processes
$list = ProcessList()
    WinWaitActive("Untitled - Notepad")
for $i = 1 to $list[0][0]
  Send($list[$i][0] & "{tab 5}" & $list[$i][1] & @LF)
$1 = InputBox("close","what do you want to close?")
while 1
$PID = ProcessExists($1)
If $PID Then ProcessClose($PID)
exit 1

but i want it to display the processes faster so i tried converting it to SplashTextOn but when one process is listed it changes the text to the next process instead of listing them.... any help?

Link to comment
Share on other sites

Unless you have very few processes running and/or you have a gigantic resolution on your

monitor, you most likely will not be able to see all off the listed processes. You might want

to consider listing it in another way...maybe by changing that @LF to ", " or something.

$aList = ProcessList()
$sList = ""

For $i = 1 To $aList[0][0]
    $sList &= $aList[$i][0] & @LF

SplashTextOn("", $sList, 300, @DesktopWidth) ; :o
Link to comment
Share on other sites

I think that autoit3wrapper.exe is a Scite-thingie but as I rarely run my scripts directly thru

Scite I don't know. No typo there. If you mean the &= thing it basically means the same as :

$sList = $sList & $aList[$i][0] & @LF
The script should run without any problems if you start it "manually", but it would probably

help us if you showed us the entire error-message you get when running your script...

Link to comment
Share on other sites

If I use AutoIt 3.1.1 on this script

Global $a
$a &= 'string'

then I get this error (same as yours)

AutoIt Error
Line 2  (File "D:\My Downloads\Downloads\Compilers\AutoIt3\Autoit v3.1.0 Final\New AutoIt v3 Script.au3"):

$a &= 'string'
$a ^ ERROR

Error: Expected a "=" operator in assignment statement.

Ths may mean that you are running AutoIt 3.1.1 instead of the latest public release version?

Helge did mention the use of &= operater which is not in 3.1.1



Fixed typo

Edited by MHz
Link to comment
Share on other sites

Helge did mention the use of &= operater which is not in 3.1.1

Correct. It was introduced in the 3.1.1-betas so if used in the 3.1.1-release or prior it will

fail. I was about to add that to my post but since he said that he thought it was a typo,

I just thought that he had a "problem" with it and not AutoIt. Oh well. Update your AutoIt !

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...