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 strongm 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: *

  • Users: fhutt
  • Order by date
  1. fhutt

    How to remove braces

    I have a variable containing the full path of an executable. This variable is used in a procedure as ecec $filea $fileb This works fine with paths that do not have a space character in it. However, a path that has a a space character also has braces around the whole path and the ecec function...
  2. fhutt

    Moving objects in a TK window

    I understand that but I am used to the place manager and I like to place widgets where I want them. You did show a link where moving widgets while running the program was possible. I must admit I didn't follow the code in that example. However it's not while running the program I want to make...
  3. fhutt

    Moving objects in a TK window

    I think I have worked out how vtcl places one widget over on top of others. It appears that at the time of widget creation any widget created after any other widget will be on top of those widgets. So, it is purely which widget is created after any other widget to be on top. To move a widget...
  4. fhutt

    Moving objects in a TK window

    OK, I have an example. Sorry, I should have included this originally. I use vtcl with the place manager to generate the graphic parts of a window. Once positioned, there they stay. They do not move while running the program. In the example the 'Lasts' label is sitting on top of the 'Charge'...
  5. fhutt

    Moving objects in a TK window

    By objects I mean Labels, Entry boxes or any widget. Another solution for what I would want is to be able to make the background of a widget transparent. I don't see an option for this. Is there a work around to make a widget background transparent?
  6. fhutt

    Moving objects in a TK window

    I use vtcl V1.6.0.a3 to create some TK windows. I notice that when moving objects they move behind some other objects but move above some other objects. Is there a way to specify for an object to move above or below some other object?
  7. fhutt

    Using TCL to recover text from a local website

    Yes, works fine.
  8. fhutt

    Using TCL to recover text from a local website

    I found another alternative. Found an application called wget. It can be downloaded from here: https://eternallybored.org/misc/wget/ A manual page can be found here: https://eternallybored.org/misc/wget/1.20.3/wget.html Here is the snippet of code I used: set line [exec wget.exe...
  9. fhutt

    Using TCL to recover text from a local website

    I think that tclcurl might be too complicated. I have no experience with the tcl procedure http either. Would the http procedure resolve and obtain the text on https://192.168.91.1/api/meters/aggregates?
  10. fhutt

    Using TCL to recover text from a local website

    Unfortunately, I have never heard of tclcurl before. I looked on the internet and although it looks complicated it might me what I need. I am unable to find a download site. Could you provide a link? I am using Windows 7.
  11. fhutt

    Using TCL to recover text from a local website

    I have a local access point accessible via wifi. It has an accessible Ip Address at 192.168.91.1. When this address is placed in the address bar of a browser as https://192.168.91.1/api/meters/aggregates a number of text lines appear in the browser. What I would like to do is to obtain this...
  12. fhutt

    Tcl/TK windows port to Mac

    I have a number of TCL/TK programs I have developed on the Windows platform. I am wondering about the problem I might have in migrating those programs onto the Mac platform. I have noticed that there is no "exec" procedure. Are there any other built in procedures not available on the Mac...
  13. fhutt

    variable manipulation problem

    Hi microm, I had this problem before. I couldn't remember how I fixed it, so I did some trial and error. What I came up with is to replace $arg$i with [set arg$i]. Once I got this to work it came back to me that this is what I did before. However, I prefer your more consistent solution. Thank...
  14. fhutt

    variable manipulation problem

    I would like to modify the following code to make it work: set i 0 set arg$i {C:/Program File/hell0} regsub -all -- {/} $arg$i "\x5c" arg$i I get an error when running this code for the regsub line saying "can't read arg, no such variable". This is true but arg0 does exist and $i is a 0. Could...
  15. fhutt

    Search for a running application

    I have actually managed to find a way to search for all currently running application using a batch file and calling the batch file with: set flag [exec test.bat app.exe] The batch file searches for a running application called app.exe. If found the batch file executes an echo 0 and a 1...
  16. fhutt

    Search for a running application

    Hello, I know there is a [dde services TclEval {}] function to find running TCL applications but, is there a way to find a non-TCL running application? Thanks
  17. fhutt

    Piping with exec command

    I think I worked it out: set val [exec c:/windows/system32/powercfg.exe -l] This does just what I need.
  18. fhutt

    Piping with exec command

    I need to run a program that outputs to a file: exec c:/windows/system32/powercfg.exe -l >$pwrfile This works fine. However, I would like to send the output to a tcl variable instead of a file. Is this possible? If so, how? Thank you
  19. fhutt

    How to find application path for a document

    The '\' is not an escape character in Dos/Windows. I tried the '^=' and '^&', but they don't work. I have worked out a solution by, not using escape sequencing but by substitution. regsub -all {=} $url {equal} url regsub -all {&} $url {and} url exec execute.bat $url & Then in the batch file I...
  20. fhutt

    How to find application path for a document

    I still need your help. It works as stated in my last post fine for documents. However, if I want to launch my web browser (Firefox) with a URL, it only works correctly if there are no symbols in the URL. An example of a URL that does not work is...

Part and Inventory Search

Back
Top