Log in

View Full Version : [Bug] ChooseOption not working.



cycrosism
07-08-2012, 06:36 AM
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
07-08-2012, 06:45 AM
Forgot the name, but right click something and call the function that reads the options and have it writeln what it reads.

cycrosism
07-08-2012, 07:20 AM
But with OpenBank it should select the option, no?

Nebula
07-08-2012, 07:35 AM
writeln(getchooseoptions);

add a 100-200msec wait before that.

cycrosism
07-08-2012, 07:38 AM
writeln(getchooseoptions);

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

Nebula
07-08-2012, 07:51 AM
[Error] (360:27): Invalid number of parameters at line 359
function GetChooseOptions(TextType: string): Array of TOptions;

Not sure what the TextType is..

cycrosism
07-08-2012, 07:58 AM
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
07-08-2012, 08:02 AM
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
07-08-2012, 08:13 AM
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
07-08-2012, 08:14 AM
Highest Brightness?

cycrosism
07-08-2012, 08:20 AM
Brightness is up all the way, settings currently are on this:

http://i.imgur.com/GFccM.png

Le Jingle
07-08-2012, 09:13 AM
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
07-08-2012, 11:26 AM
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
07-08-2012, 02:44 PM
writeln(getchooseoptions('all'));

Narcle
07-08-2012, 03:02 PM
GetChooseOptions(TextType: string)

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