SRL Archive - SRL Development and Help

bankScreen.clickButton(BANK_BUTTON_NOTE) problem


klopfie

2015-04-18 05:16:54

Hello, i started scripting and have some issues and dont find help in the dorum please help me

i want to withdraw all with a note, i've made it so:

procedure withDrawItems();
begin
bankScreen.clickButton(BANK_BUTTON_NOTE);
bankScreen.withdraw(1, WITHDRAW_AMOUNT_ALL,[''] );
end;

but he clicked the note button twice instead of once, can you help me ?

Thanks

The Mayor

2015-04-18 06:19:51

From: klopfie
Hello, i started scripting and have some issues and dont find help in the dorum please help me

i want to withdraw all with a note, i've made it so:

procedure withDrawItems();
begin
bankScreen.clickButton(BANK_BUTTON_NOTE);
bankScreen.withdraw(1, WITHDRAW_AMOUNT_ALL,[''] );
end;

but he clicked the note button twice instead of once, can you help me ?

Thanks


The parameter after the overText is an 'asNote' boolean, so you can go:


bankScreen.withdraw(1, WITHDRAW_AMOUNT_ALL,[''], True); // True means withdraw as note

It was clicking it twice because you made it click the first time, and it clicked it again because it thought it was withdrawing the item NOT as a note (because you didn't have it set to True), so it turned off the note button before it withdrew your item.

klopfie

2015-04-18 07:03:20

Thanks !!