Page 1 of 1

Help Running Windows UWP Apps

Posted: Fri Dec 13, 2019 7:57 pm
by ebs
There is a thread here http://forums.purebasic.com/english/vie ... 1&p=546131
that explains that Windows UWP apps like Calculator don't return a usable ProgramID, since they are intercepted by Windows.

Can anyone suggest a method to run another UWP app (Windows Camera) and be able to determine when it closes?

Thanks,
Eric

Re: Help Running Windows UWP Apps

Posted: Sat Dec 14, 2019 4:41 pm
by ynkrc

Code: Select all

run=RunProgram("calc.exe","","",#PB_Program_Open)
    While ProgramRunning(run)
      Debug ProgramID(run)
    Wend
Debug ProgramExitCode(run)
Test in win10, the calculator form appear at the time 'run'stoping. and the calculater Form points to a new process "Calculator. exe"
Purebasic just start calc.exe,
and calc.exe start "Calculator. exe" and quit.
but calc.exe is not the parent process of "calculator.exe".
so I think calc.exe start calculator.exe through interprocess communication or calling specific parameters of the service program.