1. unwanted DOS window

system("notepad " & LogFile, 2)

is the last line of a little Win32lib proggy of mine to show the logs 
but it always opens a DOS window behind the Notepad for a few 
seconds. Can this be avoided somehow?

Best regards,

Salix

new topic     » topic index » view message » categorize

2. Re: unwanted DOS window

Have you tried?

include dll.e
free_console( ) 

Euman


----- Original Message ----- 
From: <salix at freemail.hu>
To: "EUforum" <EUforum at topica.com>
Sent: Sunday, March 04, 2001 17:24
Subject: unwanted DOS window


| system("notepad " & LogFile, 2)
| 
| is the last line of a little Win32lib proggy of mine to show the logs 
| but it always opens a DOS window behind the Notepad for a few 
| seconds. Can this be avoided somehow?
| 
| Best regards,
| 
| Salix
| 
| 
|

new topic     » goto parent     » topic index » view message » categorize

3. Re: unwanted DOS window

If you are using win32lib ver. 0.55.1, you could use something like the
following:

object jk
sequence current
current=current_dir()

.. no DOS window here ! ...

new topic     » goto parent     » topic index » view message » categorize

4. Re: unwanted DOS window

Wolf ne keha,  5/3/01 5:34 AM per, ke:

> If you are using win32lib ver. 0.55.1, you could use something like the
> following:
> 
> object jk
> sequence current
> current=current_dir()
> jk=shellExecuteEx("open","notepad.exe","LogFile",current,SW_SHOWNORMAL,0)
> 
> ... no DOS window here ! ...
> 
> 
> 

This is great and works well. However, it appears to work at its own speed
and independently of the process which called it. Is there any way of having
my program wait until the shelled process is complete?

On a related issue, is there a way of getting hold of the window title of
every window on the machine, over and above whatever windows my program has
created? This question derives from wanting to watch for the disappearance
of the window created by my shell call.

I'm slowly getting the hand of Win32 programming after years of DOS. It's
great having the registered version!

Bruce.

-- 
It is amazing how complete is the delusion that beauty is goodness.
    -- Tolstoy.

.. or that fame is wisdom.
    -- Ken Edgecombe.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu