Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Bash / Shell Scripting (http://www.programmingforums.org/forum26.html)
-   -   A way to open an app with a specific name/id? (http://www.programmingforums.org/showthread.php?t=5267)

MegaArcon Aug 5th, 2005 6:25 AM

A way to open an app with a specific name/id?
 
Hi all,

I was wondering if anybody out there knew how to open an application with a specific window name or id. To be specific, I'm writing a set of scripts that play various media files though mplayer, and I want mplayer open with either a specific window name, or an id. Or even someway to get the window id on startup. That would be a great help!

From looking myself...the closest I've come to finding a solution is the x11 command "xwininfo," which returns a great deal of info about the window including it's id...but I need the name of the window for that to work...and since there will be multiple mplayers open at one time, it would be most helpful if I had a way to either set a name to mplayer on startup, or get/set it's id on startup.

Thanks for all the help! :D

jim mcnamara Aug 8th, 2005 8:57 AM

Do you mean 'talk to' rather than open?

If so, you mean IPC - inter process communication.

mackenga Aug 31st, 2005 6:53 AM

Unless the app supports a command line option to set its window ID, I have my doubts about the possibility of forcing one. Finding one out is a maybe, though; there must be some way to get a list of open windows or maybe the ID of the uppermost window. I'm just barely scratching the surface of Windows scripting myself, so I don't know for sure. Anyone else know more? I'd be interested to know, too.


All times are GMT -5. The time now is 5:39 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC