That sounds actually very fantastic, especially for my applications I intend on writing.
If (og.Flags [B]&[/B] Flags.OutGaugeFlags.OG_PITSPEED) > 0 Then
MsgBox("ON")
Else
MsgBox("OFF")
End If
If (og.Flags [B]&[/B] Flags.OutGaugeFlags.OG_PITSPEED) = True Then
MsgBox("ON")
Else
MsgBox("OFF")
End If
If (og.Flags [B]And[/B] Flags.OutGaugeFlags.OG_PITSPEED) > 0 Then
MsgBox("ON")
Else
MsgBox("OFF")
End If
If (og.Flags [B]And[/B] Flags.OutGaugeFlags.OG_PITSPEED) = True Then
MsgBox("ON")
Else
MsgBox("OFF")
End If
If (og.Flags [B]&[/B] Flags.OutGaugeFlags.OG_PITSPEED) = Flags.OutGaugeFlags.OG_PITSPEED Then
MsgBox("ON")
Else
MsgBox("OFF")
End If
InSim.Send_BTN_CreateButton("^7Drift Angle: " + Convert.ToInt16((MCI.Info[i].Heading * (180f / 16384f)) - (MCI.Info[i].Direction * (180f / 16384f))), Flags.ButtonStyles.ISB_DARK, 5, 30, 0, 64, 171, (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID), 2, false);
My.Computer.Keyboard.SendKeys("i")
Private Declare Sub keybd_event Lib "user32.dll" _
(ByVal bVk As Byte, ByVal bScan As Byte, _
ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Const KEYEVENTF_KEYUP = &H2
Const VK_I = &H49
keybd_event(VK_I, 0, KEYEVENTF_KEYUP, 0)
System.Threading.Thread.Sleep(100)
keybd_event(VK_I, 0, 0, 0)
System.Threading.Thread.Sleep(100)