Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

RUNQQ minimized?

ferrad01
Начинающий
695Просмотр.
I have an appllication which launches quickwin executables using RUNQQ. Trouble is that when the quickwin exe is launched is takes the focus from the window I am working on, so I can't run this app in the background. Is there any way to lauch the quickwin exe's minimized or such that they don't take focus?
0 баллов
5 Ответы
jimdempseyatthecove
Почетный участник III
695Просмотр.
Use start:

C:\YourFolder>start /? to get options

Try:

start /min YourProgram

Jim Dempsey
ferrad01
Начинающий
695Просмотр.
I'm running from a program, so I tried:

RUNQQ('start /min /wait '//PGNAM(1:J1)//' '//CMDLIN(1:J2),' ')

Works only intermittently though for some reason.
jimdempseyatthecove
Почетный участник III
695Просмотр.
Quoting ferrad01
I'm running from a program, so I tried:

RUNQQ('start /min /wait '//PGNAM(1:J1)//' '//CMDLIN(1:J2),' ')

Works only intermittently though for some reason.


Try

RUNQQ('start', '/min /wait '//PGNAM(1:J1)//' '//CMDLIN(1:J2))

IOW

filename = 'start'
command line (arguments) = '/min /wait PGNAM(1:J1) CMDLIN(1:J2)'

Jim

Steven_L_Intel1
Сотрудник
695Просмотр.
I would recommend using ShellExecute or CreateProcess (the latter if you need to wait for it to finish). These are Windows API routines and samples are provided in the old Visual Fortran Newsletter articles.
ferrad01
Начинающий
695Просмотр.
Thanks Jim and Steve,
I'll look at both options.
Ответить