zvd Posted February 2, 2007 Share Posted February 2, 2007 I'm trying to have just one message box show all the applications running on the taskbar. In this example, I get a message box for each application running, with the last box finally showing all the applications. How would I make it so I only retrieve the contents of the last message box? (Also, is there a better way to retrieve the running applications other than ObjCreate("Word.Application")? At least using this returns friendly names... Global $strList $objWord = ObjCreate("Word.Application") $colTasks = $objWord.Tasks For $objTask In $colTasks If $objTask.Visible Then $strList = ($strList & $objTask.Name & @CR) MsgBox(0, "", $strList) EndIf Next Link to comment Share on other sites More sharing options...
evilertoaster Posted February 2, 2007 Share Posted February 2, 2007 Global $strList $objWord = ObjCreate("Word.Application") $colTasks = $objWord.Tasks For $objTask In $colTasks If $objTask.Visible Then $strList = ($strList & $objTask.Name & @CR) Next MsgBox(0, "", $strList) Link to comment Share on other sites More sharing options...
zvd Posted February 2, 2007 Author Share Posted February 2, 2007 Thanks alot for your quick help! 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