Page 1 of 2 12 LastLast
Results 1 to 25 of 28

Thread: [Error] (4:26): Type mismatch at line 3 Compiling failed.

  1. #1
    Join Date
    Dec 2011
    Posts
    212
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default [Error] (4:26): Type mismatch at line 3 Compiling failed.

    program new;
    begin
    ClickMouse(50, 780, True);
    end.
    This is an Example,i cant use the procedure of Boolean.
    If i use "MoveMouse(80,90) it works but if i use "ClickMouse" it dont work.
    Thanks for the Help
    How can i Get this to work?

  2. #2
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Why not use MMouse and Mouse? They are SRL's inbuilt mousing functions.

    Simba Code:
    procedure MMouse(x, y, rx, ry: integer);
    Simba Code:
    procedure Mouse(mousex, mousey, ranx, rany: Integer; left: Boolean);

    rx, ry are the randomization in the pixels from the original X and Y values.

    Simba Code:
    MMouse(10, 10, 5, 5);
    Mouse(10, 10, 5, 5, True);

  3. #3
    Join Date
    Dec 2011
    Posts
    212
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    What does "Mouse" make?Thanks for the help bro.

  4. #4
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    If this is for RS, you will want to use "MMouse();" to move the mouse and "Mouse();" to click.

    However, to answer your question, changed "True" to "1" in ClickMouse(). It uses an Integer instead of Boolean.

    EDIT: 'd
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


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


  5. #5
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    It moves the mouse to the X and Y values (with randomization with ranx and rany) and then clicks the left mouse button or the right mouse button depending on "Left".
    True = Left click,
    False = Right click.

    @ Kyle : Ninja much, bro? D:

  6. #6
    Join Date
    Dec 2011
    Posts
    212
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Sorry,im new to this and im trying to understand so i can make scripts for the community.Thanks.
    program new;
    begin
    MMouse(80,90, 1);
    end.

    Now should look like this or what?

  7. #7
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    It should be this:
    Simba Code:
    MMouse(80, 90, 1, 1, True);

    1, 1 = The randomization in the coordinates given.
    True = left clicks.

    Don't be sorry. We love to help and we don't mind questions!

  8. #8
    Join Date
    Dec 2011
    Posts
    212
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by RISK View Post
    It should be this:
    Simba Code:
    MMouse(80, 90, 1, 1, True);

    1, 1 = The randomization in the coordinates given.
    True = left clicks.

    Don't be sorry. We love to help and we don't mind questions!
    Thanks for the help Friend!You are a nice person.Let me try it.

  9. #9
    Join Date
    Dec 2011
    Posts
    212
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by RISK View Post
    It should be this:
    Simba Code:
    MMouse(80, 90, 1, 1, True);

    1, 1 = The randomization in the coordinates given.
    True = left clicks.

    Don't be sorry. We love to help and we don't mind questions!
    Got this error :
    [Error] (4:1): Unknown identifier 'MMouse' at line 3
    Compiling failed.

    What should i do?It could be that i dont have a Plugin?Or an Extension?

  10. #10
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Add this to the top of your script under "program new;":
    Simba Code:
    {$i SRL/SRL.scar}

    Also make sure you have the SRL include.

  11. #11
    Join Date
    Dec 2011
    Posts
    212
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by RISK View Post
    Add this to the top of your script under "program new;":
    Simba Code:
    {$i SRL/SRL.scar}

    Also make sure you have the SRL include.
    The script:
    program new;
    {$i SRL/SRL.scar}
    begin
    MMouse(80, 90, 1, 1, True);
    end.

    It shows me other error
    This one:
    [Error] (5:27): Invalid number of parameters at line 4
    Compiling failed.

  12. #12
    Join Date
    Mar 2006
    Location
    Behind you
    Posts
    3,194
    Mentioned
    61 Post(s)
    Quoted
    63 Post(s)

    Default

    You need to include SRL in the Script add:

    Simba Code:
    {$i SRL/SRL.scar}

    below the Program line at the top.

    E: lol Ninja'd

    MMouse only move the mouse use Mouse();

    "Sometimes User's don't need the Answer spelled out with Code. Sometimes all they need is guidance and explanation of the logic to get where they are going."

  13. #13
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Lol, oops. Remove the "True" in the MMouse.

    @ BraK : Hi.

  14. #14
    Join Date
    Dec 2011
    Posts
    212
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by BraK View Post
    You need to include SRL in the Script add:

    Simba Code:
    {$i SRL/SRL.scar}

    below the Program line at the top.

    E: lol Ninja'd

    MMouse only move the mouse use Mouse();
    Thanks for the help but i already done that and got this error v[Error] (5:27): Invalid number of parameters at line 4
    Compiling failed.

  15. #15
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Try "MMouse(80, 90, 1, 1);".

  16. #16
    Join Date
    Mar 2006
    Location
    Behind you
    Posts
    3,194
    Mentioned
    61 Post(s)
    Quoted
    63 Post(s)

    Default

    Change MMouse to Mouse or remove the True.

    "Sometimes User's don't need the Answer spelled out with Code. Sometimes all they need is guidance and explanation of the logic to get where they are going."

  17. #17
    Join Date
    Dec 2011
    Posts
    212
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    My Mouse stands in one place and it dont move from there.I try to move it but it continue standying in the same place.
    Sorry for my bad english,i speak Spanish.!

  18. #18
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Add "SetupSRL;" before the MMouse.

  19. #19
    Join Date
    Dec 2011
    Posts
    212
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by RISK View Post
    Add "SetupSRL;" before the MMouse.
    Ahhhh!Thank you so much man!Add me.

  20. #20
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    If you want to add my MSN: riskeditall@live.com

  21. #21
    Join Date
    Dec 2011
    Posts
    212
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    One more Question,how can i make it to CLICK on one place?Thanks again!

  22. #22
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Mouse(80, 90, 1, 1, True);
    True = Left click,
    False = Right click

  23. #23
    Join Date
    Dec 2011
    Posts
    212
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    [Error] (10:8): Unknown identifier 'Left' at line 9
    Compiling failed.
    I got that error
    My script goes like this:


    program new;
    {$i SRL/SRL.scar}
    begin
    MoveMouse(800,45)
    SetupSRL;MMouse(80, 90, 3, 70);
    Wait(1000)
    Mouse(80, 90, 1, 1, True);
    True = Left click,
    False = Right click
    end.

  24. #24
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Remove the "True = Left click,
    False = Right click".

    I said those to tell you that putting "True" in your "Mouse" will make it left click and "False" will make it right click.

  25. #25
    Join Date
    Dec 2011
    Posts
    212
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ohh i understand,Thank you so much!

Page 1 of 2 12 LastLast

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
  •