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