SRL Archive - Help

Right Click


Deadly Serious

2012-01-29 03:25:41

I'm having trouble with my script, it right clicks the runes but then it drags the mouse away from any of the options.

if FindDTM(Runes, x, y, 35, 85, 480, 295) then
begin
WriteLn('Withdrawing the Runes');
MMouse(X, Y, 3, 3);
ClickMouse2(False);
Wait(300+random(500));
Waitoption('All', 3000);
end;

It's weird this works though:

begin
Banker := DTMFromString('mwQAAAHic42RgYPBiYmCwBuJIILYB4ggmiJgnEFtBxdUYGRikoNgcis2gfFVGiHxvexODo709g4ujI0NtfgIYt5algcUCnE0ZglzNGPiB9hHCjERgOAAAcvEOGA==');
if FindDTMRotated(Banker, x, y, 0, 0, 700, 500, -Pi, Pi, Pi/30, aFound) then
begin
WriteLn('Banking');
MMouse(X, Y, 3, 3);
ClickMouse2(False);
Waitoption('uickly', 3000);
end;

I then changed it to exactly like that but changed the waitoption('X', 3000) and it still doesn't work

RISK

2012-01-29 03:26:59

Have you tried making sure SRL is completely updated?

Deadly Serious

2012-01-29 03:28:49

From: RISK
Have you tried making sure SRL is completely updated?


Yup, I've updated it all completely. I haven't scripted in a few days and I come back to my script being non functional :(

Spiker

2012-01-29 03:30:25

If it's dragging the mouse to the top left corner, it sounds like it can't recognize the option 'All', try making it 'll' or 'draw-All' or some other variant.

Good Luck

RISK

2012-01-29 03:30:31

Try this:
if FindDTM(Runes, x, y, 35, 85, 480, 295) then
begin
WriteLn('Withdrawing the Runes');
MMouse(X, Y, 3, 3);
ClickMouse2(False);
WaitOptionMulti(['w Al', 'All'], 3000);
end;

Rally

2012-01-29 03:31:07

Seems like it aint finding the option.

Try this and see if it works
 Waitoption('ll', 3000);

Deadly Serious

2012-01-29 03:36:14

From: Rally
Seems like it aint finding the option.

Try this and see if it works
 Waitoption('ll', 3000);


Already tried that and "Chooseoption"

From: RISK
Try this:
if FindDTM(Runes, x, y, 35, 85, 480, 295) then
begin
WriteLn('Withdrawing the Runes');
MMouse(X, Y, 3, 3);
ClickMouse2(False);
WaitOptionMulti(['w Al', 'All'], 3000);
end;

Didn't see this I'll try it out but I've used various options and it didn't work.

RISK

2012-01-29 03:36:55

Can you try and update your Simba, please? I think your font files might be out of date.

E: I can't remember if Simba updates with the font files or not. But it is worth a shot. :x

Deadly Serious

2012-01-29 17:48:11

From: RISK
Can you try and update your Simba, please? I think your font files might be out of date.

E: I can't remember if Simba updates with the font files or not. But it is worth a shot. :x


I've fully updated it 3 times.

Edit: It was working 3 days ago.
Edit: Nothing has worked :(
Bump for the cause.

Er1k

2012-01-29 21:14:02

If you think it's not finding the option, try add the debug that Cohen suggested in this to see what GetChooseOptions return.
http://villavu.com/forum/showpost.php?p=897772&postcount=8

A quickfix to your problem is to use GetMousePos + Mouse() to the correct relative offset. 20 y pixels for each option is what I remember

Deadly Serious

2012-01-30 19:37:41

From: nosaj.421
If you think it's not finding the option, try add the debug that Cohen suggested in this to see what GetChooseOptions return.
http://villavu.com/forum/showpost.php?p=897772&postcount=8

A quickfix to your problem is to use GetMousePos + Mouse() to the correct relative offset. 20 y pixels for each option is what I remember


I tried that and I choose the options it displayed when right clicking but it still wouldn't work. I then tried making a mouse box and it was just bugging out, after 4 seconds of bugging out (Scrolling up and down the options in a weird manner it finally rested upon the mousebox I had choosen but it didn't click.
There might be something wrong with my simba I'm just going to reinstall it.