Results 1 to 7 of 7

Thread: Need Help On My Frirst Script

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

    Default Need Help On My Frirst Script

    i just started to learn 10 minutes ago, i make this script to open google chrome and close it but i got this error:[Error] (9:1): Type mismatch at line 8
    Compiling failed.


    program new;

    procedure OpenChrome;
    begin
    MoveMouse (409, 885);
    Wait(500);
    ClickMouse(409, 883, True); <<< now i get that Error
    Wait(3000);
    end;

    procedure CloseChrome;
    begin
    MoveMouse(1579, 10);
    Wait(500);
    ClickMouse(1579, 10, True);
    wait(1000);
    end;

    begin
    OpenChrome;
    CloseChrome;
    end.



    FIXED
    Last edited by Helper; 12-23-2011 at 03:11 PM.

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

    Default

    You forgot the ";" after the ClickMouse() procedure.
    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.


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

    Default

    Quote Originally Posted by Kyle Undefined View Post
    You forgot the ";" after the ClickMouse() procedure.
    Ohhh, Thank you very much

  4. #4
    Join Date
    Oct 2011
    Posts
    62
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    add a semi colon to the line before...
    I'm sure there is a thread on this already that lists all the very common problems...please search beforehand...

    E: ...i was kinda slow :P

    E2: http://villavu.com/forum/showthread.php?t=6413
    Last edited by logical; 12-23-2011 at 02:39 PM.

  5. #5
    Join Date
    Dec 2011
    Posts
    202
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by logical View Post
    add a semi colon to the line before...
    I'm sure there is a thread on this already that lists all the very common problems...please search beforehand...

    E: ...i was kinda slow :P

    E2: http://villavu.com/forum/showthread.php?t=6413
    I get the same ERROR :/

  6. #6
    Join Date
    Oct 2011
    Posts
    62
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Click type is not a boolean...so u cant type true or false...im not sure what the valid arguments for this are though
    Try clickleft of a number e.g. 0, 1, 2

    E: Clickleft doesn't work unless you have included srl.scar ... so you will have to use integers. I think 0 is right click, 1 is left...idk what 3 does...test it out
    Last edited by logical; 12-23-2011 at 03:11 PM.

  7. #7
    Join Date
    Dec 2011
    Posts
    202
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by logical View Post
    Click type is not a boolean...so u cant type true or false...im not sure what the valid arguments for this are though...try clickleft of a number e.g. 0, 1, 2
    Thank you now it works .

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
  •