Recent

Author Topic: Start proces from Lazarus  (Read 2873 times)

aducom

  • Full Member
  • ***
  • Posts: 162
    • http://www.aducom.com
Start proces from Lazarus
« on: July 13, 2016, 09:21:03 pm »
I'm using the process component to start an application. That works well except for one executable. I try to startup Opera Mobile Emulator. It starts up in a way that I find it in the windows process list, but the application remains hidden. If I click the icon by the mouse it does start up. I tried to play with the several options, but I didn't come closer. Did anybody try this? What are possible things to look at?
« Last Edit: July 13, 2016, 09:27:20 pm by aducom »

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Start proces from Lazarus
« Reply #1 on: July 13, 2016, 09:27:20 pm »
If I click the icon by the mouse it does start up.

Where? On the task bar? That means the program is running, but minimized.

Try setting TProcess.ShowWindow to various values.


aducom

  • Full Member
  • ***
  • Posts: 162
    • http://www.aducom.com
Re: Start proces from Lazarus
« Reply #2 on: July 13, 2016, 09:30:19 pm »
Tnx for replying. No, I can only see it if I do a ctrl alt del and look at the processes. I found a property ShowWindow, and if I set it to swoShow it seems to work right. But why this property is needed where other apps just startup w.o.issues I don't know. Appearantly this app needs some different approach.

guest58172

  • Guest
Re: Start proces from Lazarus
« Reply #3 on: July 13, 2016, 10:19:43 pm »
An application can contain code that detects if it's launched from another application and change its behavior accordingly. Maybe the one you alk about use something  like that. What does it give if you add the option poNewConsole to the processes options ? (and doesn't change the showwindow param) ?

 

TinyPortal © 2005-2018