I need to execute a command only one time (during startup).
The cmd opens a text file.
> set FID [open some_text_file.txt r]
Two things:
1.) How do I only run this only once at startup? I tried binding to an arbitrary widget, but this causes it to be rexecuted every time the gui is brought back in focus - not desired! If bind is the right way, what type of bind should I use? example ..
> bind .exit <Map> Startup_script
2.) I can't seem to use the FID globally. Why?
The cmd opens a text file.
> set FID [open some_text_file.txt r]
Two things:
1.) How do I only run this only once at startup? I tried binding to an arbitrary widget, but this causes it to be rexecuted every time the gui is brought back in focus - not desired! If bind is the right way, what type of bind should I use? example ..
> bind .exit <Map> Startup_script
2.) I can't seem to use the FID globally. Why?