Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 18 DEC 2003 02:05:00AM Steve Epstein wrote:

I would like to run another program from inside a BASIC+ program. I would like to have the program run modally and minimized.

I used the following statement:

    void=utility("RUNWIN","program.exe",-6)

However, while the program runs minimized, it does not run modally.

Can anyone help?


At 19 DEC 2003 03:01PM Tony Splaver wrote:

Hi Steve,

I'm not an expert, but I do not think it is possible for OI32 to do a RUNWIN with a modal (actually, I think synchronous execution may describe what you are trying to do better) option. In Win16, no problem, because WinExec() returns the procid of the application and OI can loop until the procid is gone. In Win32, it is not that simple. If you know the caption of the application that you are executing, then you can disable your GUI (an OI form I assume), call RUNWIN (with the minimize option), then use FindWindow(), and then loop until FindWindow() fails to find the application. This is not perfect, but it may work.

Tony


At 19 DEC 2003 05:19PM Steve Smith wrote:

I'm sending you a bunch of programs which will do modal stuff really well. It's called MS-DOS 6.22…. ;-)

Sorry, but after years of trying to get PCs into multi-tasking multi-threaded operating systems, it seems a little ironic that you'd simply be trying to switch that functionality off…

Which app are you trying to run out of OI??? What are you trying to achieve? It may be possible to call the classes and DLLs associated with your "modal" task in such a way that the application behaves appropriately.

Describe your problem a little more.


At 22 DEC 2003 01:19PM Wayne Shepard wrote:

I don't see FindWindow() in the OI documentation. Is this a Windows function?

Wayne


At 22 DEC 2003 07:21PM Mike Ruane wrote:

  • third_party_content/community/commentary/forums_nonworks/03601cabdedb2c2185256e000026e91f.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1