Need help with CyUnit.doCommand

snarko

DLLer
Joined
Dec 9, 2003
Messages
1,512
Location
Sweden
I can't figure out how to use it. I thought it would be doCommand(int, int, int) but that doesn't work. Unlike most others that takes *type as an argument doCommand (and canDoCommand) takes an actual CommandType as argument... but what's an actual CommandType and how do I get it?
 
CommandTypes:

-1 = NO_COMMAND
0 = COMMAND_PROMOTION
1 = COMMAND_UPGRADE
2 = COMMAND_AUTOMATE
3 = COMMAND_WAKE
4 = COMMAND_CANCEL
5 = COMMAND_CANCEL_ALL
6 = COMMAND_STOP_AUTOMATION
7 = COMMAND_DELETE
8 = COMMAND_GIFT
9 = COMMAND_LOAD
10 = COMMAND_UNLOAD
11 = COMMAND_UNLOAD_ALL
12 = COMMAND_HOTKEY
13 = NUM_COMMAND_TYPES


Maybe?
 
Maybe what? Those numbers doesn't work. Neither does using strings.
 
Back
Top Bottom