[GiDlist] Tcl problem win2000

Moderator: GiD Team

Post Reply
Mark Smith

[GiDlist] Tcl problem win2000

Post by Mark Smith »

Enrique
Thanks, this info was not in the old GiD manual. I've downloaded the new one
:-)

Ok, so I have launched an app in the background with
exec $Processname & NUL: &

Is there anyway of finding out when it has finished so I can display a
process finished dialogue?
eg pseudo code

when proces finished WarnWinText " process_finished "

regards
Mark

-----Original Message-----
From: Enrique Escolano [mailto:escolano at cimne.upc.es]
Sent: 15 September 2003 14:40
To: gidlist at gatxan.cimne.upc.es
Subject: Re: [GiDlist] Tcl problem win2000


Read GiD help about TCL-TK EXTENSION-Using EXEC in GiD

Must use:
exec notepad.exe $Flle & NUL: &

Enrique Escolano

----- Original Message -----
From: "Mark Smith" HYPERLINK
"mailto:mark.smith at linx.co.uk"mark.smith at linx.co.uk
To: "Gidlist (E-mail)" HYPERLINK
"mailto:gidlist at gatxan.cimne.upc.es"gidlist at gatxan.cimne.upc.es
Sent: Monday, September 15, 2003 12:58 PM
Subject: [GiDlist] Tcl problem win2000


Win2000 GiD 6.3.0b

Hi Gid team
Thanks for your help with the InitWindow problem it solved the problem.
I have another problem with the exec command in a problemtype.tcl file, I
want to launch notepad with a file preloaded so I can edit some data.

exec notepad.exe $Flle &

This works OK under win98 (academic) but I get the error as shown in the
attached gif when run under win2000
It works strangely if I just do: exec notepad.exe $Flle i.e. if I move the
notepad window it leaves a copy in the old position & if I continue to
move
& drop I get multiple copies which don't disappear until I close the
notepad
window?

I get the same error if I omit the filename but retain the ampersand (just
launch notepad in the background) Both work fine if I run them from a wish
window running Tcl/Tk 8.4.3 ?

Is there a fix?
Thanks again
mark








---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ( HYPERLINK
"[url=http://www.grisoft.com%22http://www.grisoft.com]http://www.grisoft.com"http://www.grisoft.com[/url]).
Version: 6.0.512 / Virus Database: 309 - Release Date: 19/08/2003



The information contained in this e-mail message (and any attachment
transmitted herewith) is privileged and confidential and is intended for
the
exclusive use of the addressee(s). If you are not an addressee, any
disclosure, reproduction, distribution or other dissemination or use of
this
communication is strictly prohibited. If you have received this
communication in error, please contact us immediately so that we can
correct
the error.




---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 19/08/2003



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 19/08/2003



The information contained in this e-mail message (and any attachment
transmitted herewith) is privileged and confidential and is intended for the
exclusive use of the addressee(s). If you are not an addressee, any
disclosure, reproduction, distribution or other dissemination or use of this
communication is strictly prohibited. If you have received this
communication in error, please contact us immediately so that we can correct
the error.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20030916/f93d0b3c/attachment.htm
Enrique Escolano

[GiDlist] Tcl problem win2000

Post by Enrique Escolano »

This is my gidlist request (4-9-2003) to a similar question

It exists a GiD-tcl procedure: runExe, to run a external process with more control: blocking or not the execution, callling automatically a callback procedure while or after terminate the process, with a timeout, etc. (see the file \scripts\runexe.tcl )

This is a sample use (see file \scritps\RetrieveProblemtype.tcl) of the procedure runExe to start the program "unzip.exe" to uncompress the file 'DownloadFile' and call a procedure, named in this sample AfterUnzip.

set exe "\"[file join $::GIDDEFAULT unzip.exe]\" -x -o \"$DownloadFile\""
runExe run $exe -blocking false -callback [list AfterUnzip %m $w $DownloadFile] -timeout 3600

proc AfterUnzip { mode args } {
switch -exact -- $mode {
prepare {
WarnWinText " process started "
}
output {
#WarnWinText "args=$args "
}
finished {
WarnWinText " process_finished "
}
}
}
the parameter %m is automatically set to: prepare , output or finished
if it's 'finished' then can show a finish message or close a window,
'output' can be used to update an advance bar, etc.

Enrique Escolano
----- Original Message -----
From: Mark Smith
To: 'gidlist at gatxan.cimne.upc.es'
Sent: Tuesday, September 16, 2003 5:15 PM
Subject: RE: [GiDlist] Tcl problem win2000


Enrique
Thanks, this info was not in the old GiD manual. I've downloaded the new one :-)

Ok, so I have launched an app in the background with
exec $Processname & NUL: &

Is there anyway of finding out when it has finished so I can display a process finished dialogue?
eg pseudo code

when proces finished WarnWinText " process_finished "

regards
Mark

-----Original Message-----
From: Enrique Escolano [mailto:escolano at cimne.upc.es]
Sent: 15 September 2003 14:40
To: gidlist at gatxan.cimne.upc.es
Subject: Re: [GiDlist] Tcl problem win2000


Read GiD help about TCL-TK EXTENSION-Using EXEC in GiD

Must use:
exec notepad.exe $Flle & NUL: &

Enrique Escolano

----- Original Message -----
From: "Mark Smith" mark.smith at linx.co.uk
To: "Gidlist (E-mail)" gidlist at gatxan.cimne.upc.es
Sent: Monday, September 15, 2003 12:58 PM
Subject: [GiDlist] Tcl problem win2000


Win2000 GiD 6.3.0b

Hi Gid team
Thanks for your help with the InitWindow problem it solved the problem.
I have another problem with the exec command in a problemtype.tcl file, I
want to launch notepad with a file preloaded so I can edit some data.

exec notepad.exe $Flle &

This works OK under win98 (academic) but I get the error as shown in the
attached gif when run under win2000
It works strangely if I just do: exec notepad.exe $Flle i.e. if I move the
notepad window it leaves a copy in the old position & if I continue to move
& drop I get multiple copies which don't disappear until I close the notepad
window?

I get the same error if I omit the filename but retain the ampersand (just
launch notepad in the background) Both work fine if I run them from a wish
window running Tcl/Tk 8.4.3 ?

Is there a fix?
Thanks again
mark








---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 19/08/2003



The information contained in this e-mail message (and any attachment
transmitted herewith) is privileged and confidential and is intended for the
exclusive use of the addressee(s). If you are not an addressee, any
disclosure, reproduction, distribution or other dissemination or use of this
communication is strictly prohibited. If you have received this
communication in error, please contact us immediately so that we can correct
the error.



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 19/08/2003




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 19/08/2003





The information contained in this e-mail message (and any attachment transmitted herewith) is privileged and confidential and is intended for the exclusive use of the addressee(s). If you are not an addressee, any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited. If you have received this communication in error, please contact us immediately so that we can correct the error.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20030916/af6e6ee7/attachment.htm
Post Reply