Results 1 to 6 of 6

Thread: Random clicking problem

  1. #1
    Join Date
    Nov 2007
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Random clicking problem

    Part of my script goes basically like this with all the other set stuff before it. It compiles fine, but after the first click, if I go to a different page, it wont go back on the cat page like it did when the script started on a different page. When I start it up, it clicks the cat link page if doesn't see the cat page's logo, but after that, if I click off the cat page to see if it will go back on it, it either clicks in the way topleft or way bottomright, and I used alt-tab to check the mouse position after that and it was negative and extremely not right.
    (Using cats as an example, but not really my script)

    SCAR Code:
    repeat

    if(not(FindBitmapIn(cats_logo, x, y, 0, 0, max_x, max_y)))then
    begin
    if(FindBitmapSpiral(cat_link, a_x, a_y, 0, 0, max_x, max_y))then
    begin
    ClickMouse(a_x, a_y, true);
    wait(2000);
    end;
    end;

    until(false);

  2. #2
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Make sure you set the client window using the crosshair.

  3. #3
    Join Date
    Nov 2007
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by itschris917 View Post
    Make sure you set the client window using the crosshair.
    I do every time and even have an ActivateWindow function at the beginning followed by a small wait.
    It seems like it unfocuses the window, but the y values after it tries to click again are outrageous (like 131,000 while x is relatively small in the hundreds)

  4. #4
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    That was an insanely pointless post Acupressure... Are you using IE by any chance?

  5. #5
    Join Date
    Nov 2007
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No, never. Firefox all the way.

  6. #6
    Join Date
    Nov 2007
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Not much else going on. max_x and max_y are just the widths and heights of the client window set by GetClientDimensions; x, y, a_x, and a_y are just empty x/y variables.
    I know the problem is it loses focus but I can't see how or why it does.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Clicking a small space problem
    By r4z0rlike in forum OSR Help
    Replies: 4
    Last Post: 01-25-2008, 09:30 PM
  2. Clicking order problem
    By r4z0rlike in forum OSR Help
    Replies: 3
    Last Post: 01-22-2008, 03:39 PM
  3. random clicking
    By Venom666 in forum OSR Help
    Replies: 8
    Last Post: 07-23-2007, 06:14 PM
  4. varrokyewcutter colorfinding and clicking problem
    By macromacro123 in forum OSR Help
    Replies: 4
    Last Post: 02-18-2007, 10:11 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
  •