🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
9 messages
9 total messages Started by John Bokma Sun, 18 Sep 2005 06:52
Dialog: documentation of FileExecute?
#173657
Author: John Bokma
Date: Sun, 18 Sep 2005 06:52
10 lines
1482 bytes
I found this script:
<http://www.40tude.com/dialog/wiki/index.php/ScriptSaveOutboundMessage>

Is there any documentation on what the parameters to FileExecute are?

-- 
John                               MexIT: http://johnbokma.com/mexit/
                           personal page:       http://johnbokma.com/
        Experienced programmer available:     http://castleamber.com/
            Happy Customers: http://castleamber.com/testimonials.html
Re: Dialog: documentation of FileExecute?
#173700
Author: John Bokma
Date: Sun, 18 Sep 2005 20:05
28 lines
1847 bytes
John Bokma <john@castleamber.com> wrote:

> I found this script:
> <http://www.40tude.com/dialog/wiki/index.php/ScriptSaveOutboundMessage>
> 
> Is there any documentation on what the parameters to FileExecute are?

Hum, hum, throwing the exe on an editor gave:

Function FileExecute(

    	hWnd: cardinal;
    	FileName: string;
    	Operation: string;
    	Parameters: string;
    	Directory: string;
    	Showcmd: Integer;
    	WaitDelay:integer

):integer

anyone has more info?

-- 
John                               MexIT: http://johnbokma.com/mexit/
                           personal page:       http://johnbokma.com/
        Experienced programmer available:     http://castleamber.com/
            Happy Customers: http://castleamber.com/testimonials.html
Re: Dialog: documentation of FileExecute?
#173739
Author: Philip
Date: Mon, 19 Sep 2005 14:07
48 lines
2623 bytes
Tune in to news.software.readers again next week when you'll hear John
Bokma say:

> John Bokma <john@castleamber.com> wrote:
> 
> > I found this script:
> > <http://www.40tude.com/dialog/wiki/index.php/ScriptSaveOutboundMessa
> > ge>
> > 
> > Is there any documentation on what the parameters to FileExecute
> > are?
> 
> Hum, hum, throwing the exe on an editor gave:
> 
> Function FileExecute(
> 
>     	hWnd: cardinal;
>     	FileName: string;
>     	Operation: string;
>     	Parameters: string;
>     	Directory: string;
>     	Showcmd: Integer;
>     	WaitDelay:integer
> 
> ):integer
> 
> anyone has more info?

I'm not a Dialog user, but I'll hazard a guess.

hWnd -that would be the Windows handle of the calling application;
FileName  -the file name of the application to execute;
Operation  -the default action to perform, similar is when setting
program actions for file types in Windows Explorer;
Parameters - parameters to be passed to the application called;
Directory  - the working directory for the application called;
Showcmd - perhaps to display a message dialog when called, integer
value of boolean 0 - false/1 - true?;
WaitDelay -delay time before the application is to be executed;

Since FileExecute is declared as a function, it will return a value on
completion, in this case a true or false result depending on whether or
not the application was executed. If, for instance, the application
could not be found, the result would be false.

-- 
Bye,
Philip
Re: Dialog: documentation of FileExecute?
#173741
Author: Philip
Date: Mon, 19 Sep 2005 14:22
55 lines
2924 bytes
Tune in to news.software.readers again next week when you'll hear
Philip say:

> Tune in to news.software.readers again next week when you'll hear John
> Bokma say:
> 
> > John Bokma <john@castleamber.com> wrote:
> > 
> > > I found this script:
> > > <http://www.40tude.com/dialog/wiki/index.php/ScriptSaveOutboundMes
> > > sa ge>
> > > 
> > > Is there any documentation on what the parameters to FileExecute
> > > are?
> > 
> > Hum, hum, throwing the exe on an editor gave:
> > 
> > Function FileExecute(
> > 
> >     	hWnd: cardinal;
> >     	FileName: string;
> >     	Operation: string;
> >     	Parameters: string;
> >     	Directory: string;
> >     	Showcmd: Integer;
> >     	WaitDelay:integer
> > 
> > ):integer
> > 
> > anyone has more info?
> 
> I'm not a Dialog user, but I'll hazard a guess.
> 
> hWnd -that would be the Windows handle of the calling application;
> FileName  -the file name of the application to execute;
> Operation  -the default action to perform, similar is when setting
> program actions for file types in Windows Explorer;
> Parameters - parameters to be passed to the application called;
> Directory  - the working directory for the application called;
> Showcmd - perhaps to display a message dialog when called, integer
> value of boolean 0 - false/1 - true?;
> WaitDelay -delay time before the application is to be executed;
> 
> Since FileExecute is declared as a function, it will return a value on
> completion, in this case a true or false result depending on whether
> or not the application was executed. If, for instance, the application
> could not be found, the result would be false.

Hmm, the result isn't a boolean, but an integer (I was looking at the
result of the function at the link you gave). Don't think that's a
handle.

-- 
Bye,
Philip
Re: Dialog: documentation of FileExecute?
#173748
Author: Philip
Date: Mon, 19 Sep 2005 16:41
40 lines
1990 bytes
Tune in to news.software.readers again next week when you'll hear
Philip say:

> Tune in to news.software.readers again next week when you'll hear John
> Bokma say:
> 
> > John Bokma <john@castleamber.com> wrote:
> > 
> > > I found this script:
> > > <http://www.40tude.com/dialog/wiki/index.php/ScriptSaveOutboundMes
> > > sa ge>
> > > 
> > > Is there any documentation on what the parameters to FileExecute
> > > are?
> > 
> > Hum, hum, throwing the exe on an editor gave:
> > 
> > Function FileExecute(
> > 
> >     	hWnd: cardinal;
> >     	FileName: string;
> >     	Operation: string;
> >     	Parameters: string;
> >     	Directory: string;
> >     	Showcmd: Integer;
> >     	WaitDelay:integer
> > 
> > ):integer
> > 
> > anyone has more info?
> 
> I'm not a Dialog user, but I'll hazard a guess.
> 
> Showcmd - perhaps to display a message dialog when called, integer

Nah, window state : 0 = normal, 1 = maximized, 2 = minimized.

-- 
Bye,
Philip
Re: Dialog: documentation of FileExecute?
#173760
Author: John Bokma
Date: Mon, 19 Sep 2005 18:25
25 lines
2256 bytes
"Philip" <reply@group.invalid> wrote:

[ FileExecute ]

> hWnd -that would be the Windows handle of the calling application;
> FileName  -the file name of the application to execute;
> Operation  -the default action to perform, similar is when setting
> program actions for file types in Windows Explorer;
> Parameters - parameters to be passed to the application called;
> Directory  - the working directory for the application called;
> Showcmd - perhaps to display a message dialog when called, integer
> value of boolean 0 - false/1 - true?;
> WaitDelay -delay time before the application is to be executed;

The latter seems to be the time Dialog allows the application to get 
finished. I have no idea if it's possible to make Dialog just wait as long 
as required to finish.

Thanks,

-- 
John                               MexIT: http://johnbokma.com/mexit/
                           personal page:       http://johnbokma.com/
        Experienced programmer available:     http://castleamber.com/
            Happy Customers: http://castleamber.com/testimonials.html
Re: Dialog: documentation of FileExecute?
#174788
Author: Korbinian Abenthum
Date: Thu, 06 Oct 2005 19:47
22 lines
2164 bytes
Philip wrote:
> Philip say:
> 
>       [Megaquote collapsed by 40tude Dialog (41 lines)]

>> Since FileExecute is declared as a function, it will return a value on
>> completion, in this case a true or false result depending on whether
>> or not the application was executed. If, for instance, the application
>> could not be found, the result would be false.

> Hmm, the result isn't a boolean, but an integer (I was looking at the
> result of the function at the link you gave). Don't think that's a
> handle.

Still, I can only make it return 1, if it works, or 0, if the file can't be
executed for some reason (no such file, no such operation, ...)
So you were right.

-- 
"Don't he like girls?"
"He's just stupid. He likes to polish helmets and beat on swords
 with hammers."
Re: Dialog: documentation of FileExecute?
#174789
Author: Korbinian Abenthum
Date: Thu, 06 Oct 2005 19:48
21 lines
2102 bytes
John Bokma wrote:
> "Philip" <reply@group.invalid> wrote:
> 
> [ FileExecute ]

>> WaitDelay -delay time before the application is to be executed;

> The latter seems to be the time Dialog allows the application to get 
> finished.

Yes.

> I have no idea if it's possible to make Dialog just wait as long 
> as required to finish.

Not with internal methods, as far as I know. You _could_ try to check with a
Windows API call if your process is still running. :\

-- 
Outside the wind was sending armies of dead leaves marching across the
courtyards to scratch faintly at the doors and windows.
Re: Dialog: documentation of FileExecute?
#174790
Author: Korbinian Abenthum
Date: Thu, 06 Oct 2005 19:48
27 lines
2012 bytes
Philip wrote:

>>> Function FileExecute(
>>>     	hWnd: cardinal;
>>>     	FileName: string;
>>>     	Operation: string;
>>>     	Parameters: string;
>>>     	Directory: string;
>>>     	Showcmd: Integer;
>>>     	WaitDelay:integer
>>> ):integer

>> Showcmd - perhaps to display a message dialog when called, integer

> Nah, window state : 0 = normal, 1 = maximized, 2 = minimized.

The parameter is:
HIDE = 0
NORMAL = 1
MINIMIZED = 2
MAXIMIZED = 3
SHOWNOACTIVATE = 4
SHOWMINNOACTIVE = 7

-- 
"You send hired knives to kill a fourteenyear-old girl and still
 quibble about honor?"                            (Eddard Stark)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads