Results 1 to 4 of 4

Thread: MOUSE_LEFT and Error

  1. #1
    Join Date
    Sep 2014
    Posts
    31
    Mentioned
    1 Post(s)
    Quoted
    11 Post(s)

    Unhappy MOUSE_LEFT and Error

    I know this is very simple but I ran into a couple problems.

    First one is MOUSE_LEFT, I can get it to go to whatever location but unless it's a mouseBox it wont click for some reason.

    mouse(746, 93, MOUSE_LEFT); = Move to (746, 93) and does not click?

    My second problem was with a mousebox, when I target my client I figured it would stay in the same space but the cords changes sometimes so it will not go to that point anymore, this only happens on the main screen. It also moves to the boxes I put in to click but this comes up in the debug:

    -- ERROR: **gaussian failed**
    gaussBoxPoint invalid (x cords, y cords)

    I was just trying to make a simple "Get Correct Settings" script to test the waters while I was reading but those two issues bothered me and it seemed like I put it in correctly, especially since it started the script in the first place.

  2. #2
    Join Date
    Aug 2014
    Location
    Australia
    Posts
    932
    Mentioned
    53 Post(s)
    Quoted
    495 Post(s)

    Default

    Can you post a code snippet in [simba] tags? It's easier to see what you're doing and offer help with visible code.



    New to scripting? Procedures & Functions for Beginners
    Do you use your computer at night? Just get f.lux

  3. #3
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by Thisaintmeyo View Post
    I know this is very simple but I ran into a couple problems.

    First one is MOUSE_LEFT, I can get it to go to whatever location but unless it's a mouseBox it wont click for some reason.

    mouse(746, 93, MOUSE_LEFT); = Move to (746, 93) and does not click?

    My second problem was with a mousebox, when I target my client I figured it would stay in the same space but the cords changes sometimes so it will not go to that point anymore, this only happens on the main screen. It also moves to the boxes I put in to click but this comes up in the debug:

    -- ERROR: **gaussian failed**
    gaussBoxPoint invalid (x cords, y cords)

    I was just trying to make a simple "Get Correct Settings" script to test the waters while I was reading but those two issues bothered me and it seemed like I put it in correctly, especially since it started the script in the first place.
    mouse(746, 93, MOUSE_LEFT)
    this would invoke the overload: procedure mouse(x, y, randX, randY, button: integer = MOUSE_MOVE); overload;
    so u will just be moving to Point(746 + Random(1), 93)
    You have to call Mouse(Point(746, 93), MOUSE_LEFT) for it to work as u intended.

    For your second problem try debugging the argument you are passing to mousebox, you are probably passing some invalid box coordinates.

  4. #4
    Join Date
    Sep 2014
    Posts
    31
    Mentioned
    1 Post(s)
    Quoted
    11 Post(s)

    Default

    Thank you, I was reading a tutorial that mentioned the mouse(cords, mouseaction) would work but adding point and closing off the cords worked. After that there where no errors. It was mostly redundant as the screen has to be 800x600 but if I log in first and use colors to find the settings it might work out better.

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
  •