the special character "cmd"

Mac OSX specific forum
Offin
User
User
Posts: 34
Joined: Mon May 04, 2009 10:53 am
Location: France

the special character "cmd"

Post by Offin »

Could you please tell me how to display the special character for "cmd" ?
I mean the character which is displayed on the cmd key of the MacBook computer.
I would like to put it in the menu (SetMenuItemText()).
WilliamL
Addict
Addict
Posts: 1252
Joined: Mon Aug 04, 2008 10:56 pm
Location: Seattle, USA

Re: the special character "cmd"

Post by WilliamL »

That's a question I've asked myself. I googled it and came up with this...

http://forums.macrumors.com/showthread.php?t=189876 (wingdings and type z - works for me)

I also came across this tidbit but I haven't tried it.

http://ls.berkeley.edu/mail/magnet/2004/0473.html

⌘⌘⌘⌘ < copying it works too :)

( = alt+shift+k)
MacBook Pro-M1 (2021), Sequoia 15.4, PB 6.20
Niffo
Enthusiast
Enthusiast
Posts: 504
Joined: Tue Jan 31, 2006 9:43 am
Location: France

Re: the special character "cmd"

Post by Niffo »

You can obtain these characters with Chr(Val("$2318")) and Chr(Val("$F8FF"))
(do not forget to be in Unicode mode)
Niffo
Offin
User
User
Posts: 34
Joined: Mon May 04, 2009 10:53 am
Location: France

Re: the special character "cmd"

Post by Offin »

Works great.
Thanks Niffo.
Post Reply