Log in

View Full Version : Right Click



Deadly Serious
01-29-2012, 08:25 AM
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('mwQAAAHic42RgYPBiYmCwBuJIILYB4ggmiJ gnEFtBxdUYGRikoNgcis2gfFVGiHxvexODo709g4ujI0NtfgIY t5algcUCnE0ZglzNGPiB9hHCjERgOAAAcvEOGA==');
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
01-29-2012, 08:26 AM
Have you tried making sure SRL is completely updated?

Deadly Serious
01-29-2012, 08:28 AM
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
01-29-2012, 08:30 AM
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
01-29-2012, 08:30 AM
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
01-29-2012, 08:31 AM
Seems like it aint finding the option.

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

Deadly Serious
01-29-2012, 08:36 AM
Seems like it aint finding the option.

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

Already tried that and "Chooseoption"


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
01-29-2012, 08:36 AM
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
01-29-2012, 10:48 PM
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
01-30-2012, 02:14 AM
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
01-31-2012, 12:37 AM
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.