Results 1 to 6 of 6

Thread: F1 key doesn't exist?

  1. #1
    Join Date
    Jul 2008
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default F1 key doesn't exist?

    I've made it so after a certain amount of clicks I'll use a health potion. But I can't find the key code for the F1 key (F1 - F5 are in-game hotkeys for anything you choose).

  2. #2
    Join Date
    Jul 2008
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    This doesn't do anything o.O

  3. #3
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Keydown(VK_F1);

    ~Hermen

  4. #4
    Join Date
    Jul 2008
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thank you ^^

  5. #5
    Join Date
    Jul 2008
    Location
    California
    Posts
    255
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    For future reference:

    http://delphi.about.com/od/objectpascalide/l/blvkc.htm

    Complete list of Virtual Keys, though some are not compatible with SCAR.
    Unfortunately, no active scripts atm.

  6. #6
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Alternatively, typing VK_ then pressing ctrl+space should bring up a list of possible things you want to use (procedure, functions, constants, variables, types etc) but should only list a load of VK_ commands which are just constants for various keys.
    Also, you will have to use KeyUp(VK_F1) as well as it will otherwise treat it like it's constantly down. Best to put a small wait (50-100 should do it) to make sure it stays down long enough for the game to recognise that it was down.
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Satan better than God? Do they exist?
    By Aser in forum Discussions & Debates
    Replies: 41
    Last Post: 02-27-2009, 07:00 PM
  2. RockIndex '18' does not exist.
    By Naum in forum OSR Help
    Replies: 3
    Last Post: 08-19-2008, 11:18 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
  •