UseItem

Function:

 * boolean useItem(item, fromLocation, openNewWindow)

Parameters:

 * item - can be item id/name
 * [optional] fromLocation - can be container name, like "Yellow Backpack", "Depot Chest", or strings: "bps" (use item only from bps), "hotkey" (use item only using hotkey), "any"; default: "any"
 * [optional] openNewWindow - Should bot open item it is using in new window? (It is internal CoreBot parameter, don't use it. If You want to open a backpack in new window please use openItem function instead.)

Return value:

 * This function return an boolean indicating if items were succesfuly used. Returns true if success, false if failure.

Description:

 * This is the main function avaiable to use items. It is capable of using items by right-clicking on them in a opened backpack, or by finding if given item is setted on hotkey and using it by hotkey.