Results 1 to 5 of 5

Thread: sendkeys help

  1. #1
    Join Date
    Oct 2012
    Posts
    758
    Mentioned
    6 Post(s)
    Quoted
    282 Post(s)

    Post sendkeys help

    okay so I made this script for macro key shortcut using lape interpreter

    Simba Code:
    program new;
    begin
      repeat
        begin
           if(IsKeyDown('71')) then //G
             SendKeys('W 1 Q R', 5, 5); // W 1 Q R -> 87 49 81 82
           Wait(5);
        end;
      until false
    //writeln(IntToStr(GetKeyCode('q')));
    end.

    but I get error

    Exception in Script: Expected variable of type "UInt16", got "AnsiString" at line 5, column 19

    i already asked mayaz if this is doable with Simba but it's giving me a hard time
    any advice or if there's something better to use for keyboard macro please shoot

  2. #2
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    Quote Originally Posted by Runehack123 View Post
    okay so I made this script for macro key shortcut using lape interpreter

    Simba Code:
    program new;
    begin
      repeat
        begin
           if(IsKeyDown('71')) then //G
             SendKeys('W 1 Q R', 5, 5); // W 1 Q R -> 87 49 81 82
           Wait(5);
        end;
      until false
    //writeln(IntToStr(GetKeyCode('q')));
    end.

    but I get error

    Exception in Script: Expected variable of type "UInt16", got "AnsiString" at line 5, column 19

    i already asked mayaz if this is doable with Simba but it's giving me a hard time
    any advice or if there's something better to use for keyboard macro please shoot
    You are using a string when it wants an Int

    Change:

    Simba Code:
    if(IsKeyDown('71')) then //G

    to

    Simba Code:
    if(IsKeyDown(71)) then //G

    Forum account issues? Please send me a PM

  3. #3
    Join Date
    Oct 2012
    Posts
    758
    Mentioned
    6 Post(s)
    Quoted
    282 Post(s)

    Default

    okay so I want to send
    Q W E R
    when I press the button T. I changed it to T since G is already assigned to something.
    this is for LoL League of Legends

    its only working in chat now and not ingame which is disappointing
    if anyone has experience with LoL macros
    and can give me some advice
    then
    thanks I guess please help ty

  4. #4
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

    Default

    Quote Originally Posted by Runehack123 View Post
    okay so I want to send
    Q W E R
    when I press the button T. I changed it to T since G is already assigned to something.
    this is for LoL League of Legends

    its only working in chat now and not ingame which is disappointing
    if anyone has experience with LoL macros
    and can give me some advice
    then
    thanks I guess please help ty
    Write League of Legends bots in Lua. Check out Bot of Legends.

  5. #5
    Join Date
    Oct 2012
    Posts
    758
    Mentioned
    6 Post(s)
    Quoted
    282 Post(s)

    Default

    l0l bot of legends
    lets do thiiiis :3 how did i not see this in google search before??

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
  •