SRL Archive - OSR Help

Simba won't rightclick


SomeGuyFromHere

2013-01-08 11:50:31

Hey guys,

plain and simple, I can't get my script to right click anything.
Tried Mouse(x, y, 0, 0, 2) which moves the mouse to the right spot but doesn't open the options menu, and also ClickMouse(x, y, mouse_Right) which just plain doesn't do anything. Got any advice? :garfield:

Olly

2013-01-08 11:53:03

clickmouse2(mouse_right) ?

The Killer

2013-01-08 11:54:14

With clickmouse, have you already moved the mouse to the cords? and with mouse it works better as Mouse(x, y, 1, 1, Mouse_Right); :P

Gucci

2013-01-08 21:09:21

Try Mouse(x, y, 0, 0, False)

Sin

2013-01-08 21:12:20

Mouse(,,,,mouse_Right);

Sjoe

2013-01-09 19:24:15

yeah it's Mouse(x, y, rx, ry, mouse_right) instead of Mouse(x, y, rx, ry, 2)

Nebula

2013-01-09 20:23:02

Mouse_Right = 0

SomeGuyFromHere

2013-01-10 10:56:07

From: Sjoekeloe
yeah it's Mouse(x, y, rx, ry, mouse_right) instead of Mouse(x, y, rx, ry, 2)


Domo arigato, that did the trick. Strangely Clickmouse worked too all of a sudden… ghost in the machine it is I tell ya :D

Sin

2013-01-10 12:47:14

Don't use ClickMouse, ClickMouse2 is the more human version.

weequ

2013-01-10 13:13:05

Not recommended to use ClickMouse for rs since it releases mouse button instantly etc (detectable). It performs the click at (X, Y) but doesn't move your cursor there. So in order to use it you need to use MoveMouse(X, Y) first.

SomeGuyFromHere

2013-01-10 13:22:08

Again thanks for the tip about clickmouse, heard it before but just realised my other script still used it in one line. Stuff is fixed now :spot:

Sjoe

2013-01-10 14:51:04

From: weequ
Not recommended to use ClickMouse for rs since it releases mouse button instantly etc (detectable). It performs the click at (X, Y) but doesn't move your cursor there. So in order to use it you need to use MoveMouse(X, Y) first.


Not MoveMouse but MMouse :p

Syntax

2013-01-11 08:35:31

Also make sure you declare the SRL include:
{$define srl5}
{$i srl/srl.simba}