it works and good, remember is client side.
addEventHandler ("onClientClick",getRootElement(),
function (button,state,absoluteX,absoluteY,posX,posY,posZ,entity)
outputChatBox ("Click is working.")
createObject (1575,posX,posY,posZ)
end)
btw don't use the cursor when you press console button because it doesn't works that way, use other like admin panel one.