Originally Posted by
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:
Code:
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:
Simba Code:
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.