Results 1 to 8 of 8

Thread: Simulating Keyboardpress

  1. #1
    Join Date
    Dec 2008
    Posts
    41
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Simulating Keyboardpress

    is there a way to simulate a press of a key apart from the robot class (which i cant get to work)

  2. #2
    Join Date
    Apr 2007
    Posts
    994
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Robot class? This is SCAR here, not java.

    A simple Typesend would do for SCAR, but I have no idea for Java.
    [QUOTE]<GoF`> oh no its Raymooond
    <Raymooond> Heya
    <GoF`> is it ray or some other ray?
    <LeeLokHin> No idea
    <LeeLokHin> Raymond, what's the game you like the most?
    <Raymooond> Runescape
    <-- LeeLokHin has kicked Raymooond from #srl (Faker.)[/QUOTE]

  3. #3
    Join Date
    Dec 2008
    Posts
    41
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i need something that will simulate a click that will fulfil this

    until(iskeydown('a'));

  4. #4
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    What do you mean ?

    Something like :

    KeyDown('a');

    ?

  5. #5
    Join Date
    Dec 2008
    Posts
    41
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    but that comes up as :

    Line 874: [Error] (17080:13): Type mismatch in script C:\Users\Rob\Downloads\bilge2.scar

  6. #6
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    You want to repeat something until a key is pressed?
    Ce ne sont que des gueux


  7. #7
    Join Date
    Dec 2008
    Posts
    41
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Huh? i just want it to press a key

  8. #8
    Join Date
    Dec 2007
    Location
    Somewhere in Idaho
    Posts
    480
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SendKeys('keys');
    or
    KeyDown(GetKeyCode('x'));
    Wait(Random(100));
    KeyUp(GetKeyCode('x'));
    or
    {.include SRL/SRL.scar}
    ...
    Typesend('keys');

Thread Information

Users Browsing this Thread

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

Posting Permissions

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