Dead_Man Posted September 3, 2006 Share Posted September 3, 2006 so far i have ; List all processes $list = ProcessList() Run("notepad.exe") WinWaitActive("Untitled - Notepad") 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? Link to comment Share on other sites More sharing options...
Helge Posted September 3, 2006 Share Posted September 3, 2006 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) Link to comment Share on other sites More sharing options...
Dead_Man Posted September 3, 2006 Author Share Posted September 3, 2006 (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 September 3, 2006 by Dead_Man Link to comment Share on other sites More sharing options...
Helge Posted September 3, 2006 Share Posted September 3, 2006 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] & @LFThe 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 More sharing options...
Dead_Man Posted September 3, 2006 Author Share Posted September 3, 2006 \Desktop\dsffsdf.au3 (5) : ==> Expected a "=" operator in assignment statement.: Link to comment Share on other sites More sharing options...
MHz Posted September 3, 2006 Share Posted September 3, 2006 (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 --------------------------- 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. --------------------------- 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 September 3, 2006 by MHz Link to comment Share on other sites More sharing options...
Helge Posted September 3, 2006 Share Posted September 3, 2006 Helge did mention the use of &= operater which is not in 3.1.1Correct. It was introduced in the 3.1.1-betas so if used in the 3.1.1-release or prior it willfail. 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now