SRL Archive - RS3 Help

MOUSE_LEFT and Error


Thisaintmeyo

2014-09-27 07:34:00

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

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.

Incurable

2014-09-27 07:53:14

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

riwu

2014-09-27 08:00:25

From: Thisaintmeyo
I know this is very simple but I ran into a couple problems. :duh:

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.

Thisaintmeyo

2014-09-27 08:26:12

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.