This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Search Actual binds

Help for those learning Tcl or writing their own scripts.
Post Reply
S
SomeGuy
Voice
Posts: 13
Joined: Sat May 01, 2004 5:25 pm

Search Actual binds

Post by SomeGuy »

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
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

From Tcl-commands.doc:
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>}
S
SomeGuy
Voice
Posts: 13
Joined: Sat May 01, 2004 5:25 pm

Post by SomeGuy »

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
Post Reply