afirmation,
I have looked at your code. A few things:
1.) Your commands don't work because of the macro string
Do this instead:
Note: I have never used "Convert.ToChar" in this way so you'll have to test it out. I could also recommend using the "Microsoft.VisualBasic.Strings.Chr()" function, but you need to import the library "Microsoft.VisualBasic", something C#'s seem reluctant to IMHO. I personally like the ability to use functions defined in all the .NET libraries at any time, so I leave it up to you to decide.
string cmd = Convert.ToChar(3) + Convert.ToChar(3) + Convert.ToChar(95) + "MYLOGIN" + Convert.ToChar(32);
Produces: "esc""esc"_MYLOGIN"crlf"
AcadToolbarItem item = toolbar.AddToolbarButton(toolbar.Count + 1, "Log In", "", cmd, Missing.Value);
2.) Your debug configuration is ok. But when you start debugging, you need to Netload your dll to have access to your commands, and allow the debugger to attach to it. If you follow the link from my previous post, you can see my solution to this. It may not be the best, but it works, unless you like to netload of course. I would like to hear others' solutions to debugging as well.
3.) your use of the "ComRegisterFunctionAttribute" is the first I've seen in this configuration. It looks like this allows you to run regsvr32 to run this section of code to add the autoload info into the registry? In my opinion, you should only register your add-in to load from the registry when you are in the testing phase of development and not while still developing. Debugging may be difficult. It's my opinion that your installer should add they required keys to the registry when you deploy or again, if you want to test autoloading.
3.) Finally, this one is for all. I generally believe that putting anything in the AutoCAD directory is bad for business. In fact I remember reading something from AutoCAD stating that this is not recommended. I would like to hear everyone's opinion on this of course, both for and against, as I have not yet ruled it out in some situations.
afirmation, let us know if you can get it working
C