PDA

View Full Version : bankScreen.clickButton(BANK_BUTTON_NOTE) problem



klopfie
04-18-2015, 09:16 AM
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
04-18-2015, 10:19 AM
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
04-18-2015, 11:03 AM
Thanks !!

Swag Bag
07-05-2015, 10:59 PM
How do I use this with a DTM? I can't figure out how to withdraw a noted item using a DTM, or am I forced to do it from a certain slot?

Turpinator
07-06-2015, 02:01 AM
function TRSBankScreen.withdraw(dtm, amount: integer; asNote: boolean = false; toFamiliar: boolean = false): boolean; overload;