Thanks for all the suggestions!
Some are very cool, but my wishes are quite simple. (I think) One method I got a little more stuck for was
Talk().ahk,
but never found the sample file (
talk_examples.7z) to which the program refers.
My program structure / wishes are as follows:
ProgB1.ahk Starts Program.exe (through the scheduler) to avoid the UAC query.
ProgB2.ahk Stops Program.exe (through the scheduler) to avoid the UAC query.
(Both of these programs have about 5-600 rows - There are some other AHK-programs that do similar things)
It may take 5-50 seconds to run
ProgB1.ahk /
ProgB2.ahk - as waiting for
Program.exe to start or stop.
Now I was write another program (
ProgA) that communicates with
ProgB1 or
ProgB2 (not at the same time).
But wasn't as simple as I hoped.
If an error occurs in
Program.exe,
ProgB? gets information about this (but never
ProgA)
Although
ProgB waits for
Program.exe has been
started /
stopped (with
RunWait), RunWait does not work in
ProgA (
ProgA quits after only a few seconds)
ProgA can do many things, one thing is the following.
- Run ProgB2 (Stop Program.exe - if running)
- Wait until Program.exe is not running
- Modify an ini-file to Program.exe and give the ini-file some new values.
- Start Program.exe again
- Wait until Program.exe is running (or ProgB1 is closed)
I had wished that any error messages had been transferred from
ProgB1 /
ProgB2 to
ProgA or if there is a "
program stop" in
ProgB1 /
ProgB2,
ProgA would also be terminated.
But above all, make
ProgA wait for
ProgB1 /
ProgB2 to be executed.
(Perhaps, this can I try to keep track of through the task manager from
ProgA)