prog$="C:\Program Files\Windows Media Player\wmplayer.exe"
RunProgram(prog$)
Delay(4000)
RunProgram(prog$)
running a program more than once
running a program more than once
Why does some software stop the user from running the program more than once?. If I run Windows Media Player twice it gives focus to the first instance of the application and not two WMPplayer windows. If anyone has any pointers on how to run an application twice I would be grateful, I've searched on google about mutex, process id's and it seems that no one else knows how to do it.
Re: running a program more than once
> If I run Windows Media Player twice it gives focus to the first instance of
> the application and not two WMPplayer windows
Select the option that says Open a new player for each media file played.
> the application and not two WMPplayer windows
Select the option that says Open a new player for each media file played.

I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
Re: running a program more than once
thanks but it was just an example.... Im trying to run a webserver twice but there is no such option, which is silly really because I can run one web service on port 80 and other port 8080. I guess I will just have to use two PC's...crazyPB wrote:> If I run Windows Media Player twice it gives focus to the first instance of
> the application and not two WMPplayer windows
Select the option that says Open a new player for each media file played.
btw I couldn't find that option in Windows Media Player 10 either, which menu/tab is it on?. Not sure why this has been put into off-topic, when Im trying to find a way of bypassing mutex with a purebasic program launcher

Re: running a program more than once
> I couldn't find that option in Windows Media Player 10
Oh, sorry, I'm not running WMP 10. You didn't say which version you were
running, so I just went by my version number. I don't have 10 installed so
I can't check it. Personally, I use Media Player Classic anyway, it's better!
> Im trying to find a way of bypassing mutex with a purebasic program launcher
I see. I don't think you can disable a mutex created by another app. Try
putting the app into a different folder... not all apps use mutexes and running
it from two different locations can sometimes trick it into running twice.
Oh, sorry, I'm not running WMP 10. You didn't say which version you were
running, so I just went by my version number. I don't have 10 installed so
I can't check it. Personally, I use Media Player Classic anyway, it's better!
> Im trying to find a way of bypassing mutex with a purebasic program launcher
I see. I don't think you can disable a mutex created by another app. Try
putting the app into a different folder... not all apps use mutexes and running
it from two different locations can sometimes trick it into running twice.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
It's not a microsoft webserver, its an application that broadcasts webcams. You can change the port of the 'webserver' it broadcasts on but you can't run it more than once. If I could run it twice I would use port 80 and 81 or whatever. I tried a few tricks like installing the application in two different directories and also the subtst trick but neither worked. For now I am using two PC'sdagcrack wrote:ooof course
use kfws stop using bullcrap

I think you are right about not being able to bypass a mutex application, I guess I will have to write a client to send the webcam images to the server but I don't like reverse engineering code.
thanks in advance.
btw mediplayer classic is ok but the best mediaplayer is Zoomplayer WMV Professional

you could dissassemble & just remove the call to the openmutex_() command... if app's not well protected that could be done easly, otherwise you could write a hook in a dll and then inject that dll [i think that PolyVector might come up with a nice lib in some time.. at least i hope that
]
absolutely best players
:
Winamp(music & sometimes movies wo subtitles), BSPlayer(movies with subtitles.) & PowerDVD(dvd's
)
and Real Alternative(realplayer etc.)
yup that should do all the playing you need.-.

absolutely best players

Winamp(music & sometimes movies wo subtitles), BSPlayer(movies with subtitles.) & PowerDVD(dvd's

and Real Alternative(realplayer etc.)
yup that should do all the playing you need.-.