SRL Archive - OSR Help

How do I send a key press to the game?


Chen Monopoly

2012-08-27 16:33:14

Like.. if I wanted to switch tab using F4, how do I press F4 to get it to the magic tab?

x[Warrior]x3500

2012-08-27 16:34:43

keydown(vk_f4);
wait(30+random(40));
keyup(vk_f4);

Sin

2012-08-27 16:35:57

Or "TypeByte(VK_F4);"

Chen Monopoly

2012-08-27 17:18:08

Thanks for the help.

Olly

2012-08-27 18:24:35

function FTab(Tab: Integer):

Chen Monopoly

2012-08-28 01:11:38

Thanks for the help guys!
I have another small question, I don't think it's worth making an extra thread for.

How do I make the bank withdraw all items instead of just 28 items?

WithdrawEx(BankSlotX, BankSlotY, 28, []);

is what I'm currently using.

Sin

2012-08-28 01:18:52

WithdrawEx(BankSlotX, BankSlotY, -1, []);

iirc.

x[Warrior]x3500

2012-08-28 01:22:49

^ is for withdraw all items except for last 1

using 0 is for regular withdraw all