Results 1 to 8 of 8

Thread: Help with simple wc program!

  1. #1
    Join Date
    Mar 2007
    Location
    Burlington, VT
    Posts
    194
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help with simple wc program!

    Ok here's my first program that i've tried to compose. Everytime i try to run it i get an error saying stuff like "Identifier expected in script C:\Program Files\SCAR 2.03\Scripts\korbautowc.scar". I also made the dropping code a little complex because i couldn't get "if (InvFull) then" or "until (invfull)" to work. Furthermore, everytime i try to use the srl woodcutting.scar it says "Line 30: [Error] (17694:10): comma (',') expected in script C:\Program Files\SCAR 2.03\includes\SRL\SRL\skill\Woodcutting.Scar". HELP ME PLZZ!!!
    Here is the simple code i have so far:

    program KorbWc;
    {.include si.txt}

    const treecolor=1919040;
    const logcolor=3892098;

    procedure cut;
    begin
    findcolorspiral(x,y,treecolor,3,3,515,336)
    mouse(x,y,0,0,true)
    wait(1500+random(1500))
    if(invincount=28)then
    MoveMouse(585+random(6), 227+random(6));
    wait(100);
    ClickMouse(585+random(8), 227+random(8), false);
    MoveMouse(582+random(6), 268+random(6));
    wait(100)
    ClickMouse(582+random(8), 268+random(8), true);
    wait(100)
    MoveMouse(626+random(6), 227+random(6));
    wait(100);
    ClickMouse(626+random(8), 227+random(8), false);
    MoveMouse(626+random(6), 268+random(6));
    wait(100)
    ClickMouse(626+random(8), 268+random(8), true);
    wait(100)
    MoveMouse(668+random(6), 227+random(6));
    wait(100);
    ClickMouse(668+random(8), 227+random(8), false);
    MoveMouse(668+random(6), 268+random(6));
    wait(100)
    ClickMouse(668+random(8), 268+random(8), true);
    wait(100)
    MoveMouse(712+random(6), 227+random(6));
    wait(100);
    ClickMouse(712+random(8), 227+random(8), false);
    MoveMouse(712+random(6), 268+random(6));
    wait(100)
    ClickMouse(712+random(8), 268+random(8), true);
    wait(100)

    MoveMouse(585+random(6), 264+random(6));
    wait(100);
    ClickMouse(585+random(8), 264+random(8), false);
    MoveMouse(582+random(6), 305+random(6));
    wait(100)
    ClickMouse(582+random(8), 305+random(8), true);
    wait(100)
    MoveMouse(626+random(6), 264+random(6));
    wait(100);
    ClickMouse(626+random(8), 264+random(8), false);
    MoveMouse(626+random(6), 305+random(6));
    wait(100)
    ClickMouse(626+random(8), 305+random(8), true);
    wait(100)
    MoveMouse(668+random(6), 264+random(6));
    wait(100);
    ClickMouse(668+random(8), 264+random(8), false);
    MoveMouse(668+random(6), 305+random(6));
    wait(100)
    ClickMouse(668+random(8), 305+random(8), true);
    wait(100)
    MoveMouse(712+random(6), 264+random(6));
    wait(100);
    ClickMouse(712+random(8), 264+random(8), false);
    MoveMouse(712+random(6), 305+random(6));
    wait(100)
    ClickMouse(712+random(8), 305+random(8), true);
    wait(100)

    MoveMouse(585+random(6), 300+random(6));
    wait(100);
    ClickMouse(585+random(8), 300+random(8), false);
    MoveMouse(582+random(6), 341+random(6));
    wait(100)
    ClickMouse(582+random(8), 341+random(8), true);
    wait(100)
    MoveMouse(626+random(6), 300+random(6));
    wait(100);
    ClickMouse(626+random(8), 300+random(8), false);
    MoveMouse(626+random(6), 341+random(6));
    wait(100)
    ClickMouse(626+random(8), 341+random(8), true);
    wait(100)
    MoveMouse(668+random(6), 300+random(6));
    wait(100);
    ClickMouse(668+random(8), 300+random(8), false);
    MoveMouse(668+random(6), 341+random(6));
    wait(100)
    ClickMouse(668+random(8), 341+random(8), true);
    wait(100)
    MoveMouse(712+random(6), 300+random(6));
    wait(100);
    ClickMouse(712+random(8), 300+random(8), false);
    MoveMouse(712+random(6), 341+random(6));
    wait(100)
    ClickMouse(712+random(8), 341+random(8), true);
    wait(100)

    MoveMouse(585+random(6), 336+random(6));
    wait(100);
    ClickMouse(585+random(8), 336+random(8), false);
    MoveMouse(582+random(6), 377+random(6));
    wait(100)
    ClickMouse(582+random(8), 377+random(8), true);
    wait(100)
    MoveMouse(626+random(6), 336+random(6));
    wait(100);
    ClickMouse(626+random(8), 336+random(8), false);
    MoveMouse(626+random(6), 377+random(6));
    wait(100)
    ClickMouse(626+random(8), 377+random(8), true);
    wait(100)
    MoveMouse(668+random(6), 336+random(6));
    wait(100);
    ClickMouse(668+random(8), 336+random(8), false);
    MoveMouse(668+random(6), 377+random(6));
    wait(100)
    ClickMouse(668+random(8), 377+random(8), true);
    wait(100)
    MoveMouse(712+random(6), 336+random(6));
    wait(100);
    ClickMouse(712+random(8), 336+random(8), false);
    MoveMouse(712+random(6), 377+random(6));
    wait(100)
    ClickMouse(712+random(8), 377+random(8), true);
    wait(100)

    MoveMouse(585+random(6), 373+random(6));
    wait(100);
    ClickMouse(585+random(8), 373+random(8), false);
    MoveMouse(582+random(6), 414+random(6));
    wait(100)
    ClickMouse(582+random(8), 414+random(8), true);
    wait(100)
    MoveMouse(626+random(6), 373+random(6));
    wait(100);
    ClickMouse(626+random(8), 373+random(8), false);
    MoveMouse(626+random(6), 414+random(6));
    wait(100)
    ClickMouse(626+random(8), 414+random(8), true);
    wait(100)
    MoveMouse(668+random(6), 373+random(6));
    wait(100);
    ClickMouse(668+random(8), 373+random(8), false);
    MoveMouse(668+random(6), 414+random(6));
    wait(100)
    ClickMouse(668+random(8), 414+random(8), true);
    wait(100)
    MoveMouse(712+random(6), 373+random(6));
    wait(100);
    ClickMouse(712+random(8), 373+random(8), false);
    MoveMouse(712+random(6), 414+random(6));
    wait(100)
    ClickMouse(712+random(8), 414+random(8), true);
    wait(100)

    MoveMouse(585+random(6), 408+random(6));
    wait(100);
    ClickMouse(585+random(8), 408+random(8), false);
    MoveMouse(582+random(6), 426+random(6));
    wait(100)
    ClickMouse(582+random(8), 426+random(8), true);
    wait(100)
    MoveMouse(626+random(6), 408+random(6));
    wait(100);
    ClickMouse(626+random(8), 408+random(8), false);
    MoveMouse(626+random(6), 426+random(6));
    wait(100)
    ClickMouse(626+random(8), 426+random(8), true);
    wait(100)
    MoveMouse(668+random(6), 408+random(6));
    wait(100);
    ClickMouse(668+random(8), 408+random(8), false);
    MoveMouse(668+random(6), 426+random(6));
    wait(100)
    ClickMouse(668+random(8), 426+random(8), true);
    wait(100)
    MoveMouse(712+random(6), 408+random(6));
    wait(100);
    ClickMouse(712+random(8), 408+random(8), false);
    MoveMouse(712+random(6), 426+random(6));
    wait(100)
    ClickMouse(712+random(8), 426+random(8), true);
    wait(100)

    MoveMouse(585+random(6), 446+random(6));
    wait(100);
    ClickMouse(585+random(8), 446+random(8), false);
    MoveMouse(582+random(6), 426+random(6));
    wait(100)
    ClickMouse(582+random(8), 426+random(8), true);
    wait(100)
    MoveMouse(626+random(6), 446+random(6));
    wait(100);
    ClickMouse(626+random(8), 446+random(8), false);
    MoveMouse(626+random(6), 426+random(6));
    wait(100)
    ClickMouse(626+random(8), 426+random(8), true);
    wait(100)
    MoveMouse(668+random(6), 446+random(6));
    wait(100);
    ClickMouse(668+random(8), 446+random(8), false);
    MoveMouse(668+random(6), 426+random(6));
    wait(100)
    ClickMouse(668+random(8), 426+random(8), true);
    wait(100)
    MoveMouse(712+random(6), 446+random(6));
    wait(100);
    end;

  2. #2
    Join Date
    Mar 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    o.o That's pretty complicated... What's up with all the mouse clicks and waits? Is it just clicking a whole bunch of different trees? Cause if you're using a color picker, there shouldn't be that many clicks and mouse movements. Gimme a few minutes and I'll fix your errors.

    Edit: Wow that's a lot of errors!

    edit edit: I can see that's your uber complicated dropping procedure. You shouldn't name a dropping procedure "cut"..... Can't get it to work. It says ; expected...

    edit edit edit: Lol so many edits. Anyways, found another error. I suggest next time you script, you remember all the semicolons and brackets, etc. etc. lol just a suggestion. Working on fixing it.

    edit edit edit edit: Ooops nvm. Forget about what I just said.

    edit edit edit edit edit: After many edits, I have finally fixed it lol. The begin and end at the bottom is the main loop. The procedure I fixed for you is above that.

    Code:
    program KorbWc;
    {.include si.txt}
    
    const treecolor=1919040;
    const logcolor=3892098;
    
    procedure cut;
    begin
    findcolorspiral(x,y,treecolor,3,3,515,336);
    mouse(x,y,0,0,true);
    wait(1500+random(1500));
    if(invincount=28)then
    MoveMouse(585+random(6), 227+random(6));
    wait(100);
    ClickMouse(585+random(8), 227+random(8), false);
    MoveMouse(582+random(6), 268+random(6));
    wait(100);
    ClickMouse(582+random(8), 268+random(8), true);
    wait(100);
    MoveMouse(626+random(6), 227+random(6));
    wait(100);
    ClickMouse(626+random(8), 227+random(8), false);
    MoveMouse(626+random(6), 268+random(6));
    wait(100);
    ClickMouse(626+random(8), 268+random(8), true);
    wait(100);
    MoveMouse(668+random(6), 227+random(6));
    wait(100);
    ClickMouse(668+random(8), 227+random(8), false);
    MoveMouse(668+random(6), 268+random(6));
    wait(100);
    ClickMouse(668+random(8), 268+random(8), true);
    wait(100);
    MoveMouse(712+random(6), 227+random(6));
    wait(100);
    ClickMouse(712+random(8), 227+random(8), false);
    MoveMouse(712+random(6), 268+random(6));
    wait(100);
    ClickMouse(712+random(8), 268+random(8), true);
    wait(100);
    
    MoveMouse(585+random(6), 264+random(6));
    wait(100);
    ClickMouse(585+random(8), 264+random(8), false);
    MoveMouse(582+random(6), 305+random(6));
    wait(100);
    ClickMouse(582+random(8), 305+random(8), true);
    wait(100);
    MoveMouse(626+random(6), 264+random(6));
    wait(100);
    ClickMouse(626+random(8), 264+random(8), false);
    MoveMouse(626+random(6), 305+random(6));
    wait(100);
    ClickMouse(626+random(8), 305+random(8), true);
    wait(100);
    MoveMouse(668+random(6), 264+random(6));
    wait(100);
    ClickMouse(668+random(8), 264+random(8), false);
    MoveMouse(668+random(6), 305+random(6));
    wait(100);
    ClickMouse(668+random(8), 305+random(8), true);
    wait(100);
    MoveMouse(712+random(6), 264+random(6));
    wait(100);
    ClickMouse(712+random(8), 264+random(8), false);
    MoveMouse(712+random(6), 305+random(6));
    wait(100);
    ClickMouse(712+random(8), 305+random(8), true);
    wait(100);
    
    MoveMouse(585+random(6), 300+random(6));
    wait(100);
    ClickMouse(585+random(8), 300+random(8), false);
    MoveMouse(582+random(6), 341+random(6));
    wait(100);
    ClickMouse(582+random(8), 341+random(8), true);
    wait(100);
    MoveMouse(626+random(6), 300+random(6));
    wait(100);
    ClickMouse(626+random(8), 300+random(8), false);
    MoveMouse(626+random(6), 341+random(6));
    wait(100);
    ClickMouse(626+random(8), 341+random(8), true);
    wait(100);
    MoveMouse(668+random(6), 300+random(6));
    wait(100);
    ClickMouse(668+random(8), 300+random(8), false);
    MoveMouse(668+random(6), 341+random(6));
    wait(100);
    ClickMouse(668+random(8), 341+random(8), true);
    wait(100);
    MoveMouse(712+random(6), 300+random(6));
    wait(100);
    ClickMouse(712+random(8), 300+random(8), false);
    MoveMouse(712+random(6), 341+random(6));
    wait(100);
    ClickMouse(712+random(8), 341+random(8), true);
    wait(100);
    
    MoveMouse(585+random(6), 336+random(6));
    wait(100);
    ClickMouse(585+random(8), 336+random(8), false);
    MoveMouse(582+random(6), 377+random(6));
    wait(100);
    ClickMouse(582+random(8), 377+random(8), true);
    wait(100);
    MoveMouse(626+random(6), 336+random(6));
    wait(100);
    ClickMouse(626+random(8), 336+random(8), false);
    MoveMouse(626+random(6), 377+random(6));
    wait(100);
    ClickMouse(626+random(8), 377+random(8), true);
    wait(100);
    MoveMouse(668+random(6), 336+random(6));
    wait(100);
    ClickMouse(668+random(8), 336+random(8), false);
    MoveMouse(668+random(6), 377+random(6));
    wait(100);
    ClickMouse(668+random(8), 377+random(8), true);
    wait(100);
    MoveMouse(712+random(6), 336+random(6));
    wait(100);
    ClickMouse(712+random(8), 336+random(8), false);
    MoveMouse(712+random(6), 377+random(6));
    wait(100);
    ClickMouse(712+random(8), 377+random(8), true);
    wait(100);
    
    MoveMouse(585+random(6), 373+random(6));
    wait(100);
    ClickMouse(585+random(8), 373+random(8), false);
    MoveMouse(582+random(6), 414+random(6));
    wait(100);
    ClickMouse(582+random(8), 414+random(8), true);
    wait(100);
    MoveMouse(626+random(6), 373+random(6));
    wait(100);
    ClickMouse(626+random(8), 373+random(8), false);
    MoveMouse(626+random(6), 414+random(6));
    wait(100);
    ClickMouse(626+random(8), 414+random(8), true);
    wait(100);
    MoveMouse(668+random(6), 373+random(6));
    wait(100);
    ClickMouse(668+random(8), 373+random(8), false);
    MoveMouse(668+random(6), 414+random(6));
    wait(100);
    ClickMouse(668+random(8), 414+random(8), true);
    wait(100);
    MoveMouse(712+random(6), 373+random(6));
    wait(100);
    ClickMouse(712+random(8), 373+random(8), false);
    MoveMouse(712+random(6), 414+random(6));
    wait(100);
    ClickMouse(712+random(8), 414+random(8), true);
    wait(100);
    
    MoveMouse(585+random(6), 408+random(6));
    wait(100);
    ClickMouse(585+random(8), 408+random(8), false);
    MoveMouse(582+random(6), 426+random(6));
    wait(100);
    ClickMouse(582+random(8), 426+random(8), true);
    wait(100);
    MoveMouse(626+random(6), 408+random(6));
    wait(100);
    ClickMouse(626+random(8), 408+random(8), false);
    MoveMouse(626+random(6), 426+random(6));
    wait(100);
    ClickMouse(626+random(8), 426+random(8), true);
    wait(100);
    MoveMouse(668+random(6), 408+random(6));
    wait(100);
    ClickMouse(668+random(8), 408+random(8), false);
    MoveMouse(668+random(6), 426+random(6));
    wait(100);
    ClickMouse(668+random(8), 426+random(8), true);
    wait(100);
    MoveMouse(712+random(6), 408+random(6));
    wait(100);
    ClickMouse(712+random(8), 408+random(8), false);
    MoveMouse(712+random(6), 426+random(6));
    wait(100);
    ClickMouse(712+random(8), 426+random(8), true);
    wait(100);
    
    MoveMouse(585+random(6), 446+random(6));
    wait(100);
    ClickMouse(585+random(8), 446+random(8), false);
    MoveMouse(582+random(6), 426+random(6));
    wait(100);
    ClickMouse(582+random(8), 426+random(8), true);
    wait(100);
    MoveMouse(626+random(6), 446+random(6));
    wait(100);
    ClickMouse(626+random(8), 446+random(8), false);
    MoveMouse(626+random(6), 426+random(6));
    wait(100);
    ClickMouse(626+random(8), 426+random(8), true);
    wait(100);
    MoveMouse(668+random(6), 446+random(6));
    wait(100);
    ClickMouse(668+random(8), 446+random(8), false);
    MoveMouse(668+random(6), 426+random(6));
    wait(100);
    ClickMouse(668+random(8), 426+random(8), true);
    wait(100);
    MoveMouse(712+random(6), 446+random(6));
    wait(100);
    end;
    
    begin
    end.

  3. #3
    Join Date
    Mar 2007
    Location
    Burlington, VT
    Posts
    194
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thank you so much!!
    I figured i had a lot of errors since i just started scripting today. Anyway the click procedure was used to drop the logs since i just want to do some power-woodcutting. Thank you again for your help and if i need anymore help i'll post again!

  4. #4
    Join Date
    Mar 2007
    Location
    Burlington, VT
    Posts
    194
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well i just tried it out, but it doesn't do anything. this is probably due to the begin, end. at the end of the program. If i take out that section, errors occur such as "unexpected end of file" which is to be expected because of the "end." i took out. I'lve tried different combinations to fix the problem but it still doesn't seem to be working out. If you have any suggestions i'd be happy to hear them (i used the code posted above). Meanwhile I'll try studying up in the beginners tutorials for scripting.

  5. #5
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    i suggest using the begginers, and plus, try to learn some SRL commands because clickmouse and mouvemouse are detectable, and from what i have heard, are like writing ban on ur forehead

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  6. #6
    Join Date
    Jan 2007
    Location
    Skaville, Jamaica
    Posts
    1,117
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Don't use Clickmouse and movemouse. Sooooooo detectible

    Use

    SCAR Code:
    MMouse(x,y,2,2)
    MMouse Moves the Mouse.
    x = X coordinate
    y = Y Coordinate
    2 = Random X Movement to add on
    2 = Random Y Movement to add on

    SCAR Code:
    Mouse(x,y,2,2,true)
    Clicks the mouse, same as above, except true and false you already know, what they do.

    I hope I got that all right :S
    Sorry if I didn't.

  7. #7
    Join Date
    Mar 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Korbman View Post
    well i just tried it out, but it doesn't do anything. this is probably due to the begin, end. at the end of the program. If i take out that section, errors occur such as "unexpected end of file" which is to be expected because of the "end." i took out. I'lve tried different combinations to fix the problem but it still doesn't seem to be working out. If you have any suggestions i'd be happy to hear them (i used the code posted above). Meanwhile I'll try studying up in the beginners tutorials for scripting.

    You have to call the procedure in the main loop like this:
    (I added the part in red)

    Code:
    program KorbWc;
    {.include si.txt}
    
    const treecolor=1919040;
    const logcolor=3892098;
    
    procedure cut;
    begin
    findcolorspiral(x,y,treecolor,3,3,515,336);
    mouse(x,y,0,0,true);
    wait(1500+random(1500));
    if(invincount=28)then
    MoveMouse(585+random(6), 227+random(6));
    wait(100);
    ClickMouse(585+random(8), 227+random(8), false);
    MoveMouse(582+random(6), 268+random(6));
    wait(100);
    ClickMouse(582+random(8), 268+random(8), true);
    wait(100);
    MoveMouse(626+random(6), 227+random(6));
    wait(100);
    ClickMouse(626+random(8), 227+random(8), false);
    MoveMouse(626+random(6), 268+random(6));
    wait(100);
    ClickMouse(626+random(8), 268+random(8), true);
    wait(100);
    MoveMouse(668+random(6), 227+random(6));
    wait(100);
    ClickMouse(668+random(8), 227+random(8), false);
    MoveMouse(668+random(6), 268+random(6));
    wait(100);
    ClickMouse(668+random(8), 268+random(8), true);
    wait(100);
    MoveMouse(712+random(6), 227+random(6));
    wait(100);
    ClickMouse(712+random(8), 227+random(8), false);
    MoveMouse(712+random(6), 268+random(6));
    wait(100);
    ClickMouse(712+random(8), 268+random(8), true);
    wait(100);
    
    MoveMouse(585+random(6), 264+random(6));
    wait(100);
    ClickMouse(585+random(8), 264+random(8), false);
    MoveMouse(582+random(6), 305+random(6));
    wait(100);
    ClickMouse(582+random(8), 305+random(8), true);
    wait(100);
    MoveMouse(626+random(6), 264+random(6));
    wait(100);
    ClickMouse(626+random(8), 264+random(8), false);
    MoveMouse(626+random(6), 305+random(6));
    wait(100);
    ClickMouse(626+random(8), 305+random(8), true);
    wait(100);
    MoveMouse(668+random(6), 264+random(6));
    wait(100);
    ClickMouse(668+random(8), 264+random(8), false);
    MoveMouse(668+random(6), 305+random(6));
    wait(100);
    ClickMouse(668+random(8), 305+random(8), true);
    wait(100);
    MoveMouse(712+random(6), 264+random(6));
    wait(100);
    ClickMouse(712+random(8), 264+random(8), false);
    MoveMouse(712+random(6), 305+random(6));
    wait(100);
    ClickMouse(712+random(8), 305+random(8), true);
    wait(100);
    
    MoveMouse(585+random(6), 300+random(6));
    wait(100);
    ClickMouse(585+random(8), 300+random(8), false);
    MoveMouse(582+random(6), 341+random(6));
    wait(100);
    ClickMouse(582+random(8), 341+random(8), true);
    wait(100);
    MoveMouse(626+random(6), 300+random(6));
    wait(100);
    ClickMouse(626+random(8), 300+random(8), false);
    MoveMouse(626+random(6), 341+random(6));
    wait(100);
    ClickMouse(626+random(8), 341+random(8), true);
    wait(100);
    MoveMouse(668+random(6), 300+random(6));
    wait(100);
    ClickMouse(668+random(8), 300+random(8), false);
    MoveMouse(668+random(6), 341+random(6));
    wait(100);
    ClickMouse(668+random(8), 341+random(8), true);
    wait(100);
    MoveMouse(712+random(6), 300+random(6));
    wait(100);
    ClickMouse(712+random(8), 300+random(8), false);
    MoveMouse(712+random(6), 341+random(6));
    wait(100);
    ClickMouse(712+random(8), 341+random(8), true);
    wait(100);
    
    MoveMouse(585+random(6), 336+random(6));
    wait(100);
    ClickMouse(585+random(8), 336+random(8), false);
    MoveMouse(582+random(6), 377+random(6));
    wait(100);
    ClickMouse(582+random(8), 377+random(8), true);
    wait(100);
    MoveMouse(626+random(6), 336+random(6));
    wait(100);
    ClickMouse(626+random(8), 336+random(8), false);
    MoveMouse(626+random(6), 377+random(6));
    wait(100);
    ClickMouse(626+random(8), 377+random(8), true);
    wait(100);
    MoveMouse(668+random(6), 336+random(6));
    wait(100);
    ClickMouse(668+random(8), 336+random(8), false);
    MoveMouse(668+random(6), 377+random(6));
    wait(100);
    ClickMouse(668+random(8), 377+random(8), true);
    wait(100);
    MoveMouse(712+random(6), 336+random(6));
    wait(100);
    ClickMouse(712+random(8), 336+random(8), false);
    MoveMouse(712+random(6), 377+random(6));
    wait(100);
    ClickMouse(712+random(8), 377+random(8), true);
    wait(100);
    
    MoveMouse(585+random(6), 373+random(6));
    wait(100);
    ClickMouse(585+random(8), 373+random(8), false);
    MoveMouse(582+random(6), 414+random(6));
    wait(100);
    ClickMouse(582+random(8), 414+random(8), true);
    wait(100);
    MoveMouse(626+random(6), 373+random(6));
    wait(100);
    ClickMouse(626+random(8), 373+random(8), false);
    MoveMouse(626+random(6), 414+random(6));
    wait(100);
    ClickMouse(626+random(8), 414+random(8), true);
    wait(100);
    MoveMouse(668+random(6), 373+random(6));
    wait(100);
    ClickMouse(668+random(8), 373+random(8), false);
    MoveMouse(668+random(6), 414+random(6));
    wait(100);
    ClickMouse(668+random(8), 414+random(8), true);
    wait(100);
    MoveMouse(712+random(6), 373+random(6));
    wait(100);
    ClickMouse(712+random(8), 373+random(8), false);
    MoveMouse(712+random(6), 414+random(6));
    wait(100);
    ClickMouse(712+random(8), 414+random(8), true);
    wait(100);
    
    MoveMouse(585+random(6), 408+random(6));
    wait(100);
    ClickMouse(585+random(8), 408+random(8), false);
    MoveMouse(582+random(6), 426+random(6));
    wait(100);
    ClickMouse(582+random(8), 426+random(8), true);
    wait(100);
    MoveMouse(626+random(6), 408+random(6));
    wait(100);
    ClickMouse(626+random(8), 408+random(8), false);
    MoveMouse(626+random(6), 426+random(6));
    wait(100);
    ClickMouse(626+random(8), 426+random(8), true);
    wait(100);
    MoveMouse(668+random(6), 408+random(6));
    wait(100);
    ClickMouse(668+random(8), 408+random(8), false);
    MoveMouse(668+random(6), 426+random(6));
    wait(100);
    ClickMouse(668+random(8), 426+random(8), true);
    wait(100);
    MoveMouse(712+random(6), 408+random(6));
    wait(100);
    ClickMouse(712+random(8), 408+random(8), false);
    MoveMouse(712+random(6), 426+random(6));
    wait(100);
    ClickMouse(712+random(8), 426+random(8), true);
    wait(100);
    
    MoveMouse(585+random(6), 446+random(6));
    wait(100);
    ClickMouse(585+random(8), 446+random(8), false);
    MoveMouse(582+random(6), 426+random(6));
    wait(100);
    ClickMouse(582+random(8), 426+random(8), true);
    wait(100);
    MoveMouse(626+random(6), 446+random(6));
    wait(100);
    ClickMouse(626+random(8), 446+random(8), false);
    MoveMouse(626+random(6), 426+random(6));
    wait(100);
    ClickMouse(626+random(8), 426+random(8), true);
    wait(100);
    MoveMouse(668+random(6), 446+random(6));
    wait(100);
    ClickMouse(668+random(8), 446+random(8), false);
    MoveMouse(668+random(6), 426+random(6));
    wait(100);
    ClickMouse(668+random(8), 426+random(8), true);
    wait(100);
    MoveMouse(712+random(6), 446+random(6));
    wait(100);
    end;
    
    begin
    cut; //this is what you had to put in the main loop
    end.
    Also, someone else said use MMouse and Mouse. They are correct. So for example to replace
    Code:
    MoveMouse(712+random(6), 446+random(6));
    you would do
    Code:
    MMouse(712,446,6,6);
    (sorry I'm not sure if that's right but I'm pretty sure it is.) Then to click you would do
    Code:
    Mouse(x,y,0,0,true);
    (Sorry not sure about this one either) If you want less code, then you can just use
    Code:
    Mouse(712,446,6,6,true);
    (Lol I'm not sure about this one either)

    Sorry if it was complicated.

  8. #8
    Join Date
    Mar 2007
    Location
    Burlington, VT
    Posts
    194
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thank you guys so much...all of ur help is very much appriciated! I've started reading the tutorials and some of the errors i've been making have kind of stupid. I'm looking forward to making some sweet programs in the future. Anyway, thanks again. h):

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. C++ Program help, please.
    By Macro_FTW in forum C/C++ Help and Tutorials
    Replies: 8
    Last Post: 02-24-2008, 04:53 AM
  2. Help with my program
    By Damion in forum OSR Help
    Replies: 11
    Last Post: 08-18-2007, 02:43 AM
  3. What program do you use the most?
    By Fearlesssss in forum News and General
    Replies: 12
    Last Post: 06-16-2007, 01:56 AM
  4. Replies: 5
    Last Post: 03-26-2007, 07:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •