Bong,
Oops I forgot all about the IE browser. Yes, your suggestion was most helpful. Thank you so much.
Actually I had forgotten that I did something similar when programming with Liberty Basic. I would use a similar command structure for opening a Word document with LB code.
Much appreciated!!!
Apparently, the tcl 'exec' command is reserved for .exe files only. Performing a tcl 'open' command does not launch html files either. (Of course source, wish, tclsh do not know how to interpret html.) Is it possible to launch an HTML file such as 'deskview.html' or 'deskview.htm' from tcl code?
Not sure about your exact use, but this works for me:
fconfigure $port -mode 19200,n,8,1 -blocking 0 -translation auto -buffering none -handshake xonxoff
(Change the baud rate to what you are using.)
More code, if needed:
This works great with the text widget for a gui capture:
proc bkLog {} {...
Bong, sorry I misunderstood what you trying to convey to me.
This suggestion was in from another site and it works great!
After each insert of new text into the window, execute the text widget
commmand:
$textwindow see end
or
$textwindow see insert
This should move the view so the user...
Thanks Bong for the information.
I believe you were referencing the 'seek' command. I called up the man page for the command synopsis: seek channelId offset? origin?
Example code:
set f [open file.txt]
fconfigure....
set data1 [read $f]
seek $f -10 end (or seek $f 0 to repeat)
set data [read $f...
I have a working scrolledtext iwidget (TCL extension) which works wonderfully for capturing data through my serial port, COM1 on my PC. Infact, the scrolled data works just like Hyperterm does except for the scrollbar. The scrollbar scrolls up as data streams in, so I have to manually drag the...
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.