Results 1 to 2 of 2

Thread: How to click with mouse at it's current location.

  1. #1
    Join Date
    Aug 2007
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default How to click with mouse at it's current location.

    Hey wondering if somebody could fill in the missing line of code for me!

    CMouse(585, 227, 11, 11, False);
    Wait(250+random(250));
    MMouse(0, 82, 4, 2);

    Wait(250+random(250));
    TypeSend('2000' +chr(13));

    I just want it to click at the position that the mouse is at. I know I could do this by making variables and adding 82+random number to the y but is there a way I can do this in 1 line?

    Thanks! Boonce!


  2. #2
    Join Date
    Dec 2006
    Location
    .̿̂̔͋͗̎̆ͥ̍̒ͤ͂̾̌̀̅
    Posts
    3,012
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    SCAR Code:
    GetMousePos(x, y);
    Mouse(x, y, 0, 0, True);

    Tah-da!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Mouse doesn't click DTM
    By Richard in forum OSR Help
    Replies: 7
    Last Post: 02-10-2008, 10:07 PM
  2. Find mouse current position?
    By hlstriker in forum OSR Help
    Replies: 5
    Last Post: 12-19-2006, 05:33 AM

Posting Permissions

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