Results 1 to 11 of 11

Thread: DoAction(Slot : Integer)

  1. #1
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default DoAction(Slot : Integer)

    I don't know if this has been made yet or anything but this is a simple DoAction function

    Simba Code:
    Function DoAction(Slot : Integer): Boolean;
    var
      cx, cy: integer;
      TextFound: Boolean;
    Begin
      Result := False;
      if FindText(cx, cy, 'Enter', 'SmallChars', MSX1, MSY1, MSX2, MSY2) then
        TextFound := True
      else
        Begin
          ToggleActionBar(False);
          Wait(RandomRange(500, 1000));
          ToggleActionBar(True);
        End;
      if not IsActionBarOpen then
        ToggleActionBar(True);
      Result := SendKeys(Slot, 200, 100);
    End;

    -Boom
    Last edited by Dynamite; 12-13-2012 at 10:48 PM.

  2. #2
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default

    What about if there is text already being typed at that time?
    Mat



    ^^

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

    Default

    Quote Originally Posted by Mat View Post
    What about if there is text already being typed at that time?
    Mat
    Valid point, didn't think of that.

    Forum account issues? Please send me a PM

  4. #4
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    Ah yes, forgot about that, new function posted, it is not tested, please could someone?

    -Boom

  5. #5
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default

    It will still, do the typing, from what I can see.
    Mat
    E: Also why mainscreen search its in chat box.



    ^^

  6. #6
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    Quote Originally Posted by Mat View Post
    It will still, do the typing, from what I can see.
    Mat
    E: Also why mainscreen search its in chat box.
    Closing and opening ActionBar resets chatbox.
    Also wasn't sure about there being chatbox co-ords :P
    MC1x/y ?

    -Boom

  7. #7
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    what if the slot is 'a' not '1'?

  8. #8
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    AFAIK it goes from 1 to =


  9. #9
    Join Date
    May 2008
    Location
    Mental Hospital
    Posts
    414
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by Dynamite View Post
    AFAIK it goes from 1 to =

    There are chat coords MCX1 ect.

    Also you can right click and customize the keys.

    Last edited by Noob King; 12-14-2012 at 04:24 PM.

  10. #10
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    Quote Originally Posted by Noob King View Post
    You can right click and customize the keys.

    Ah didn't know that alright I will edit when I get home

    -Boom

  11. #11
    Join Date
    May 2008
    Location
    Mental Hospital
    Posts
    414
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by Dynamite View Post
    Ah didn't know that alright I will edit when I get home

    -Boom
    I edited my post with a new pic. I always forgot puush doesn't work when I'm in directx mode.

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
  •