RuneDragon
05-29-2012, 12:17 AM
Hi.
In my code, i have
WithdrawEx(4,1,9,[]);
I want to take 9 items. But at times, it could not find the Withdraw-9 in the Options and click the Withdraw-X and type in number 9.
This happens at times. I think this is caused by RS changing text font at times, not sure if they do this to find bots.
I tried to wait for the option
repeat
Wait(10);
Writeln('Waiting for Option');
until WaitOptionMultiEx(['Withdraw-' + IntToStr(Amount), 'w-' + IntToStr(Amount)], 'All', Nothing, 300);
Even waiting is not helping.
Is there anyway i can blind click the "Withdraw-9" option assuming it is previously entered and working ?
Something like
if (WaitOptionMultiEx(['Withdraw-' + IntToStr(Amount), 'w-' + IntToStr(Amount)], 'All', Nothing, 300)) then
begin
Result := ChooseOptionMulti(['Withdraw-' + IntToStr(Amount), 'w-' + IntToStr(Amount)]);
end else begin
// code to blind click Withdraw-9, it is 4th item in option menu. Above Withdraw-X
end;
Thanks,
Santhosh
In my code, i have
WithdrawEx(4,1,9,[]);
I want to take 9 items. But at times, it could not find the Withdraw-9 in the Options and click the Withdraw-X and type in number 9.
This happens at times. I think this is caused by RS changing text font at times, not sure if they do this to find bots.
I tried to wait for the option
repeat
Wait(10);
Writeln('Waiting for Option');
until WaitOptionMultiEx(['Withdraw-' + IntToStr(Amount), 'w-' + IntToStr(Amount)], 'All', Nothing, 300);
Even waiting is not helping.
Is there anyway i can blind click the "Withdraw-9" option assuming it is previously entered and working ?
Something like
if (WaitOptionMultiEx(['Withdraw-' + IntToStr(Amount), 'w-' + IntToStr(Amount)], 'All', Nothing, 300)) then
begin
Result := ChooseOptionMulti(['Withdraw-' + IntToStr(Amount), 'w-' + IntToStr(Amount)]);
end else begin
// code to blind click Withdraw-9, it is 4th item in option menu. Above Withdraw-X
end;
Thanks,
Santhosh