Create a button "Box_btn".
Create a variable "Box_Var" and set it to 0.
Add a sprite called "Box" at the layout.
On mouse click "Box_btn" set "Box_Var" to 1.
On any mouse click and "Box_Var" = 1 create object "Box" at Mouse.X -- Mouse.Y
Set "Box_Var" to 0.