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...
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?
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...
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...
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...
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
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
Hello
I would like to launch an associated application using the exec procedure to open documents.
The problem is that sometimes exec doesn't find the associated application path and fails.
How do I find the path of an associated application for a document?
Thanks
Frank
Hello,
I have been able to obtain the user name in my computer with:
set use $tcl_platform(user)
But, I don't see a similar way to obtain the name of the running computer.
Is there some method to get the name of the computer?
Thanks
Hello
I have continuing problem removing braces.
Here is simple example.
I have a variable 'var1' with contents {one two}
What is the easiest way to extract 'two' from the variable. I tried
set new [lindex $var1 1]
but of course it is a blank since {one two} is a single element.
How do I extract...
Hello
I often write simple programs but end up with numerous procedures. When debugging my programs I often encounter the problem of a failing procedure using bad or wrong arguments. To track this down I would like to be able to determine the calling procedure.
Is there a mechanism in TCL/Tk to...
Hello
I am trying to call a procedure, whose name is in a variable and having some arguments in a separate variable.
set result [$proc1 $com_line]
where $proc1 contains the name of the procedure, doesn't work. The arguments don't get supplied to the procedure.
A tried numerous variants and the...
Hello
I have been looking at the clock procedure for my purpose.
I have used the 'file mtime $filename' to obtain an integer of the file modification date and time. I need to convert this to a more readable format and I think that the 'clock' procedure can do this.
Also, if I have a date and...
Hello
I have been using the following code for years to create a message box to make simple entries. It works great except I need the window to close after a certain time if no keys are pressed.
The way I think this works is that it waits for a variable (towards the end of the listing):
tkwait...
Hello,
I have a windows registry problem. I am using Windows XP SP2 and would like to to insert into the registry the following:
registry set "HKEY_CLASSES_ROOT\\jpegfile\\shell\\Resample\\command" (Default) "$argv0 \"%1\""
Unfortunately, I end up with 2 (Default) valuenames. The first is...
Does anyone know where I could find the script for a simple ProgressBar that I could add onto my existing script.
I know that there is the BWindget set of widgets that includes a ProgressBar. But this is too complicated since I only need the ProgressBar and I don't know how to extract just that...
I am trying to create a listbox that has the exact height of a determined number of lines using specified fonts.
I tried to multiply the font size by 1.33 and then devide by 0.72 to get the number of pixels for each line. Unfortunately, this doesn't work correctly. I tried to tweek the numbers...
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.