showing character viewer by code

Is it possible -by code- to show the Character or Keyboard Viewer, both in Mac and Win32?
I searched in this forum and googled for it, but I could’nt find an answer.
The code would be activated clicking a canvas.
No plugins. Thanks.

Sorry. I dont know how my post went into this channel.