Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Problem to start uMCEDVDPlayer.exe from TMT3

If you have a question or need help, this is the place to be.
scorpie
Posts: 15
Joined: Sat Aug 29, 2009 5:28 pm

Problem to start uMCEDVDPlayer.exe from TMT3

Post by scorpie »

Hi,

if I am trying to start the program above with the function "Start Application" nothing happens. I can start every other program, but none from TMT3. I have tried every window option and process priority and now idk what to do.

If can start the program manually everything works, but this is useless if i am not able to start it with EG.

Can someone help me?

Thanks
scorpie
stottle
Plugin Developer
Posts: 636
Joined: Sun Apr 26, 2009 10:59 pm

Re: Problem to start uMCEDVDPlayer.exe from TMT3

Post by stottle »

It works for me with the default settings. Are you trying to pass arguments or something else different between normal startup and what you are doing in EG?

Also, the only thing I'm aware of is that TMT won't start (within EG or otherwise) if Visual Studio is running.

Brett
scorpie
Posts: 15
Joined: Sat Aug 29, 2009 5:28 pm

Re: Problem to start uMCEDVDPlayer.exe from TMT3

Post by scorpie »

i give up, i really need help and I should improve my English *lol* Hope it is not too hard to understand

i created a empty xml just with this entries

@stottle

are there any differences between this one here and yours?

Code: Select all

  <?xml version="1.0" encoding="UTF-8" ?> 
- <EventGhost Name="Konfigurations-Baum" Expanded="True" Version="1170" Guid="{8FB3BA93-8051-420A-9DF6-DB5958A805D2}" Time="1252188948.42">
  <Autostart Name="Autostart" /> 
- <Macro Name="Starte Anwendung: uMCEDVDPlayer.exe" Expanded="True">
  <Action>System.Execute(u'D:\\Media\\TotalMedia\\uMCEDVDPlayer.exe', u'', 0, False, 2, u'')</Action> 
  </Macro>
  </EventGhost>
and this is the plugin I wrote. Wrote is a bit too much - I changed the PDVD plugin.

Code: Select all

eg.RegisterPlugin(
    name="TMT3",
    description="Adds actions to control TMT3.",
    kind="program",
    author="scorpie",
    version="1",
    createMacrosOnAdd=True,  
)

ACTIONS = [
    ("Play", "Play", "", "{Ctrl+Shift+p}"),
    ("Pause", "Pause", "", "{Ctrl+p}"),
    ("Stop", "Stop", "", "{Ctrl+Shift+s}"),
    ("CloseProgram", "Close Program", "", "{Alt+F4}"),
    ("Menu", "Menu", "", "{Ctrl+Shift+m}"),
    ("PreviousChapter", "Previous chapter", "", "{Ctrl+b}"),
    ("NextChapter", "Next chapter", "", "{Ctrl+f}"),
    ("Forward", "Forward", "", "{f}"),
    ("Rewind", "Rewind", "", "{Ctrl+Shift+b}"),
    ("ChangeAudio", "Change Audio", "", "{Ctrl+Shift+a}"),
    ("ChangeSubtitles", "Change Subtitles", "", "{Ctrl+u}"),
    ("NavigationUp", "Navigation Up", "", "{Up}"),
    ("NavigationDown", "Navigation Down", "", "{Down}"),
    ("NavigationLeft", "Navigation Left", "", "{Left}"),
    ("NavigationRight", "Navigation Right", "", "{Right}"),
    ("NavigationEnter", "Navigation Enter", "", "{Return}"),
    ("FullScreen", "Full Screen", "", "{Alt+Space+x}"),
    ("Restore", "Restore", "", "{Alt+Space+r}"),
    ("Minimize", "Minimize", "", "{Alt+Space+n}"),
    ("Mute", "Mute", "", "{q}"),
    ("Volume Up", "Volume Up", "", "{Shift+Up}"),
    ("Volume Down", "Volume Down", "", "{Shift+Down}"),

]

from eg.WinApi import SendKeys

gWindowMatcher = eg.WindowMatcher('uMCEDVDPlayer{*}.exe', 'ArcSoft TotalMedia Theatre for Windows Media Center{*}')


class ActionPrototype(eg.ActionBase):
    
    def __call__(self):
        hwnds = gWindowMatcher()
        if hwnds:
            eg.SendKeys(hwnds[0], self.value)
        else:
            raise self.Exceptions.ProgramNotRunning
        
        
        
class TMT(eg.PluginBase):
    
    def __init__(self):
        self.AddActionsFromList(ACTIONS, ActionPrototype)
            
stottle
Plugin Developer
Posts: 636
Joined: Sun Apr 26, 2009 10:59 pm

Re: Problem to start uMCEDVDPlayer.exe from TMT3

Post by stottle »

You've got the macro to start TMT in your autostart. Can you try with the macro outside autostart?

Also, I don't know if you saw this, but I posted a plugin for TMT a while back. You can find it here.

Brett
scorpie
Posts: 15
Joined: Sat Aug 29, 2009 5:28 pm

Re: Problem to start uMCEDVDPlayer.exe from TMT3

Post by scorpie »

I know it is in the autostart, but this was just for a test. It doesnt matter where I put it - the prog. wont start no matter what I try *arrgggg*

My plugin is working if the prog. is running, but thanks I will try yours, but first I need to solve the start problem. Can u show me your config parameters for the start, maybe it will work then

I tried you plugin. It is working with the uDigital Theatre.exe, but I am also not able to start this exe via EG
stottle
Plugin Developer
Posts: 636
Joined: Sun Apr 26, 2009 10:59 pm

Re: Problem to start uMCEDVDPlayer.exe from TMT3

Post by stottle »

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="0">
    <Macro Name="Start Program: uMCEDVDPlayer.exe" Expanded="True">
        <Action>
            System.Execute('C:\\Program Files\\ArcSoft\\TotalMedia Theatre 3\\uMCEDVDPlayer.exe', '', 0, False, 2, '')
        </Action>
    </Macro>
</EventGhost>
scorpie
Posts: 15
Joined: Sat Aug 29, 2009 5:28 pm

Re: Problem to start uMCEDVDPlayer.exe from TMT3

Post by scorpie »

oh man *censored*

i tried yours, deinstalled (is this an English word) and reinstalled it to c:\...... and nope,nothing, nada, nix

any ideas left, maybe someone else

helppppppp me please
scorpie
stottle
Plugin Developer
Posts: 636
Joined: Sun Apr 26, 2009 10:59 pm

Re: Problem to start uMCEDVDPlayer.exe from TMT3

Post by stottle »

Try starting a different application, like notepad.exe.

If that works, the problem is in opening TMT. If it doesn't work, then the problem is somewhere in EG. Also, with EG open, can you manually start TMT (like I said, TMT won't run with Visual Studio running, this will make sure nothing like that is happening).

Brett
scorpie
Posts: 15
Joined: Sat Aug 29, 2009 5:28 pm

Re: Problem to start uMCEDVDPlayer.exe from TMT3

Post by scorpie »

Thanks for your patience.

As I wrote in my first post, I can start every other program, except this one. Yes I can open it manually if EG is open. I have Microsoft Visual C++ 2005 Redistributable (x64), Microsoft Visual C++ 2008 Redistributable and Microsoft Visual J# 2.0 Redistributable Package installed. Please don't ask me why, all I know there are some programs which installed this. But I can not remember which programs.

I removed every of the Microsoft Visual, but nothing changed
stottle
Plugin Developer
Posts: 636
Joined: Sun Apr 26, 2009 10:59 pm

Re: Problem to start uMCEDVDPlayer.exe from TMT3

Post by stottle »

If you aren't running the most recent version of EG (3.7.r1194), try that and see if it makes a difference.

Brett
scorpie
Posts: 15
Joined: Sat Aug 29, 2009 5:28 pm

Re: Problem to start uMCEDVDPlayer.exe from TMT3

Post by scorpie »

I am already running the latest version 3.7.r1194

That is really weird! *&%/(%&%§%$))*
stottle
Plugin Developer
Posts: 636
Joined: Sun Apr 26, 2009 10:59 pm

Re: Problem to start uMCEDVDPlayer.exe from TMT3

Post by stottle »

The only other suggestion I have is not much fun. The code for starting an application is in eg\plugins\System\Execute.py, in the __call__ routine. I would add some print statements to the file (in particular, print out res after CreateProcess runs) to see if there is anything that keeps the function from finishing successfully. If that call works properly, the problem has to be on the TMT side. That being the case, I would start a thread on the arcsoft forums.

Brett
scorpie
Posts: 15
Joined: Sat Aug 29, 2009 5:28 pm

Re: Problem to start uMCEDVDPlayer.exe from TMT3

Post by scorpie »

Uhhh, i have no clue how to program, so I can't add some print statements.

I found a solution, not the best one, but it works.

Image
stottle
Plugin Developer
Posts: 636
Joined: Sun Apr 26, 2009 10:59 pm

Re: Problem to start uMCEDVDPlayer.exe from TMT3

Post by stottle »

Yeah, it's not pretty. Glad it works. If you ever figure out a better fix, please post back.

Brett
scorpie
Posts: 15
Joined: Sat Aug 29, 2009 5:28 pm

Re: Problem to start uMCEDVDPlayer.exe from TMT3

Post by scorpie »

haven't found another solution.

but i still have a question. If u use the "select source" function and u select media file - how do u navigate with the remote thru the new window? Do u use the mouse then *lol* wouldn't be very practical.
Post Reply