Emulate quick bar click
Emulate quick bar click
Can I use Lua to grab a stuck from the inventory (emulate quick bar click)
Re: Emulate quick bar click
Find the stack in the player inventory (e.g. with find_item_stack) and then swap_stack the stack and the player cursor_stack.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: Emulate quick bar click
Thanks