QueryCAT Logo
Search 5,000,000+ questions and answers.

Frequently Asked Questions

How do I bind keys (including function keys) to commands?

GNU Emacs FAQ
Keys can be bound to commands either interactively or in your .emacs file. To interactively bind keys for all modes, type M-x global-set-key <RET> key cmd <RET>. To bind a key just in the current major mode, type M-x local-set-key <RET> key cmd <RET>. To make the process of binding keys interactively easier, use the following “trick”: First bind the key interactively, then immediately type C-x <ESC> <ESC> C-a C-k C-g.

How do I bind keyboard keys?

comp.lang.perl.tk FAQ
There are many default key bindings built in to the widgets of Perl/Tk. Making proper use of them often involves setting up the right callback. (You may wish to consult the examples in BindTable.pod for help with this subject. See similar questions...

How do I bind keys to menus for shortcuts?

GIMP - Documentation
How do I select a layer "sitting" under the mouse cursor? I have more than 400 layers in my image and I cannot remember each layers name. See similar questions...

How do I "bind" commands?

Vanilla CTF FAQ
In case you're not familiar with the "bind" feature, the concept is that that you can take a command (or a set of commands) and assign it to a single key to activate instead of having to type it in repeatedly at the console. Let's say you want to bind the grappling hook to the F2 key. Pull down the console and type bind f2 "use grapple". When you press the F2 key, the grappling hook will activate. You can also use this to make your own preprogrammed messages and taunts, eg. See similar questions...

Can I bind a variable to a specific value (e.g., the result of a function call)?

SPARQL Protocol and Query Language: SPARQL Frequently Asked ...
SPARQL does not support setting variable bindings except via graph pattern matching or via the GRAPH ?g construct. Expressions are not allowed in the SELECT list of a SPARQL query. See similar questions...

How do I send control characters or function keys?

Expect FAQ (Frequently Asked Questions)
Sending control characters is easy: just write a send command and enter the control character you want to send. I like to enter most control characters literally - since the resulting script is more readable. However, your editor has to allow this. For example, suppose you want to send a Control-A. Conventionally, most editors display this as ^A, but you can't just enter ^ and A. (This will just send those two characters. See similar questions...

How can I bind keys to actions?

Paperino's Clan - Frequently Asked Questions
You can bind keys to a number of commands using the /bind command in the console. For instance, type: bind p playdead to bind the /playdead command to the p key. You can bind a key to a particular sentence in the same way, for instance: bind o say "You are a noob" This will cause you to say in chat the sentence "You are a noob" every time you press the o key. You can also bind keys to a shrubbot command, provided you have an admin level that grants you the use of that command. See similar questions...

How do I bind a function to a key?

Coot FAQ
Like this: ; here we bind h to run some function that involves residue A67 and ; bind v to "add water here" function. (define graphics-general-key-press-hook (lambda (key) (cond ; H key ((string=? key 104) (my-interesting-func "." "*.pdb" "A" 67)) ; other binding (place atom at pointer when V key hit) ((= key 118) (set-pointer-atom-is-dummy 1) (place-atom-at-pointer))))) See similar questions...

I can't make my function keys work properly with TNOS under X ?

TNOS Installation
The function key problem with TNOS under X has to do with the fact that the terminfo entry for xterm is seriously broken in many distributions (I know it is in Slackware through at least 1.2.0). Following is an "xterm.tic" souce file for my hacked version that restores fkey functionality. Run it through tic to generate the new database file, and the problem should be solved in xterms (or rxvts) opened thereafter. BTW -- this problem drove me nuts for almost a month. See similar questions...

How can I bind to the arrow keys?

Tk Usage FAQ (Frequently Asked Questions)
Arrow keys are bound to <Left>, <Right>, <Up> and <Down>. Under X11, keys are referred to by their keysym. One can use either xmodmap -pk or the xev program to determine what the keysym a particular key on a keyboard is currently generating. If the keysym that is being used is not known by Tk, you may have to edit its ks_names.h file. There is a note in this file that indicates that one should not edit it - but this is where the keysym must be for it to be recognized. See similar questions...

How can I bind keys in Eterm?

Eterm.Org -- Frequently-Asked Questions
All keybindings in Eterm are based on the concept of keysyms. (See the question above for more info on keysyms.) To bind a key with Eterm, its keycode must correspond to a valid keysym. You can use the xmodmap command as shown above to map keycodes to keysyms. Once the key sends a valid keysym, you can have Eterm recognize and respond to it in a particular way using action bindings. The man page discusses the syntax in depth, so I won't do that here. I'll just demonstrate with a few examples. See similar questions...

Q16. Termcap; Some of the keys do not work - how can I bind them ?

MicroEmacs JASSPA Distribution
In your user setup <user>.emf add the new keys. You have to be careful as to the environment and probably need to do something like the following:- ; First check we are not an Xterm !if &not $use-x ; Quick check on the terminal type. We probably need to ; distinguish between terminal types for different bindings !if &seq $TERM "myterm" translate-key "<from>" "<to>" .. See similar questions...

How do I set my Quick Keys (Function Keys)?

Salon & Spa Management Software by SalonTrac Systems
The assignment is by selecting the first 12 items in inventory after the sort. Setting the order is done by giving thought to the order of your service items in inventory and setting the most important to the top of the sort. Note that it is an alpha-numeric sort. The "." forces the service items to the top (above retail inventory), then the sort order is numbers 1 to 9 then letters A to Z. So .1 would be before .A which would be before .AB. See similar questions...

How do I read the arrow keys? What about function keys?

System Dependencies
Terminfo, some versions of termcap, and some versions of curses have support for these non-ASCII keys. Typically, a special key sends a multicharacter sequence (usually beginning with ESC, '\033'); parsing these can be tricky. (curses will do the parsing for you, if you call keypad first.) Under MS-DOS, if you receive a character with value 0 (not '0'!) while reading the keyboard, it's a flag indicating that the next character read will be a code indicating a special key. See similar questions...

How do I see what my mapped function keys are?

Salon & Spa Management Software by SalonTrac Systems
In the tools menu you can select Quick Key Assignments which will show you what the keys are mapped to. See similar questions...

What are the functions assigned to each of the function keys?

Michaelsoft HRtrax FAQs System Considerations
HRtrax makes use of certain function and short-cut key combinations to provide specific features that are helpful during normal system use. The following is a summary of the functionality assigned to each function and/or key combination. not used at the present time For more information about these function keys and other short-cut key combinations, see Help > About HRtrax Function Keys on the menu bar at the top of the main HRtrax application screen. See similar questions...

Explore Other Topics

Is it necessary to rest after embryo transfer?
What does Dual Band and Tri Band mean? Or even Quad Band? Where in The World can I use that phone!?
What flight reward of other airlines can I redeem with Eastern Miles points in my account?
Do Superfeet Insoles help Plantar Fasciitis?
How did the Duck-Billed Platypus become extinct?
How do I resize my Logo?
Do I really need to download the Google Earth software to use the Google Earth interface?
Do I need a modified Playstation 2 in order to use HDLoader?
How often are the radar and satellite maps updated?
What is a SIM card (SIM chip)?
Why is my Credit card being declined and what can I do?
What is a VLAN, and why is it Secure?
Where is the Serial Number located on my Rolex, and how can I tell how old my watch is?
Do I need a Relay Part 775 for my Dome Light Supervision on my Pro-Series Alarm?
Where do I find my Shareholder Reference Number (SRN)?
More Questions >>

© Copyright 2007-2012 QueryCAT
About • Webmasters • Contact