Just wondering how do I get the handle proc of the Micromacro window that is executing said code? Trying to use process.terminate(handle proc) to close MM when the ArcheAge window it is attached to closes.
Failed to run init function, err code: 7 (Runtime error)
aatest.lua:38: bad argument #1 to 'terminate' (userdata expected, got number)
stack traceback:
[C]: in field 'terminate'
aatest.lua:38: in function <aatest.lua:31>
Probably some simple function that I havn't seen ^.^
Failed to run init function, err code: 7 (Runtime error)
aatest.lua:40: bad argument #1 to 'terminate' (userdata expected, got nil)
stack traceback:
[C]: in field 'terminate'
aatest.lua:40: in function <aatest.lua:31>
Failed to run init function, err code: 7 (Runtime error)
aatest.lua:39: attempt to index a nil value (global 'handle')
stack traceback:
aatest.lua:39: in function <aatest.lua:31>