script help?

Discussion in 'Code Snippets and Tutorials' started by Heya_old, Aug 16, 2008.

  1. Heya_old

    Heya_old Level IV

    Joined:
    Mar 31, 2008
    Messages:
    928
    Likes Received:
    46
    Thise is my first script i've ever written from scratch. Its a hot dog hero script. I'm trying to use the holdmouse() and releasemouse() functions, but i'm having some problems. It doesn't click at that location, hold, and move to the releasemouse location. it just holds in that same location. Heres what i've written so far...

    Code (Text):
    1. program hotdoghero;
    2. begin
    3. clickmouse(113,427,true);
    4. wait(200);
    5. clickmouse(308,321,true);
    6. wait(400)
    7. holdmouse(363,259,true);
    8. releasemouse(591,248,true);
    9. end.
    any help with getting it to work? thanks in advanced :)
     
  2. chelsea1

    chelsea1 Level IV

    Joined:
    Nov 26, 2006
    Messages:
    2,538
    Likes Received:
    31
    Location:
    London
    program hotdoghero;
    begin
    clickmouse(113,427,true);
    wait(200);
    clickmouse(308,321,true);
    wait(400);
    movemouse(363,259);
    wait(100);
    holdmouse(363,259,true);
    movemouse(591,248);
    releasemouse(591,248,true);
    end.

    there, that should work
     
    Heya_old likes this.
  3. Heya_old

    Heya_old Level IV

    Joined:
    Mar 31, 2008
    Messages:
    928
    Likes Received:
    46
    thanks chelsea :)

    do you know how to make an aroow hold? i haven't been able to find that command yet...
     
  4. tharoux

    tharoux Level IV

    Joined:
    Dec 30, 2006
    Messages:
    2,733
    Likes Received:
    126
    Location:
    In front of my PC, Montreal
    Try using keydown and keyup. But be sure to put a wait() in between
     
  5. Heya_old

    Heya_old Level IV

    Joined:
    Mar 31, 2008
    Messages:
    928
    Likes Received:
    46
    thanks, but i found a better way :)

    i'm using:
    Code (Text):
    1. SendArrowWait(x,y);
     
    Icegoten likes this.