Results 1 to 5 of 5

Thread: keydown

  1. #1
    Join Date
    Dec 2006
    Posts
    55
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    keydown

    program New;
    var z:byte;
    begin
    repeat
    wait(1000)
    KeyDown (z);
    until false
    end.


    how do u think why dont this work ?
    Im not using this for RS2

  2. #2
    Join Date
    Dec 2006
    Posts
    55
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I want that scar simulates pushing a key in the game ... What should i write
    Any sugestions ?

  3. #3
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Well you made z the NAME of the variable, not the VALUE of the variable. You need z:=SOMETHING for it to mean anything.

    Also, keydown holds down the key, and doesn't ever let go until you use keyup. So theres no point in telling it to hold down the key again every second forever, because it is already doing that.

    If you haven't already, # 1 get those.

    EDIT: if you are talking about autotalker, look at the ones posted. They (the good ones) use a procedure in SRL that has randomness between characters, holds down character for random time etc.

  4. #4
    Join Date
    Dec 2006
    Posts
    55
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    OKey .
    Now Ill try to say it difrent ...
    Now i want that it stimulates pushing a left alt

    program New;
    var leftalt:string;
    begin
    leftalt:='leftalt' ;
    repeat
    wait(1000);
    KeyDown (leftalt);
    wait(1000);
    keyUp(leftalt);
    until false
    end.

    I dont need this for autotalking ...
    In other game this botton means heal so i want that scar simulats it ...

  5. #5
    Join Date
    Dec 2006
    Posts
    55
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    program New;
    var
    keycodel : Integer;
    begin
    wait(5000);
    repeat
    keycodel:= GetKeyCode('z');// cange ? into whatever key you want
    Writeln(inttostr(keycodel));
    wait(1000);
    KeyDown(keycodel);
    wait(100);
    Keyup(keycodel);
    until false
    end.



    But how can i make stimulate spacebar or alt ?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. KeyDown
    By Championship in forum OSR Help
    Replies: 2
    Last Post: 12-07-2008, 06:51 PM
  2. KeyDown; and KeyUp;
    By skilld u in forum OSR Help
    Replies: 2
    Last Post: 01-30-2008, 11:44 PM
  3. KeyDown In C++
    By TravisV10 in forum C/C++ Help and Tutorials
    Replies: 2
    Last Post: 08-12-2007, 04:24 PM
  4. Keydown
    By skullbr00d in forum OSR Help
    Replies: 3
    Last Post: 06-07-2007, 06:11 PM
  5. if(KeyDown('m'))then
    By Jason2gs in forum OSR Help
    Replies: 4
    Last Post: 02-26-2007, 03:43 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
  •