Hi Pete,
Thank you for the reply. I may have misled you in what I wrote so I apologize. I only need the heading bug to slew to the current compass heading when I "press" a pushbutton (the pushbutton portion of the rotary encoder used to "rotate" my heading bug); however, I do not need to enable the AP master or HDG mode on the AP.
However, your response really demonstates the power of Lua so I need to get off my duff and figure it out. Which I will do. While I am sure you have heard this a thousand times, I want to extend my true apprecaition for FSUIPC and your effort. This morning, I was flying (for real) with a student as we were practicing an ILS and a VOR-A approach. It was a beautiful morning CAVU, light winds, and the student did a great job. We pushed the airplane back into the hangar and my student left. Then I turned on my "sim"...I flew multiple appraoches to several airports to minimums. I had just as much fun flying my sim as I did my airplane. This would have not been possible without FSUIPC, your effort, and countless others. My hat is "off" to you as much as it is to Clyde Cessna. Thank you.