I want to open an html file with internet explorer using a tcl command.
I have tried the following command without success
exec d:\toto.html
Does someone knows how to open an html file?
Hi,
I am trying to collect information about the PC to write it back in my report!!!
Is there a tcl command to collect these information? (information such as CPU, size of memory, size of hard disk, os used....)
I have the following code:
set PIX_ACPPBOX_ERROR_BASE 0x100000;
set PIX_TOO_MANY_OFFSET_REF [expr $PIX_ACPPBOX_ERROR_BASE | 0x108];
while executing the logical or command, the returned result is in decimal format!!!
The problem is that i am using a switch where only hexadecimal values are...
I want to catch the error code returned by a command whenever it fails without using the catch command!!!!!!
My code is as follows:
set resp [open .....]
When the open command fails, I cannot read the error information returned by this command.
I don't want to use the catch command!!! I found...
I have a folder container several files, let say:
toto.txt
titi.fxd
fim.txt
yot.fxd
and fifi.log
I want to do delete all files with the .txt and .fxd extension!!!
how can i do this automatically?
#I have variable containing :
#array set toto [list {0} {} {1} {tom tim tam} {2} {fom fim fam}]
#I am using a function where I would like to use toto as an #input parameter!!!
proc essai {toto}{
...........
}
essai $toto
#When executing this command, I got an error message telling #me that it...
I have the following code:
#I have variable containing :
#array set toto [list {0} {} {1} {tom tim tam} {2} {fom fim fam}]
set var [lindex toto {2 1}]
puts $var
I expected to get "fom" but i got a bug!!!
Can someone tell me how I can extract information from my list "toto"?
I have the following script!!! I expected that the getproc function returns "coucou" but it returns "et non".
/***************************************************/
set toto 156
proc getproc {chiffre} {
switch $chiffre {
$toto {set phrase "coucou"}
default {set phrase "et...
Hi everybody!!!
I want to measure the time taken to execute a command!! I wanted to know if there was a special command to do this?
The method which seems best to me is to take the system's time before and after executing the command!!! However, i have another problem!!! Is there a command to...
I am actually using the CFile.open command to open a file. However, I would like to write in this file without replacing existing caracters.
Does anybody know in which mode I should open this File or I shoud use the seekToEnd command each time?
I have some new commands!!!! I want to add them to tcl list of commands so that they can be recognised as such when using them on an interpreter!!!! (ex:tclsh). How can I do that?
I have got 2 ".h" file containing 2 class. There are some functions in the second class that I want to use in the first one. How can I do this? Can I use "friend"? Does it works when the 2 class are not in the same ".h" file?
I have the following code
while(1) {
if(toto==1) {
....
} elseif(toto==2) {
...
}
}
toto is a globlal variable.
I have noticed that if I initialise toto to 0 at the start of my program and when I set it to 1 later, the change in the value of toto is not refreshed in my while loop.
So, I...
i would like to save the address of a pointer in a Table;
The problem is that i can't do "Tab[i] = Ptr" because the type is different;
How can i save the address in my table ?
thanks,
Does anyone out knows how to program an interruption task in tcl/tk?
In fact, I have the following code:
while {$toto==1}
incr i
}
I want to stop the loop by a simple touch on the keyboard. Is this possile?
How can I do this?
Thanks
lolo
I have got a variable containing the number of seconds which has passed from midnight on the 1 january 1970.
For example, I have x=1118402462
Finally, I woule like to get the date and time that is
10Jun05 13:21:02
Is there any command which can help me to do this conversion?
Thanks,
lolo
I have got the following code:
while{toto==1}
{
//instructions
}
In fact, I want to execute all the instructions in the while loop until the user click on any button of the keyboard.
I want to change to state of the variable toto from 1 to 0 when a click is perform or vice versa.
How can I...
I am trying write some data in a file using the puts cmd. I have noticed that after writing my data, the "puts" commands automatically add a '\n'. So if someone can tell me how to prevent this?
Thanks
lolo
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.