SRL Archive - Help

ChooseOption not working.


cycrosism

2012-07-08 02:36:00

ChooseOption is not working at all for me. I want to have my script right click on items and bank it but upon right clicking and calling the ChooseOption function, nothing happens. It just completely skips it and the script continues.

Also when I try to open a bank booth, it will right click the bank booth and pause, and then continue searching for bank booths, even though it right clicked on one. It isn't clicking any of the options, which leads me to believe ChooseOption isn't working.

I don't know if this is a problem with SRL or if it is a problem with me, but it isn't working, and yes everything is up to date.

YoHoJo

2012-07-08 02:45:35

Forgot the name, but right click something and call the function that reads the options and have it writeln what it reads.

cycrosism

2012-07-08 03:20:14

But with OpenBank it should select the option, no?

Nebula

2012-07-08 03:35:01

writeln(getchooseoptions);

add a 100-200msec wait before that.

cycrosism

2012-07-08 03:38:29

From: Nebula
writeln(getchooseoptions);


[Error] (360:27): Invalid number of parameters at line 359

Nebula

2012-07-08 03:51:06

From: cycrosism
[Error] (360:27): Invalid number of parameters at line 359

function GetChooseOptions(TextType: string): Array of TOptions;

Not sure what the TextType is..

cycrosism

2012-07-08 03:58:44

From: Nebula
function GetChooseOptions(TextType: string): Array of TOptions;

Not sure what the TextType is..


I tried finding the correct text but it didn't find it.

Also, does OpenBank work for anyone else? Could someone else try it at Varrock East bank

OpenBank('veb', true, true);

And tell me if it opens the bank?

YoHoJo

2012-07-08 04:02:35

Best to just ACA and make own, are you graphics/color settings all proper?
I have heard a few complaints about CooseOption being messed up, but not very many, and as far as I know most scripts are working just fine because otherwise there would be 9999 threads complaining about it.

cycrosism

2012-07-08 04:13:56

From: YoHoJo
Best to just ACA and make own, are you graphics/color settings all proper?
I have heard a few complaints about CooseOption being messed up, but not very many, and as far as I know most scripts are working just fine because otherwise there would be 9999 threads complaining about it.


Graphics settings at the moment are on:

Fixed screen size, on "Min" setup

YoHoJo

2012-07-08 04:14:59

Highest Brightness?

cycrosism

2012-07-08 04:20:52

Brightness is up all the way, settings currently are on this:


Le Jingle

2012-07-08 05:13:49


Program New;
{$i SRL/srl.simba}
Begin
SetupSRL;
ActivateClient;
If OpenBank('veb', true, false) Then
WriteLn('success');
End.

Worked; opened bank, with no error.


SRL Compiled in 0 msec
success
Successfully executed.

cycrosism

2012-07-08 07:26:06

Hmm I don't know how to fix it then, I just tried getting it to work on my laptop but SMART opens and the script doesn't detect the Runescape client and it just hits 3 minutes and stops.

I'll see if I can figure something out

Ashaman88

2012-07-08 10:44:39

writeln(getchooseoptions('all'));

Narcle

2012-07-08 11:02:44

GetChooseOptions(TextType: string)

TextType doesn't do anything… was left for compatibility reasons. So really u can just do '' in it.