Discussion:
Mirroring events
Add Reply
Shaun Kulesa
2024-12-27 20:55:19 UTC
Reply
Permalink
I want to mirror events happening on one tk window to another. I know I can execute these the events using `event generate`.

But I am unsure how to read all events being handled in a window. I have looked at things like the dooneevent and the history command.

Is there a way to record all the previous executed events?
Ashok
2024-12-28 05:41:22 UTC
Reply
Permalink
I don't know one offhand but possible TkReplay might give you ideas
(https://wiki.tcl-lang.org/page/TKReplay)?

It's somewhat dated but Tcl/Tk tend to be very compatible between
releases so perhaps a few tweaks might get it running.

If you do implement something with tkreplay or independently, the
community would be grateful if you publish it :-)

/Ashok
Post by Shaun Kulesa
I want to mirror events happening on one tk window to another. I know I can execute these the events using `event generate`.
But I am unsure how to read all events being handled in a window. I have looked at things like the dooneevent and the history command.
Is there a way to record all the previous executed events?
Shaun Kulesa
2024-12-28 12:40:01 UTC
Reply
Permalink
Post by Ashok
I don't know one offhand but possible TkReplay might give you ideas
(https://wiki.tcl-lang.org/page/TKReplay)?
It's somewhat dated but Tcl/Tk tend to be very compatible between
releases so perhaps a few tweaks might get it running.
If you do implement something with tkreplay or independently, the
community would be grateful if you publish it :-)
/Ashok
Post by Shaun Kulesa
I want to mirror events happening on one tk window to another. I know I can execute these the events using `event generate`.
But I am unsure how to read all events being handled in a window. I have looked at things like the dooneevent and the history command.
Is there a way to record all the previous executed events?
It is so ancient that the ftp source download server doesn't exist anymore lol.
Shaun Kulesa
2024-12-28 12:41:58 UTC
Reply
Permalink
Post by Shaun Kulesa
Post by Ashok
I don't know one offhand but possible TkReplay might give you ideas
(https://wiki.tcl-lang.org/page/TKReplay)?
It's somewhat dated but Tcl/Tk tend to be very compatible between
releases so perhaps a few tweaks might get it running.
If you do implement something with tkreplay or independently, the
community would be grateful if you publish it :-)
/Ashok
Post by Shaun Kulesa
I want to mirror events happening on one tk window to another. I know I can execute these the events using `event generate`.
But I am unsure how to read all events being handled in a window. I have looked at things like the dooneevent and the history command.
Is there a way to record all the previous executed events?
It is so ancient that the ftp source download server doesn't exist anymore lol.
I will ask the university as the ftp downloads belong to them.
Shaun Kulesa
2024-12-28 12:44:44 UTC
Reply
Permalink
Post by Shaun Kulesa
Post by Ashok
I don't know one offhand but possible TkReplay might give you ideas
(https://wiki.tcl-lang.org/page/TKReplay)?
It's somewhat dated but Tcl/Tk tend to be very compatible between
releases so perhaps a few tweaks might get it running.
If you do implement something with tkreplay or independently, the
community would be grateful if you publish it :-)
/Ashok
Post by Shaun Kulesa
I want to mirror events happening on one tk window to another. I know I can execute these the events using `event generate`.
But I am unsure how to read all events being handled in a window. I have looked at things like the dooneevent and the history command.
Is there a way to record all the previous executed events?
It is so ancient that the ftp source download server doesn't exist anymore lol.
I will ask the university as the ftp downloads belong to them.
Shaun Kulesa
2024-12-28 12:44:53 UTC
Reply
Permalink
Post by Shaun Kulesa
Post by Ashok
I don't know one offhand but possible TkReplay might give you ideas
(https://wiki.tcl-lang.org/page/TKReplay)?
It's somewhat dated but Tcl/Tk tend to be very compatible between
releases so perhaps a few tweaks might get it running.
If you do implement something with tkreplay or independently, the
community would be grateful if you publish it :-)
/Ashok
Post by Shaun Kulesa
I want to mirror events happening on one tk window to another. I know I can execute these the events using `event generate`.
But I am unsure how to read all events being handled in a window. I have looked at things like the dooneevent and the history command.
Is there a way to record all the previous executed events?
It is so ancient that the ftp source download server doesn't exist anymore lol.
I will ask the university as the ftp downloads belong to them.
Ashok
2024-12-28 14:12:04 UTC
Reply
Permalink
Last year I purchased a used copy of Tcl/Tk Tools published in 1997! So
happens the CD had a copy. Now uploaded to
https://sourceforge.net/projects/magicsplat/files/tkreplay1.1.tar.gz/download
Post by Shaun Kulesa
Post by Ashok
I don't know one offhand but possible TkReplay might give you ideas
(https://wiki.tcl-lang.org/page/TKReplay)?
It's somewhat dated but Tcl/Tk tend to be very compatible between
releases so perhaps a few tweaks might get it running.
If you do implement something with tkreplay or independently, the
community would be grateful if you publish it :-)
/Ashok
Post by Shaun Kulesa
I want to mirror events happening on one tk window to another. I know I can execute these the events using `event generate`.
But I am unsure how to read all events being handled in a window. I have looked at things like the dooneevent and the history command.
Is there a way to record all the previous executed events?
It is so ancient that the ftp source download server doesn't exist anymore lol.
Shaun Kulesa
2024-12-28 15:50:21 UTC
Reply
Permalink
Post by Ashok
Last year I purchased a used copy of Tcl/Tk Tools published in 1997! So
happens the CD had a copy. Now uploaded to
https://sourceforge.net/projects/magicsplat/files/tkreplay1.1.tar.gz/download
Thanks. I'm currently playing with playtkl but I will also look at this after.
JeffSmith
2024-12-28 11:20:08 UTC
Reply
Permalink
Post by Shaun Kulesa
I want to mirror events happening on one tk window to another. I know I can execute these the events using `event generate`.
But I am unsure how to read all events being handled in a window. I have looked at things like the dooneevent and the history command.
Is there a way to record all the previous executed events?
From the wiki, this may help

https://wiki.tcl-lang.org/page/playtkl%2C+testing+Tk+apps+and+playing+macros

Kind Regards

Jeff
Shaun Kulesa
2024-12-28 15:49:00 UTC
Reply
Permalink
Post by JeffSmith
Post by Shaun Kulesa
I want to mirror events happening on one tk window to another. I know I can execute these the events using `event generate`.
But I am unsure how to read all events being handled in a window. I have looked at things like the dooneevent and the history command.
Is there a way to record all the previous executed events?
From the wiki, this may help
https://wiki.tcl-lang.org/page/playtkl%2C+testing+Tk+apps+and+playing+macros
Kind Regards
Jeff
Thanks. This seems like a good path, I made a new function playtkl::getnextevent so I can get a live feed of the events.
Loading...