Thread View: news.software.readers
9 messages
9 total messages
Started by John Bokma
Sun, 18 Sep 2005 06:52
Dialog: documentation of FileExecute?
Author: John Bokma
Date: Sun, 18 Sep 2005 06:52
Date: Sun, 18 Sep 2005 06:52
10 lines
1482 bytes
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?
Author: John Bokma
Date: Sun, 18 Sep 2005 20:05
Date: Sun, 18 Sep 2005 20:05
28 lines
1847 bytes
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?
Author: Philip
Date: Mon, 19 Sep 2005 14:07
Date: Mon, 19 Sep 2005 14:07
48 lines
2623 bytes
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?
Author: Philip
Date: Mon, 19 Sep 2005 14:22
Date: Mon, 19 Sep 2005 14:22
55 lines
2924 bytes
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?
Author: Philip
Date: Mon, 19 Sep 2005 16:41
Date: Mon, 19 Sep 2005 16:41
40 lines
1990 bytes
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?
Author: John Bokma
Date: Mon, 19 Sep 2005 18:25
Date: Mon, 19 Sep 2005 18:25
25 lines
2256 bytes
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?
Author: Korbinian Abenthum
Date: Thu, 06 Oct 2005 19:47
Date: Thu, 06 Oct 2005 19:47
22 lines
2164 bytes
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?
Author: Korbinian Abenthum
Date: Thu, 06 Oct 2005 19:48
Date: Thu, 06 Oct 2005 19:48
21 lines
2102 bytes
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?
Author: Korbinian Abenthum
Date: Thu, 06 Oct 2005 19:48
Date: Thu, 06 Oct 2005 19:48
27 lines
2012 bytes
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