Jump to content
The simFlight Network Forums

wesrater

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by wesrater

  1. This is getting a tad bit too confusing for me. Maybe you could just write me a small code that would change the fuel of a selected tank please? Thanks! :) -Wes
  2. Here is what I have now and it doesn't work... Could someone help me out a bit and change something around, so it works (And yes, the timer is enabled, the interval is 1)(nothing is underlined blue, so the code is correct, but it doesn't change the fuel (and the fuel tank is set to 1, which is all tanks))? Imports FSUIPC Public Class Form1 Private Const AppTitle As String = "FSUIPCClientExample_VB" Dim Fuel As Offset(Of Integer) = New FSUIPC.Offset(Of Integer)(&HAF4) Dim Tank As Offset(Of Integer) = New FSUIPC.Offset(Of Integer)(&HAF8) Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Tank.Value = 1 End Sub Private Sub button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button2.Click Try FSUIPCConnection.Open() MsgBox("Connected :)") Catch ex As Exception MessageBox.Show(ex.Message, AppTitle, MessageBoxButtons.OK, MessageBoxIcon.Error) End Try End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Fuel.Value = TrackBar1.Value / 256 End Sub Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick TextBox1.Text = TrackBar1.Value / 256 End Sub End Class
  3. Thank you very much. I've downloaded it and am trying to figure it out now :p
  4. Could someone give me a source code example on a fuel manager utilizing fsuipc in visual basic (vb6, 2005, 2008, it really doesn't matter). Thanks! Wes
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.