Results 1 to 16 of 16

Thread: Help with ClickSymbol.

  1. #1
    ronny.m.p Guest

    Help with ClickSymbol.

    Ok whenevere i try to use ClickSymbol it always gives me an error saying type mismatch. Will someone please explain this to me.

  2. #2
    Join Date
    Dec 2006
    Posts
    65
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Try to use clickobject instead.

  3. #3
    Join Date
    Nov 2006
    Posts
    1,103
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    ignore petrock6 lol, you have to use a bitmap for that, try findsymbol, you can use the name of the symbol instead(the coordinates will be in the first 2 slots, so use findsymbol(myx,myy,'bank',<dunno if more has to be put here.);
    mouse(myx,myy,true);
    (check SRL include for what to use exactly...)
    Infractions, reputation, reflection, the dark side of scripting, they are.

  4. #4
    ronny.m.p Guest

    Default

    i know. right now im haveing it click the anvil bitmap that is loaded with find symbol. Here's exactly what i wrote.

    ClickSymbol('anvil');

  5. #5
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    How about trying something like this:
    SCAR Code:
    procedure ClickAnvilSymbol;
    var AnvilColor:Integer;
        Times:Integer;
    begin
    repeat
    AnvilColor:=GetSymbolColor(x,y,'Anvil')
    wait(25)
    Times:=Times+1
    until(AnvilColor>0)or
    (Times>19)
    if(Times>19)then
    TerminateScript;
    Mouse(x,y,2,2,True)
    flag;
    end;

  6. #6
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    nono, just use FindSymbol. This function returns the found x and y coords of the MMSymbol. Use these coords to click the Mouse...
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  7. #7
    ronny.m.p Guest

    Default

    Ok but what do all the things in findsymbol mean? like (var rx, ry: Integer; Name: String): Boolean;

  8. #8
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    And you have made a "brand new include for training a pure"? And you dont know what var rx,ry:integer means?

    hmmmm...
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  9. #9
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by WT-Fakawi View Post
    And you have made a "brand new include for training a pure"? And you dont know what var rx,ry,:integer means?

    hmmmm...
    Haha, lol. Good point!

  10. #10
    ronny.m.p Guest

    Default

    I made all my own procedures for that so i didn't need to use that stuff. So are going to tell me or just makefun

  11. #11
    Join Date
    Dec 2006
    Location
    Ky
    Posts
    390
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    x,y are the integers, and in this case represent the coordinates of the symbol. After you have findsymbol then say mmouse(x,y,true)....
    SUMMER BREAK be back when I want to

  12. #12
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by ronny.m.p View Post
    I made all my own procedures for that so i didn't need to use that stuff. So are going to tell me or just makefun
    Yea but what I think Fawki is saying is that if you are smart enough to make all your own procedures you should be smart enough to figure out other procedures.

  13. #13
    ronny.m.p Guest

    Default

    lol it was 1:30am here...its a var so that means youd write it out like this: FindSymbol(rx,ry,'anvil'); and if im not mitaken thats right...problem is now that iv made it correctly it just sits there and dosent do anything (my procedure)

  14. #14
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    it sets the location of the symbol to the variables you put in (rx,ry in this case)

    so then you need mouse(rx,ry,1,1,true) after

  15. #15
    ronny.m.p Guest

    Default

    ok so it would be this:

    if(findsymbol(rx,ry,'anvil')=true)then
    Mouse(rx,ry,true);

  16. #16
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    close, you don't need = true because the whole thing represents true, just like the condidtion (s=2) represents true (assuming it does of course), also you forgot the random parameters in mouse

    if(findsymbol(rx,ry,'anvil')) then
    Mouse(rx,ry,1,1,true);

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
  •