Jump to content


Photo

Stopping An External Program


  • Please log in to reply
2 replies to this topic

#1 shyan

shyan

    GMC Member

  • GMC Member
  • 109 posts

Posted 13 November 2006 - 06:42 AM

I am trying to create a music that can play outside of the GM default media player. The file type is minipsf2, and can play effectively in winamp.

execute_shell("C:\Documents and Settings\HP Owner\Desktop\03 - City of Bells.psf2",1)
This code pulls up the Music: 03 - City of Bells, and plays it in Winamp if the default 'open's with' function for psf2 files is Winamp.

The problem lies to stop this program when ESC is pressed. However, I don't believe there is a function for this.

Any help is appreciated!
  • 0

#2 Calle

Calle

    GMC Member

  • GMC Member
  • 689 posts

Posted 13 November 2006 - 03:01 PM

Nope, there most probably isn't. Once executed with execute_shell that stays so. I see your problem though.

I think that if you execute another Game Maker file though and used the embed DLL with that you could embed the program in it at start and then let esc end that file. The program will hopefully go down with it.

Do you get me?
  • 0

#3 th15

th15

    GMC Member

  • GMC Member
  • 1566 posts

Posted 13 November 2006 - 05:06 PM

The OS doesn't really allow programs to access each other like that. It's a security issue. If I could make a program that could control other applications on your computer, don't you think I could really mess some things up?
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users