Mute
06-30-2011, 02:44 AM
Hi,
It's been a long time.
I started working (again) on a color-based script, after all this time I still don't know the first thing about reflection (and I'm testing all of these random snippets on an outdated version of RuneScape, so I don't think reflection would work anyways, right?)
So anywho, I finally managed to put something together that compiles and runs, however, I am running into a problem with ChooseOption('')..
Here's the code:
procedure BuyItems;
begin
bs := 20;
repeat
bu := bu+10;
MoveMouse(x,y);
Wait(1000);
ClickMouse2(false);
Wait(1000);
ChooseOption('uy 10');
Wait(1000);
until(bu = bs);
end;
Please excuse the mess.
The problem I am getting is when I run the script, it moves to the item, right clicks it, but it just leaves the right-click menu open..
It's been a long time.
I started working (again) on a color-based script, after all this time I still don't know the first thing about reflection (and I'm testing all of these random snippets on an outdated version of RuneScape, so I don't think reflection would work anyways, right?)
So anywho, I finally managed to put something together that compiles and runs, however, I am running into a problem with ChooseOption('')..
Here's the code:
procedure BuyItems;
begin
bs := 20;
repeat
bu := bu+10;
MoveMouse(x,y);
Wait(1000);
ClickMouse2(false);
Wait(1000);
ChooseOption('uy 10');
Wait(1000);
until(bu = bs);
end;
Please excuse the mess.
The problem I am getting is when I run the script, it moves to the item, right clicks it, but it just leaves the right-click menu open..