How to get a variable from a tcl script environment ?
User KERHARO (email@example.com) posted:
I am using Robot to control various Windows 98 based applications, among
which a tcl/Tk application that runs DSP code on a DSP electronic board.
After the code has been run and stopped on the board by Robot through
tcl/Tk window commands, I need to read a variable i_i_error_flag from the
tcl/Tk application to drive a test in my Robot script. I can read the
variable in the tcl/Tk window by writing i_i_error_flag followed by ENTER,
and the value (1 or 0) is displayed.
Questions: How can I pick the value, transfer it somewhere to be used in
the Robot script for a test ? (the value of this variable is not included
in a listbox, a caption or any window object, it is only the last line of
a text window that displays the tcl/Tk commands).
Re: How to get a variable from a tcl script environment ?
User Dominic Rogers (DominicR@mercia.com.nospam) posted:
if you can highlight the text and copy it to clipboard you can do the
record the process
highlight the text and copy to clipboard (usually best to do ctrl + c)
then add the code
value = clipboard.getText()
hope that helps
Share and Share Alike