Fsuipc master battery alternator set

broken image

Private void Form1_Load(object sender, EventArgs e) Private Offset _masterBattery = new Offset(0x281C) Ĭase 0: button1.BackColor = Color.Empty break Ĭase 1: button1.BackColor = Color.LightGreen break My button is working but I cant find why or what makes the value switch back to its previous state. But as soon as it reads the value it goes back to one. For example assume that the battery is on and value is 1, when I turn it of it gets 0. When I debug the values I see that my toggle button is working and writing the value as I want but when it goes back to reading the value the master battery value stays in its previous state. My problem is the master battery keeps its state. The objective here is to toggle the master battery as you see. I made a temporary code to test the result. but now I have a problem which I could not find a solution. Evertyhing goes well, Thanks To Pete and Paul. I am making a software to integrate FSX via FSUIPC.

broken image