Posts: 3,912
Joined: Apr 2004
Reputation:
29
kricker
Team-XBMC QA Specialist
Posts: 3,912
I don't have a clue how to program, but I am willing to try an learn. Can someone point me to the file that has the XBMC.System.ExecWait code in it? I want to tinker on my own to see if I can get it to launch an external app without minimizing XBMC and force the launched app to be on top. I'll probably never figure it out, but heck it's worth a try. It's the only thing keeping me from running XBMC full time on my HTPC.
Posts: 4,549
Joined: Dec 2007
Reputation:
17
topfs2
Team-Kodi Developer
Posts: 4,549
It is in xbmc/Win32/CWIN32Util.cpp
The method is: CWIN32Util::XBMCShellExecute() @ row 333.
It is called from xbmc/Util.cpp and the method ExecBuiltin()
Good luck!
Cheers,
Tobias.
If you have problems please read
this before posting
Always read the
XBMC online-manual,
FAQ and
search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the
forum rules.
For troubleshooting and bug reporting please make sure you
read this first.
"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Posts: 2,745
Joined: Oct 2003
Reputation:
1
WiSo
Team-Kodi Developer
Posts: 2,745
Note that we don't have much possibilities in transferring parameters afaik so you might have to define new commands to archive what you want if you want to preserve the old ones.
Posts: 1,165
Joined: Jan 2009
Reputation:
2
CrashX
Posting Freak
Posts: 1,165
To force a window to be on top, you can try the following:
1) Increase the Z-order of the window
2) Activate the window
Posts: 14
Joined: Aug 2010
Reputation:
1
nd66
Junior Member
Posts: 14
hi there kricker,
sorry to resurrect an old thread, but have you been able to figure out how to stop XBMC from minimizing when launching an external application (cmd).
I have been messing around with ShowWindow and the various attributes it holds. I'm currently building a SW_SHOWNA to see if that allows xbmc to remain behind the app in a nonactive state.
I will also look more into SetWindowPos as mentioned by CrashX
Posts: 3,912
Joined: Apr 2004
Reputation:
29
kricker
Team-XBMC QA Specialist
Posts: 3,912
As far as I know based on how the DX nature of it works you can't do it.
Posts: 3,912
Joined: Apr 2004
Reputation:
29
kricker
Team-XBMC QA Specialist
Posts: 3,912
I'm on the edge of my seat. I hope it works.