Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. sergelaurent

    Help needed to open html file!!!

    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?
  2. sergelaurent

    Problem with modulus!!!

    For exemple; set toto [expr 5 - 10] toto's value would be -5!!! I want to have the modulus of toto!!! Can someone tell me hos I can do this?
  3. sergelaurent

    PC information?

    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....)
  4. sergelaurent

    conversion from decimal to hexadecimal!!!

    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...
  5. sergelaurent

    errorInfo?

    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...
  6. sergelaurent

    Deleting files??,

    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?
  7. sergelaurent

    Problem with lists => parameter?

    #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...
  8. sergelaurent

    Problem with arrays!!!

    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"?
  9. sergelaurent

    problem with switch

    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...
  10. sergelaurent

    timing!!

    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...
  11. sergelaurent

    Problem with CFile!!!

    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?
  12. sergelaurent

    keywords!!!

    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?
  13. sergelaurent

    Help needed!!!

    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?
  14. sergelaurent

    help needed for while loop!!!

    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...
  15. sergelaurent

    save pointer address

    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,
  16. sergelaurent

    Help needed!!!

    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
  17. sergelaurent

    Help needed for time conversion

    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
  18. sergelaurent

    Help needed for while loop?

    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...
  19. sergelaurent

    Help needed for ascii!!!!

    I have got an hexadecimal code and I wanted my scrip to replace that hexadecimal code by its corresponding ascii character. How can I do this
  20. sergelaurent

    Help needed for puts cmd!!!

    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

Part and Inventory Search

Back
Top