Results 1 to 4 of 4

Thread: Mouse click

  1. #1
    Join Date
    Feb 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Mouse click

    I can't get MouseClick2 to click and I think it's because I'm using a wrong parameter.
    I've tried MouseClick2(0/1), MouseClick2(true/false) and MouseClick2(mouse_left/right).
    Also I tried using the Mouse function with the same parameters and it moves the mouse but it doesn't click.


    procedure findBank;
    var x, y, bank: Integer;
    begin
    bank := DTMFromString('mbQAAAHicY2VgYFBgZGCIB+IGIE4D4kYgXg 4UXwbEe4H4GBA/BeLMeDeGvzeVGd6dVYTT2AAjFgwGALo0DmM=');


    if FindDTM( bank, x, y, MSX1, MSY1, MSX2, MSY2)
    then
    begin
    Writeln('found bank');
    FreeDTM(bank);
    Wait(400);
    Mouse(x, y, 5, 5, mouse_left);
    end else
    begin
    Writeln('Have not found bank yet');
    Wait(1000);
    findBank;
    end;
    end;

    Just need to know what to use as a parameter to make it click.

  2. #2
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Mouse(x,y,5,5,True);

    Should work.

  3. #3
    Join Date
    Feb 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Shay View Post
    Mouse(x,y,5,5,True);

    Should work.
    It places the mouse at the right position but it doesn't click.

  4. #4
    Join Date
    Feb 2012
    Location
    Wonderland
    Posts
    1,988
    Mentioned
    41 Post(s)
    Quoted
    272 Post(s)

    Default

    Simba Code:
    Mouse(x,y,5,5,True);
    should work.. +1

    Could also try;
    Simba Code:
    MMouse(x, y, 5, 5);
    ClickMouse2(Mouse_Left);
    *some uptext confirmation wouldn't hurt either

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
  •