jaenster Posted May 23, 2008 Share Posted May 23, 2008 (edited) ; List all processes $list = ProcessList() for $i = 1 to $list[0][0] msgbox(0, $list[$i][0], $list[$i][1]) next ; List just notepad.exe processes $list = ProcessList("notepad.exe") for $i = 1 to $list[0][0] msgbox(0, $list[$i][0], $list[$i][1]) nextI ran this, and i get the normal floatingpoint error: Edited May 23, 2008 by jaenster -jaenster Link to comment Share on other sites More sharing options...
Andreik Posted May 23, 2008 Share Posted May 23, 2008 This code is correct. Maybe your compiler is bad. When the words fail... music speaks. Link to comment Share on other sites More sharing options...
jaenster Posted May 23, 2008 Author Share Posted May 23, 2008 This code is correct. Maybe your compiler is bad.Have the newst beta and compiler, Be usefull or dont reply -jaenster Link to comment Share on other sites More sharing options...
Kerros Posted May 23, 2008 Share Posted May 23, 2008 (edited) I modified the code a bit to output items to console instead of messagebox. Everything worked fine for me as well. Modified code: ; List all processes $list = ProcessList() ConsoleWrite('List ALL processes'&@CRLF) for $i = 1 to $list[0][0] ConsoleWrite($list[$i][0]& ' '& $list[$i][1]&@CRLF) next ConsoleWrite('================================'&@CRLF) ; List just notepad.exe processes $list = ProcessList("notepad.exe") ConsoleWrite('List just Notepad processes'&@CRLF) for $i = 1 to $list[0][0] ConsoleWrite($list[$i][0]& ' '& $list[$i][1]&@CRLF) next Edit: Just for the sake of trial and error I changed it back to messageboxes and compiled the code. It ran without error,showing the messageboxes. Edited May 23, 2008 by Kerros Kerros===============================================================How to learn scripting: Figure out enough to be dangerous, then ask for assistance. Link to comment Share on other sites More sharing options...
PsaltyDS Posted May 23, 2008 Share Posted May 23, 2008 (edited) ; List all processes $list = ProcessList() for $i = 1 to $list[0][0] msgbox(0, $list[$i][0], $list[$i][1]) next ; List just notepad.exe processes $list = ProcessList("notepad.exe") for $i = 1 to $list[0][0] msgbox(0, $list[$i][0], $list[$i][1]) next I ran this, and i get the normal floatingpoint error: You ran it how? With what version of AutoIt? How did the VC++ runtime get involved? Have the newst beta and compiler, Be usefull or dont reply The latest Beta what? The latest beta as of today (3.2.11.12) is older than the current production (3.2.12.0). Edited May 23, 2008 by PsaltyDS Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law 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