How to check if Form is active

Mr_Gee

Active Member
Licensed User
Longtime User
I hope someone can help me,
Is there a way to have the program check if it is on the foreground?

I want to make a program which will open a 2nd program, once that 2nd program is finished/closed the focus should go back to my app and it needs to do something else.

I have tried with Form1.Focus (= true) and Control("Form1").Focus = true
But I cannot seem to get it working.
I also thought i might be able to use a Textbox for the focusing part but that
also didn't do anything.

The workaround would be to have a MsgBox popup which the user needs to click..
but that would only be a last resort ...

I could use some :sign0085:
Thanks
 

pmu5757

Member
Licensed User
Wait for a sound command stop

Hello,
Is it also possible to wait for the end of a B4PPC command like sound?
I would like to wait for the end of the ".wav" file before doing something else.

Thank you.
 

pmu5757

Member
Licensed User
Wait for a sound command stop

I don't know the length of the wave file,
so I'm gonna try the Hekkus lib
Thank you Erel.
 
Top