Binding Keys

1/25/1999 This is something that is very useful to know and that is how to bind keys. Alright we will use the bindAction and the bindCommand binds. First off we will go with the bindAction command. First off here is the format of it.

bindAction(device,make/break,key,TO,action,...);

Device represents what it will used with and can be keyboard,keyboard0,and mouse0. Make and break represent if the key is pressed(makes contact)/depressed(breaks contact). Key is the key of course. For the number pad use "numpad#" replacing # with the corresponding number. Also you can put before the key control, shift, or alt. Make sure there is a comma after the shift,alt, or control. Now here gets to be the more complex part. Action is replaced with whatever action is to be done. Pretty much what the program does is go through a select case to find the right action. Action can be IDACTION_CHAT and several others. Also after the action can be a number representing something. Now to goto the easier binding bindCommand. Here is the format for it.

bindCommand(device,make/break,key,TO,Command);

Basiclly its the same as above except the action is replaced with a command. You can goto my documents to view my file on all the commands I know of and I will be adding the actions there to soon. Well I hope that helps a little. Cryect
This is part of the page "The Scripter" please do not copy this data to another webpage without permission