Results 1 to 2 of 2

Thread: Help with this please.

  1. #1
    Join Date
    Apr 2016
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default Help with this please.

    okay, basically i have started to write a script for a rsps that is fletching, im familiar with basic code so i am able to find the moving npc buy the logs. The issue im having is trying to work out how to make it enter text in game, for example when you click "make X" you need to enter the amount in game but i am strugging to find the answer to this, any help would be appreciated.

  2. #2
    Join Date
    May 2012
    Location
    Glorious Nippon
    Posts
    1,011
    Mentioned
    50 Post(s)
    Quoted
    505 Post(s)

    Default

    Here is how SRL-6 does it (typeSend):
    Simba Code:
    1. procedure typeSend(text: string; pressEnter: boolean = true);
    2. var
    3.   i: Integer;
    4. begin
    5.   for i := 1 to Length(Text) do
    6.   begin
    7.     SendKeys(Text[i], 30 + Random(30), 30 + Random(30));
    8.     Wait(40 + Random(40));
    9.   end;
    10.  
    11.   if pressEnter then
    12.     TypeByte(VK_ENTER);
    13. end;
    The relevant Simba function is sendKeys()

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
  •