SRL Archive - Help

quick queston, is there a interface close all?


rj

2013-02-01 19:51:26

Sometimes in my powerminer, it clicks a extra rock by accident and i get the message ' your inventory is full ' so then the powerminer tries to use the hotkey to drop the ores, and well it does not work because the interface is at the bottom :) so is there a function to fix this?

riwu

2013-02-01 19:55:40

FindNPCChatText() / TypeByte(VK_Space)

rj

2013-02-01 19:59:46

From: riwu
FindNPCChatText() / TypeByte(VK_Space)


So would it be like

FindNPCChatText('Your inventory is too full');

Chris!

2013-02-01 21:04:48

From: rjj95
So would it be like

FindNPCChatText('Your inventory is too full');


If that's the text it displays, then yes.

Also, as Riwu stated, you could just use:

TypeByte(VK_SPACE);

Flight

2013-02-01 21:26:39

Ya know, SRL already has functions to handle things like this. Try using "ClickToContinue;", it will recognize if you have the 'green arrow' in your chat box, if so it will press the space bar once. Just put it wherever you have your mining loop that checks your inventory.

rj

2013-02-01 23:06:22

thanks added no more problems with this