| View previous topic :: View next topic |
| Author |
Message |
SomeGuy Voice
Joined: 01 May 2004 Posts: 13
|
Posted: Thu Apr 17, 2008 2:34 pm Post subject: Search Actual binds |
|
|
Is it possible to write a function that actually searches which binds are actually active?
For example, I am making a dynamic command list, I've got everything covered, except I haven't figured out a way to actually check and see if the bind exists, and if so, unbind, or vice versa.
I've read through the docs and can't seem to find anything about this specifically, unless I'm missing something.
If someone can guide me in the right direction it would be much appreciated.
Thanks |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Thu Apr 17, 2008 4:48 pm Post subject: |
|
|
From Tcl-commands.doc:
| Quote: | binds [type/mask]
Returns: a list of Tcl binds, each item in the list is a sublist of
five elements:
{<type> <flags> <name> <hits> <proc>} |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
SomeGuy Voice
Joined: 01 May 2004 Posts: 13
|
Posted: Thu Apr 17, 2008 6:21 pm Post subject: |
|
|
Lol, duh, yea I'm dumb. I use .binds in the console all the time.
I've already wrote my functions, they work great.
Thanks for the second eye ;p |
|
| Back to top |
|
 |
|