Followers 0

# need some help with processlist

## 7 posts in this topic

so far i have

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

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?

##### 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
Next

SplashTextOn("", \$sList, 300, @DesktopWidth) ; :o
Sleep(3000)```

##### Share on other sites

#3 ·  Posted (edited)

doesnt work, all it sais is autoit3wrapper.exe about 3 seconds and closes

and i think

`\$sList &= \$aList[\$i][0] & @LF`
is a typo Edited by Dead_Man

##### 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...

##### Share on other sites

\Desktop\dsffsdf.au3 (5) : ==> Expected a "=" operator in assignment statement.:

##### Share on other sites

#6 ·  Posted (edited)

If I use AutoIt 3.1.1 on this script

```Global \$a
\$a &= 'string'```

then I get this error (same as yours)

```---------------------------
AutoIt Error
---------------------------

\$a &= 'string'
\$a ^ ERROR

Error: Expected a "=" operator in assignment statement.
---------------------------
OK
---------------------------```

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

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

Edit:

Fixed typo

Edited by MHz

##### 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 !