Results 1 to 2 of 2

Thread: Simple typing

  1. #1
    Join Date
    Feb 2016
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Simple typing

    I have setup this function but for it wont press it(enter) help would be appreciated to make it press the enter button.

    Code:
    function AutoTele(): Boolean;
    begin
     Wait(10000 + Random(4000));
    sendkeys ('::kbd')
    WriteLn('You have teleported kbd');
    end;

  2. #2
    Join Date
    Dec 2010
    Posts
    483
    Mentioned
    30 Post(s)
    Quoted
    328 Post(s)

    Default

    Quote Originally Posted by Bottingclient View Post
    I have setup this function but for it wont press it(enter) help would be appreciated to make it press the enter button.

    Code:
    function AutoTele(): Boolean;
    begin
     Wait(10000 + Random(4000));
    sendkeys ('::kbd')
    WriteLn('You have teleported kbd');
    end;
    Alright..so couple of options here.

    1) Use SRL-6's "TypeSend" function which takes a boolean as its second parameter - whether or not to press enter

    ie. TypeSend('::kbd', true);

    OR

    2) Send the enter key with KeyDown

    ie:

    SendKeys('::kbd');
    KeyDown(13);
    Wait(50 + Random(70));
    KeyUp(13);

    Note that if you use SMART I think you might have to change the 13 to 10.

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
  •