Results 1 to 5 of 5

Thread: KeyUp / KeyDown Include (KDKUI)

  1. #1
    Join Date
    Feb 2006
    Location
    Wisconsin (like farm-town, USA) :P
    Posts
    254
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default KeyUp / KeyDown Include (KDKUI)

    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.

  2. #2
    Join Date
    Feb 2006
    Posts
    582
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Liger, you noob :P

    I remember this... xD
    Free File Hosting
    No download timers!

    Rifkwtf.com

  3. #3
    Join Date
    Feb 2006
    Location
    Wisconsin (like farm-town, USA) :P
    Posts
    254
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I updated the IsUppercase function from before. I was just reading through it doing the function list for the post and I found an easier way to do it Much easier.

  4. #4
    Join Date
    Feb 2006
    Posts
    582
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hah, have you touched it since the last time you worked on it?
    Free File Hosting
    No download timers!

    Rifkwtf.com

  5. #5
    Join Date
    Feb 2006
    Location
    Wisconsin (like farm-town, USA) :P
    Posts
    254
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Not until just after I posed it

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. KeyDown; and KeyUp;
    By skilld u in forum OSR Help
    Replies: 2
    Last Post: 01-30-2008, 11:44 PM
  2. KeyDown In C++
    By TravisV10 in forum C/C++ Help and Tutorials
    Replies: 2
    Last Post: 08-12-2007, 04:24 PM
  3. if(KeyDown('m'))then
    By Jason2gs in forum OSR Help
    Replies: 4
    Last Post: 02-26-2007, 03:43 AM
  4. keydown
    By raimis89 in forum OSR Help
    Replies: 4
    Last Post: 12-09-2006, 09:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •