Indigo Rose Software

Professional Software Development Tools

 
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 22
  1. #1
    Join Date
    Apr 2004
    Location
    Taiwan
    Posts
    83

    CSD214...Can you please help me solving this project?

    Dear CSD214:
    Sorry for inconveninence again. Can you please help me again? Please you tell me how to modify this project?

    I have a problem. The project uses Media Player Classic to play mp3. It has some functions. For instance...It can type Ctrl-s to stop playing list and it can input a numeric to run loops.

    I remember last time that you give me a examples for my request. But now, I want to change Media Player Classic to play mp3. And it still has Ctrl-s to stop playing list and it can input a numeric to run loops also. How can I do ? Can you help me solving this important project? Thank.
    __________________
    Attached Files
    Pierre

  2. #2
    Join Date
    Oct 2001
    Location
    Norway
    Posts
    939

    Pierre, I feel flattered...

    But what’s the problem? You have changed the File.Run command (now "C:\\wplayerc.exe") and the title ("Windows Media Classic") when assigning value to WMP_handle. That should be OK, IF the file C:\wplayerc.exe DOES EXIST.

    I don’t have "Windows Media Classic" (wplayerc.exe), so the “while openLoop” becomes an infinitive loop. (BTW, I should never install an app in C: root). Last time I added a “Security Break”, but the code could be improved:

    Code:
    if loopCounter > 10 then
       -- the app hasn't checked whether WMP is installed
       restLoop = 0; -- added
       Label.SetText("labRestLoop", "");  -- added
       openLoop = false;
       break			-- to be sure to avoid an infinitive loop
    end
    (Audio files are not my kind of stuff...)

  3. #3
    Join Date
    Apr 2004
    Location
    Taiwan
    Posts
    83
    Dear CSD214:
    Sorry for bothering you again. Because the forum upload fix in 500kB. So if you can do it in your free time, you give me your email address, I can send the file to you. The file capacity is about 1.27MB. I really hope you can solve my problem. Because it related my job. Thank you for advance.
    Pierre

  4. #4
    Join Date
    Apr 2004
    Location
    Taiwan
    Posts
    83
    Dear CSD214:
    I had tested your methods as you said, it still can't reach my request. So may you please check these codes, oK? If you have any solutions, can you please tell me ASAP ? Thank you.
    Pierre

  5. #5
    Join Date
    Oct 2001
    Location
    Norway
    Posts
    939
    Pierre,
    You have some problems:

    1) The "Windows Media Classic" file is named mplayerc.exe (not wplayerc.exe).
    2) The app does not return any title through Window.EnumerateTitles() ????

    Did you know that all Windows distributions still include the old Media Player v6.4? Try MPLAYER2.EXE in C:\Program Files\Windows Media Player.

    May be you should change the e_Key to E (value 69) and the screen text to “PRESS - AND HOLD - E to end the playing list”. The AMS app has to have the focus. You can stop MPLAYER2.EXE with a period. Parameters /play /close are not supported.

    I’m afraid you have to do some debugging.

  6. #6
    Join Date
    Apr 2004
    Location
    Taiwan
    Posts
    83
    Dear CSD214:
    You're right. The "Windows Media Classic" file is named mplayerc.exe. And the media play is old version. At present, I use the newest version to design multi media cd. Its version is 6482. And it has playlist functions. So I will use it. The old version hasn't this function. Sorry, I still can't understand your meaning, can you give me a simply example as last time? Thank you for advance.
    Pierre

  7. #7
    Join Date
    Apr 2004
    Location
    Taiwan
    Posts
    83
    Dear CSD214:
    I had tested your methods that it seems can't reach my request.

    May be you should change the e_Key to E (value 69) and the screen text to “PRESS - AND HOLD - E to end the playing list”.

    I have a confuse problem, can you know what is the app return any title through Window.EnumerateTitles() ? Thanks.
    Pierre

  8. #8
    Join Date
    Oct 2001
    Location
    Norway
    Posts
    939
    I suppose you mean “Media Player Classic v. 6.4.8.2” from Gabest. I downloaded the app from this address

    When the prog is running I can’t retrieve the title (“Media Player Classic”) through Window.EnumerateTitles() in AMS! And if so, your project is not usable at all. Sorry. I didn’t know that an app could have a “hidden title”. Somebody else have to tell you (and me) WHY this happens!

    Try it yourself with some ordinary AMS code. Create a button with this On Click event:

    Code:
    wins = Window.EnumerateTitles(true);
    wins_count = Table.Count(wins);
    strTitles = ""
    
    for handle, title in wins do
       	strTitles = strTitles .. title .. ",\r\n"
    end
    
    Dialog.Message("Windows titles", wins_count.. " applications running".."\r\n"..strTitles);
    If you can’t use either wmplayer.exe or mplayer2.exe (Microsoft), I’m not able to help you.

    If you use mplayer2.exe, Ctrl-S is a shortcut for Save As.. Your app uses Ctrl-S to stop the play list. To avoid a mix up, I suggested modifying the lines

    Code:
    if  e_Modifiers.ctrl and e_Key == 83 then
    -- Ctrl-S
    	stopNow = true;
    to this

    Code:
    if e_Key == 69 then
    -- plain E (no Ctrl key)
    	stopNow = true;
    (Part of the code assigned to inpControl object.)

  9. #9
    Join Date
    Apr 2004
    Location
    Taiwan
    Posts
    83
    Dear CSD214:
    It really can't do it by Media Player Classic. My god!! How can I do ? Because now, I design a project about multi media films. At present, only media player classic that it can do playlist functions and it can support all formats video files. It includes vob, rm ,rmvb ,wmv ,avi ,vcd,svcd..etc as my requires. So I really hope who can help me? I have no ideas for this project. I just demand you to help me. Sorry for bothering again. But I really have no method. The project bothered me for a long time. Can you help me thinking other methods for this project, ok? Thank you for advance.
    Pierre

  10. #10
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    I'm having a tough time understanding what Pierre is trying to do, but you can get information about Media Player Classic using Window.EnumerateProcesses instead of EnumerateTitles.

    The help file has a nice example on how to get the window's handle using EnumerateProcesses.

    HTH

    Quote Originally Posted by pierre
    Dear CSD214:
    It really can't do it by Media Player Classic. My god!! How can I do ? Because now, I design a project about multi media films. At present, only media player classic that it can do playlist functions and it can support all formats video files. It includes vob, rm ,rmvb ,wmv ,avi ,vcd,svcd..etc as my requires. So I really hope who can help me? I have no ideas for this project. I just demand you to help me. Sorry for bothering again. But I really have no method. The project bothered me for a long time. Can you help me thinking other methods for this project, ok? Thank you for advance.

  11. #11
    Join Date
    Oct 2001
    Location
    Norway
    Posts
    939
    Thanks for stepping in, Worm. (I should have looked for a process command!)

    Pierre, now you should be on the road again.

  12. #12
    Join Date
    Apr 2004
    Location
    Taiwan
    Posts
    83
    Hi Worm:
    Where is your help file? And CSD214, I can't understand your meaning. You said that, [Pierre, now you should be on the road again.]
    ,Can you tell me reason? Thank you.
    Pierre

  13. #13
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    In the code editor, type:

    Window.EnumerateProcesses

    then press F1

    At the top of the help page, choose Example.

    What CSD214 meant was that with the help files example, you should be able to figure out how to get the needed information.


    Quote Originally Posted by pierre
    Hi Worm:
    Where is your help file? And CSD214, I can't understand your meaning. You said that, [Pierre, now you should be on the road again.]
    ,Can you tell me reason? Thank you.

  14. #14
    Join Date
    Jun 2004
    Location
    Australia
    Posts
    33

    My two cents...

    Be aware that Window.EnumerateProcesses requires PSAPI.dll. This file comes with all Win32 operating systems from Win 2k onwards but not with WinNT. If you don't have the file, the function will run but it will not detect any processes.

    Refer to my post about this here

  15. #15
    Join Date
    Apr 2004
    Location
    Taiwan
    Posts
    83
    SRJ:
    I have that file, but it isn't this project problem. The Window.EnumerateProcesses function still can work. It can't detect the Media Player Classic of title name. So I have no completed the project. So I still need who can help and solve me these issues? Thank you for advance.

    Who can help me.....
    Pierre

Page 1 of 2 1 2 LastLast

Similar Threads

  1. built project not running
    By yosik in forum AutoPlay Media Studio 4.0
    Replies: 13
    Last Post: 02-09-2003, 03:36 PM
  2. HOWTO: Open a Version 3.0 Project in Version 4.0
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-30-2002, 02:09 PM
  3. HOWTO: Create a Project Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-28-2002, 01:49 PM
  4. INFO: Recovering a Project File From a Built Application
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-10-2002, 08:44 AM
  5. Import a Project file ?
    By SwamiTK in forum Setup Factory 6.0
    Replies: 2
    Last Post: 05-29-2001, 07:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts