This was made around February or something like that because I wanted to help Lorax use the KeyDown/KeyUp procedures (he, as well as the rest of the SCAR community, was having problems finding key codes). I noticed a few people were looking for it recently. To clear up any confusion, it was made by me. You'll need either the Driger_Functions plugin or the one I've attached to this post in order to use this include. Put the plugin in your Plugin folder (found in the SCAR folder) and you're set. Then, put the include in the include folder.
This include includes procedures and functions that will help a person use the KeyDown/KeyUp procedures. It includes constants for all of the numbers used in KeyDown/KeyUp. The list was compiled by myself through trial/error. Also, the plugin equips your SCAR with the ever popular IsVKeyDown function. I think that may have been one of my nicer functions I put in a plugin.
I encourage EVERYONE to look at this! It's a nice piece of work with functions that can be used everywhere!
If anyone would like to see my other plugin, I will post it in another thread, but I don't see a need to at the moment. There's not much of a need for plugins with random functions/procedures.
Function List
- Procedure CleanKeys; - Returns all keys to the up position
- Procedure ListAlpha; - Mostly for use during design-time. This will list the lowercase alphabet in SCAR's debug box.
- Procedure KeyPress(key: byte; WaitTime: integer); - This procedure presses the key you input. It then waits for the specified wait time before letting go of the key.
- Function GetCode(key: integer): integer; - Returns the number for a constant if you don't want to bother looking for yourself.
- Function LowerAll(letters: string): string; - Returns all characters in a string as lowercase.
- Function IsUpperCase(letter: string): boolean; - Checks if a character is uppercase. The old method is universal and can be used outside of the include. If you want it, ask.
- Function GetStrCode(s: string): string; - Returns the code for a string in the form of a string.






Reply With Quote

Much easier.
