KeysKeys =
{
	PlanePickleOn							= 350,
	PlanePickleOff							= 351,
	PlaneFireOn								= 84,
	PlaneFireOff							= 85,
	PlaneGear								= 68,
	PlaneFonar								= 71,
	PlaneSalvoOnOff							= 81,
	PlaneChangeWeapon						= 101,
	PlaneChangeWaypoint						= 102,
	PlaneZoomIn								= 103,
	PlaneZoomOut							= 104,
	PlaneBrightnessILS						= 156,
	PlaneLightsOnOff						= 175,
	PlaneDropSnarOnce						= 176,
	PlaneHeadLightOnOff						= 328,
	PlaneModeNAV							= 105,
	PlaneModeBVR							= 106,
	PlaneModeVS								= 107,
	PlaneModeBore							= 108,
	PlaneModeHelmet							= 109,
	PlaneModeFI0							= 110,
	PlaneModeGround							= 111,


	SwitchMasterArm							= 283,
	PlanePickleOn							= 350,
	PlanePickleOff							= 351,

	--[[ WARNING SYSTEM ]]--
	PlaneMasterCautionOff					= 379,

	PlaneGearUp								= 430,
	PlaneGearDown							= 431,

	PlaneDropSnarOnceOff					= 536,

	--[[ WARNING SYSTEM ]]--
	PlaneMasterCaution						= 252,

	PlaneScalesReject						= 253,
	PlaneBettyRepeat						= 254,
	ChangeGunRateOfFire						= 280,
	ChangeRippleQuantity					= 281,
	ChangeRippleInterval					= 282,
	SwitchMasterArm							= 283,
	ChangeReleaseMode						= 284,
	ChangeRippleIntervalDown				= 308,
	PlaneLaunchPermissionOverride			= 349,
	PlanePickleOn							= 350,
	PlanePickleOff							= 351,


	PlaneCMDDispence						= 364,
	PlaneCMDDispenceOff						= 365,
	PlaneCMDDispenceStop					= 366,
	PlaneCMDDispenceStopOff					= 367,
	PlaneCMDChangeRippleQuantity			= 368,
	PlaneCMDChangeRippleQuantityOff 		= 369,
	PlaneCMDChangeRippleInterval			= 370,
	PlaneCMDChangeRippleIntervalOff 		= 371,
	PlaneCMDChangeBurstAmount				= 372,
	PlaneCMDChangeBurstAmountOff			= 373,
	PlaneCMDCancelCurrentProgram			= 374,
	PlaneCMDCancelCurrentProgramOff 		= 375,
	PlaneCMDChangeBoard						= 376,
	PlaneCMDShowAmountOrProgram				= 377,


	--[[ WARNING SYSTEM ]]--
	PlaneMasterCautionOff					= 379,

	PlaneLaserRangerOnOff					= 392,
	PlaneGearUp								= 430,
	PlaneGearDown							= 431,
	PlaneNightVisionGogglesOnOff			= 438,

	--[[HOTAS--]]
	HOTAS_CoolieUp	 = 539,
	HOTAS_CoolieDown = 540,
	HOTAS_CoolieLeft = 541,
	HOTAS_CoolieRight= 542,
	HOTAS_CoolieOff  = 543,

	HOTAS_TargetManagementSwitchUp	  = 544,
	HOTAS_TargetManagementSwitchDown  = 545,
	HOTAS_TargetManagementSwitchLeft  = 546,
	HOTAS_TargetManagementSwitchRight = 547,
	HOTAS_TargetManagementSwitchOff   = 548,

	HOTAS_DataManagementSwitchUp   = 549,
	HOTAS_DataManagementSwitchDown = 550,
	HOTAS_DataManagementSwitchLeft = 551,
	HOTAS_DataManagementSwitchRight= 552,
	HOTAS_DataManagementSwitchOff  = 553,





--from iCommand.h
	PlaneSAUAutomatic = 58,				-- ???????????? ?????
	PlaneSAUHBarometric = 59,			-- ???????????? ?????????? ??????
	PlaneSAUHRadio = 60,			-- ????? ? ????????? ???????
	PlaneSAUHorizon = 61,				-- ?????????? ? ?????????
	PlaneAutopilot = 62,					-- ?????????
	PlaneAUTOnOff = 63,					-- ???????????? ?????? ???
	PlaneAUTIncrease = 64,				-- ????????? ???????? ????????
	PlaneAUTDecrease = 65,				-- ????????? ???????? ????????
	PlaneGear = 68,						-- ?????
	PlaneHook = 69,						-- ???
	PlanePackWing = 70,				-- ??????????? ???????
	PlaneFonar = 71,						-- ??????
	PlaneFlaps = 72,						-- ????????
	PlaneAirBrake = 73,					-- ????????? ??????
	PlaneWheelBrakeOn = 74,				-- ????????? ??????? ?????
	PlaneWheelBrakeOff = 75,				-- ?????????? ??????? ?????
	PlaneParachute = 76,					-- ???????
	PlaneDropSnar = 77,					-- ????? ???????
	PlaneWingtipSmokeOnOff = 78,			-- ???/???? ??????? ????? ?? ?????? ???????
	PlaneFuelOn = 79,					-- ????????? ????? ??????? ??? ????????
	PlaneFuelOff = 80,				-- ?????????? ????? ??????? ??? ????????
	PlaneSalvoOnOff = 81,				-- ???????? ????? ???/????
	PlaneJettisonWeapons = 82,			-- ????? ?????? ??????
	PlaneEject = 83,						-- ?????????????????
	PlaneFire = 84,						-- ???????
	PlaneFireOff = 85,					-- ??????? ?????????
	PlaneRadarOnOff = 86,				-- ????????? / ?????????? ??????
	PlaneEOSOnOff = 87,					-- ????????? / ?????????? ???
	PlaneRadarLeft = 88,					-- ??????? ??????? ??? ?????
	PlaneRadarRight = 89,				-- ??????? ??????? ??? ??????
	PlaneRadarUp = 90,				-- ??????? ??????? ??? ?????
	PlaneRadarDown = 91,					-- ??????? ??????? ??? ????
	PlaneRadarCenter = 92,				-- ??????? ??????? ??? ? ?????
	PlaneTrimLeft = 93,					-- ??????? ?????
	PlaneTrimRight = 94,					-- ??????? ??????
	PlaneTrimUp = 95,					-- ??????? ?????
	PlaneTrimDown = 96,					-- ??????? ????
	PlaneTrimCancel = 97,				-- ????? ????????
	PlaneTrimLeftRudder = 98,			-- ??????? ????? ??????
	PlaneTrimRightRudder = 99,			-- ??????? ?????? ??????
	PlaneChangeLock = 100,			-- ???????????? ?????????? / ??????
	PlaneChangeWeapon = 101,				-- ???????????? ?????????? / ??????? ??????
	PlaneChangeTarget = 102,				-- ??????? ?????
	PlaneZoomIn = 103,					-- ????????? ???????? ??? +
	PlaneZoomOut = 104,					-- ????????? ???????? ??? -
	PlaneModeNAV = 105,					-- ??????? ? ????? ?????????
	PlaneModeBVR = 106,					-- ??????? ? ????? ???????? ?????????? ???
	PlaneModeVS = 107,					-- ??????? ? ????? ???????? ?????????? ??? (??????)
	PlaneModeBore = 108,					-- ??????? ? ????? ???????? ?????????? ??? (??????)
	PlaneModeHelmet = 109,				-- ??????? ? ????? ???????? ?????????? ??? (????)
	PlaneModeFI0 = 110,				-- ??????? ? ????? FI0
	PlaneModeGround = 111,				-- ??????? ? ????? ????? ???????? ?????
	PlaneModeGrid = 112,					-- ??????? ? ????? "?????"
	PlaneModeCannon = 113,				-- ?????????/?????????? ?????
	PlaneDoAndHome = 114,					-- ??????? ??????? ? ??????? ?? ????
	PlaneDoAndBack = 115,					-- ??????? ??????? ? ??????? ?? ???
	PlaneFormation = 116,					-- ???? ??????????/??????? ??????
	PlaneJoinUp	= 117,					-- ?????????
	PlaneAttackMyTarget = 118,			-- ?????? ??? ????
	PlaneCoverMySix = 119,				-- ??????? ???? ?????
	PlaneShipTakeOff = 120,			-- ???? ???????? ? ?????????

	ActiveJamming = 136,
	LandDetailsIncrease = 137,			-- ?????????? ?????????? ??????????? (Non-simulation Action)
	LandDetailsDecrease = 138,			-- ?????????? ?????????? ??????????? (Non-simulation Action)
	SelecterLeft = 139,					-- ???????? ??????? ??????? ????? ?? HUD ?????
	SelecterRight = 140,			-- ??????
	SelecterUp  =141,						-- ?????
	SelecterDown = 142,					-- ????
	RefusalTWS = 143,						-- ????? ?? ???
	PlaneResetMasterWarning = 144,
	PlaneFlapsOn = 145,
	PlaneFlapsOff = 146,
	PlaneAirBrakeOn = 147,
	PlaneAirBrakeOff = 148,
	PlaneAirRefuel = 155,				-- ????????????? ????????? ?????? ????????
	BrightnessILS = 156,				-- ??????? ILS
	PlaneAUTIncreaseLeft = 161,
	PlaneAUTDecreaseLeft = 162,
	PlaneAUTIncreaseRight = 163,
	PlaneAUTDecreaseRight = 164,
	PlaneLightsOnOff = 175,			-- ???/???? ???? ?? ????? ????????
	PlaneDropSnarOnce = 176,			-- ??????????? ????? ???????
	PlaneJettisonFuelTanks = 178,		-- ????? ????????? ?????
	PlaneWingmenCommand = 179,		-- ????? ?????? ?????? ???????
	PlaneDown = 186,					-- ?????? ?????????? ??????????? ?? ??????
	PlaneUp = 187,
	PlaneLeft = 188,
	PlaneRight = 189,
	PlaneUpStart = 193,
	PlaneUpStop = 194,
	PlaneDownStart = 195,
	PlaneDownStop = 196,
	PlaneLeftStart = 197,
	PlaneLeftStop = 198,
	PlaneRightStart = 199,
	PlaneRightStop = 200,
	PlaneLeftRudderStart = 201,
	PlaneLeftRudderStop = 202,
	PlaneRightRudderStart = 203,
	PlaneRightRudderStop = 204,
	PlaneTrimStop = 215,
	SelecterUpRight = 226,
	SelecterDownRight = 227,
	SelecterDownLeft = 228,
	SelecterUpLeft = 229,
	SelecterStop = 230,
	PlaneRadarUpRight = 231,
	PlaneRadarDownRight = 232,
	PlaneRadarDownLeft = 233,
	PlaneRadarUpLeft = 234,
	PlaneRadarStop = 235,
	PlaneHUDFilterOnOff = 247,			-- ???????/???????? ??????????? ??? (Ka-50)
	PlaneMasterCaution = 252,				-- ?????? "????? ?????" (???-29), ??????-????? ??? (??-50)
	PlaneScalesReject	= 253,				-- Scales reject / ???????. ???????. ?? ??? (??-50)
	PlaneBettyRepeat = 254,				-- Repeat Betty messages (Rf-50)
	ThreatMissilePadlock = 258,
	AllMissilePadlock = 259,
	DecreaseRadarScanArea = 262,
	IncreaseRadarScanArea = 263,
	AWACSHomeBearing = 267,
	AWACSTankerBearing = 268,
	AWACSBanditBearing = 269,
	AWACSDeclare = 270,
	EasyRadarOnOff = 271,
	AutoLockOnNearestAircraft = 272,
	AutoLockOnCenterAircraft = 273,
	AutoLockOnNextAircraft = 274,
	AutoLockOnPreviousAircraft = 275,
	AutoLockOnNearestSurfaceTarget = 276,
	AutoLockOnCenterSurfaceTarget = 277,
	AutoLockOnNextSurfaceTarget = 278,
	AutoLockOnPreviousSurfaceTarget = 279,
	ChangeGunRateOfFire = 280,
	ChangeRippleQuantity = 281,
	ChangeRippleInterval = 282,
	SwitchMasterArm = 283,
	ChangeReleaseMode = 284,
	PlaneRadarChangeMode = 285,
	ChangeRWRMode = 286,
	FlightClockReset = 288,
	PlaneCockpitIllumination = 300,
	ChangeRippleIntervalDown = 308,		-- ????????? ????????? ?????? ???? ? ????? ??? ?10 ? ???????? ???????????
	EnginesStart = 309,				-- ?????? ??????????
	EnginesStop = 310,			-- ?????????? ??????????

	LeftEngineStart = 311,			-- ?????? ?????? ?????????
	RightEngineStart = 312,			-- ?????? ??????? ?????????

	LeftEngineStop = 313,				-- ?????????? ?????? ?????????
	RightEngineStop = 314,			-- ?????????? ??????? ?????????

	PowerOnOff = 315,					-- ?????????/?????????? ??????????????

	AltimeterPressureIncrease = 316,	-- ?????????? ???????? ?? ??
	AltimeterPressureDecrease = 317,	-- ?????????? ???????? ?? ??
	AltimeterPressureStop = 318,

	PlaneHeadLightOnOff = 328,		-- ???/???? ???? ?? ???????? ?????? ?????

	PlaneLockPadlock = 329,				-- ??????? ?? ????????? ????????
	PlaneUnlockPadlock = 330,		-- ??????? ??????? ?? ????????

	PlaneLaunchPermissionOverride = 349,	-- ?????? ?????????? ? ??????
	PlanePickleOn = 350,		-- ???? ?????/????? ???? ??? ???????? ?????????
	PlanePickleOff = 351,
	PlaneDropFlareOnce = 357,			-- ??????????? ????? ??-???????
	PlaneDropChaffOnce = 358,			-- ??????????? ????? ????????? ???????????

	-- CMD
	PlaneCMDDispence = 364,				-- ????????? ???????? ??? ?????? ???????
	PlaneCMDDispenceOff = 365,
	PlaneCMDDispenceStop = 366,			-- ????????? ???????? ??? ????????? ??????? ???????
	PlaneCMDDispenceStopOff = 367,
	PlaneCMDChangeRippleQuantity = 368,	-- ????????? ???????? ??? ???????? ?????????? ? ?????
	PlaneCMDChangeRippleQuantityOff = 369,
	PlaneCMDChangeRippleInterval = 370,	-- ????????? ???????? ??? ???????? ???????? ? ?????
	PlaneCMDChangeRippleIntervalOff = 371,
	PlaneCMDChangeBurstAmount = 372,		-- ????????? ???????? ??? ???????? ?????????? ?????
	PlaneCMDChangeBurstAmountOff = 373,
	PlaneCMDCancelCurrentProgram = 374,	-- ????????? ???????? ??? ????? ?????????
	PlaneCMDCancelCurrentProgramOff = 375,
	PlaneCMDChangeBoard = 376,			-- ????????? ???????? ??? ????? ?????
	PlaneCMDShowAmountOrProgram = 377,	-- ????????? ???????? ??? ????? ????????? - ??????? ??????? ??? ??????? ?????????

	PlaneCancelWeaponsDelivery = 378,		-- ????? ?????? ?????? ???????? (?? - 50)
	PlaneMasterCautionOff = 379,
	PlaneStabTangBank = 386,			-- ???????????? ??????? ? ?????
	PlaneStabHbarBank = 387,			-- ???????????? Hbar ? ?????
	PlaneStabHorizon = 388,			-- ???????????? ??????? ? ?????
	PlaneStabHbar = 389,				-- ???????????? Hbar
	PlaneStabHrad = 390,				-- ???????????? Hrad
	ActiveIRJamming = 391,			-- IR OnOff
	PlaneLaserRangerOnOff = 392, 		-- ???/???? ???????? ?????????
	PlaneNightTVOnOff = 393,		 -- ???/???? ?????? ????? ????????????? ??????? (IR or LLTV)
	PlaneChangeRadarPRF = 394,	   -- ???????? ??????? ?????????? ????????? ??????
	PlaneStabCancel = 408,			-- ????? ???? ??????? ???????????? ? ??????????
	PlaneThreatWarnSoundVolumeDown = 409,	-- ?????????? ????????? ???????? ???????? ???
	PlaneThreatWarnSoundVolumeUp = 410,	-- ?????????? ????????? ???????? ???????? ???
	ViewLaserOnOff = 411,
	PlaneIncreaseBase_Distance = 412,	 -- ?????????? ???? ????
	PlaneDecreaseBase_Distance = 413,	 -- ?????????? ???? ????
	PlaneStopBase_Distance = 414,
	PlaneAutopilotOverrideOn =427,
	PlaneAutopilotOverrideOff = 428,
	PlaneRouteAutopilot = 429,
	PlaneGearUp = 430,
	PlaneGearDown = 431,
	ViewNightVisionGogglesOn = 438,
	PlaneDesignate_CageOn = 439,
	PlaneDesignate_CageOff = 440,
	PlaneDesignate_CageOn_vertical = 441,
	PlaneDesignate_CageOn_horizontal = 442,

	--Data Link Panel PRTs (????? ??????? ???????????? ???)
	PlaneDLK_Target1 = 443,
	PlaneDLK_Target2 = 444,
	PlaneDLK_Target3 = 445,
	PlaneDLK_RefPoint = 446,
	PlaneDLK_Wingman1 = 447,
	PlaneDLK_Wingman2 = 448,
	PlaneDLK_Wingman3 = 449,
	PlaneDLK_Wingman4 = 450,
	PlaneDLK_All = 451,
	PlaneDLK_Erase = 452,
	PlaneDLK_Ingress = 453,
	PlaneDLK_SendMemory = 454,

	-- NAV panel controls (??-50 - ????? ???)
	PlaneNavChangePanelModeRight = 455,
	PlaneNavChangePanelModeLeft = 456,
	PlaneNavSetFixtakingMode = 457,
	PlaneNav_DLK_OnOff = 458,
	PlaneNav_PB1 = 459,
	PlaneNav_PB2 = 460,
	PlaneNav_PB3 = 461,
	PlaneNav_PB4 = 462,
	PlaneNav_PB5 = 463,
	PlaneNav_PB6 = 464,
	PlaneNav_PB7 = 465,
	PlaneNav_PB8 = 466,
	PlaneNav_PB9 = 467,
	PlaneNav_PB0 = 468,
	PlaneNav_Steerpoints = 469,
	PlaneNav_INU_realign = 470,
	PlaneNav_POS_corrMode = 471,
	PlaneNav_INU_precise_align = 472,
	PlaneNav_Airfields =473,
	PlaneNav_INU_normal_align  = 474,
	PlaneNav_Targets = 475,
	PlaneNav_Enter = 476,
	PlaneNav_Cancel = 477,
	PlaneNav_POS_init = 478,
	PlaneNav_SelfCoord = 479,
	PlaneNav_CourseTimeRange = 480,
	PlaneNav_Wind = 481,
	PlaneNav_THeadingTimeRangeF = 482,
	PlaneNav_BearingRangeT = 483,


	PlaneCockpitIlluminationPanels = 493,
	PlaneCockpitIlluminationGauges = 494,

	Plane_RouteMode = 506,
	Plane_DescentMode = 507,
	Plane_DescentModeOff = 508,

	Plane_SpotLight_left  = 511,
	Plane_SpotLight_right = 512,
	Plane_SpotLight_up	= 513,
	Plane_SpotLight_down = 514,
	Plane_SpotLight_stop = 515,

	PlaneRotorTipLights = 516,
	Plane_SpotSelect_switch = 517,
	PlaneAntiCollisionLights = 518,
	PlaneNavLights_CodeModeOn = 519,
	PlaneNavLights_CodeModeOff = 520,
	PlaneFormationLights = 521,

	Plane_EngageAirDefenses = 522,
	Plane_EngageGroundTargets = 523,

	Plane_AutomaticTracking_Gunsight_switch  = 524,
	Plane_AutomaticTurn = 526,
	Plane_GroundMovingTarget = 527,
	Plane_AirborneTarget = 528,
	Plane_HeadOnAspect = 529,
	Plane_ChangeDeliveryMode_right = 530,
	Plane_ChangeDeliveryMode_left = 531,

	Plane_WeaponMode_Manual_Auto = 532,
	Plane_WeaponMode_switch = 533,
	Plane_AmmoTypeSelect = 534,
	Plane_FireRate = 535,

	PlaneDropSnarOnceOff = 536,

	HelicopterHover = 537,
	AutopilotEmergOFF = 538,

	Plane_HOTAS_CoolieUp = 539,
	Plane_HOTAS_CoolieDown = 540,
	Plane_HOTAS_CoolieLeft = 541,
	Plane_HOTAS_CoolieRight = 542,
	Plane_HOTAS_CoolieOff = 543,

	Plane_HOTAS_TargetManagementSwitchUp = 544,
	Plane_HOTAS_TargetManagementSwitchDown = 545,
	Plane_HOTAS_TargetManagementSwitchLeft = 546,
	Plane_HOTAS_TargetManagementSwitchRight = 547,
	Plane_HOTAS_TargetManagementSwitchOff = 548,

	Plane_HOTAS_DataManagementSwitchUp = 549,
	Plane_HOTAS_DataManagementSwitchDown = 550,
	Plane_HOTAS_DataManagementSwitchLeft = 551,
	Plane_HOTAS_DataManagementSwitchRight = 552,
	Plane_HOTAS_DataManagementSwitchOff = 553,

	Plane_HOTAS_TriggerSecondStage = 554,
	Plane_HOTAS_TriggerFirstStage = 555,

	Plane_HOTAS_CMS_Up = 556,
	Plane_HOTAS_CMS_Down = 557,
	Plane_HOTAS_CMS_Left = 558,
	Plane_HOTAS_CMS_Right = 559,
	Plane_HOTAS_CMS_Off = 560,

	Plane_HOTAS_MasterModeControlButton = 561,
	Plane_HOTAS_NoseWheelSteeringButton = 562,
	Plane_HOTAS_NoseWheelSteeringButtonOff = 606,

	Plane_HOTAS_BoatSwitchForward = 563,
	Plane_HOTAS_BoatSwitchAft = 564,
	Plane_HOTAS_BoatSwitchCenter = 565,

	Plane_HOTAS_ChinaHatForward = 566,
	Plane_HOTAS_ChinaHatAft = 567,
	Plane_HOTAS_ChinaHatOff = 589,

	Plane_HOTAS_PinkySwitchForward = 568,
	Plane_HOTAS_PinkySwitchAft = 569,
	Plane_HOTAS_PinkySwitchCenter = 570,

	Plane_HOTAS_LeftThrottleButton = 571,

	Plane_HOTAS_MIC_SwitchUp = 572,
	Plane_HOTAS_MIC_SwitchDown = 573,
	Plane_HOTAS_MIC_SwitchLeft = 574,
	Plane_HOTAS_MIC_SwitchRight = 575,
	Plane_HOTAS_MIC_SwitchOff = 576,

	Plane_HOTAS_SpeedBrakeSwitchForward = 577,
	Plane_HOTAS_SpeedBrakeSwitchAft = 578,
	Plane_HOTAS_SpeedBrakeSwitchCenter = 579,

	Plane_HOTAS_MasterModeControlButtonUP = 633,

	Plane_HOTAS_TDC_depress_on  = 634,
	Plane_HOTAS_TDC_depress_off = 635,

	Plane_HOTAS_TriggerSecondStage_Off = 638,
	Plane_HOTAS_TriggerFirstStage_Off  = 639,

	Plane_HOTAS_CMS_Zaxis 		= 1041,
	Plane_HOTAS_CMS_Zaxis_Off 	= 1042,

	Plane_HOTAS_BoatSwitchOff	= 822,
	Plane_HOTAS_BoatSwitchForwardMomentary = 823,
	Plane_HOTAS_BoatSwitchAftMomentary = 824,

	Plane_HOTAS_LeftThrottleButton_Off = 1557,
--end

-- analog commands
	PlaneRadarHorizontal 	   = 2025,
	PlaneRadarVertical 		   = 2026,
	PlaneRadarHorizontalAbs	= 2027,
	PlaneRadarVerticalAbs 	   = 2028,
	PlaneMFDZoom 			   = 2029,
	PlaneMFDZoomAbs			   = 2030,
	PlaneSelecterHorizontal	= 2031,
	PlaneSelecterVertical 	   = 2032,
	PlaneSelecterHorizontalAbs = 2033,
	PlaneSelecterVerticalAbs   = 2034,
	PlaneBase_Distance 		   = 2040,
	PlaneBase_DistanceAbs 	   = 2041,



	LampsControl							= 762,
	LampsControl_up							= 800,
}

start_command   = 3000

local cmd_count = 6000
local function cmd_counter()
	local result = cmd_count
	cmd_count = cmd_count + 1
	return result
end

cmds =
{
	Button_1   = start_command + 1;
	Button_2   = start_command + 2;
	Button_3   = start_command + 3;
	Button_4   = start_command + 4;
	Button_5   = start_command + 5;
	Button_6   = start_command + 6;
	Button_7   = start_command + 7;
	Button_8   = start_command + 8;
	Button_9   = start_command + 9;
	Button_10  = start_command + 10;
	Button_11  = start_command + 11;
	Button_12  = start_command + 12;
	Button_13  = start_command + 13;
	Button_14  = start_command + 14;
	Button_15  = start_command + 15;
	Button_16  = start_command + 16;
	Button_17  = start_command + 17;
	Button_18  = start_command + 18;
	Button_19  = start_command + 19;
	Button_20  = start_command + 20;
	Button_21  = start_command + 21;
	Button_22  = start_command + 22;
	Button_23  = start_command + 23;
	Button_24  = start_command + 24;
	Button_25  = start_command + 25;
	Button_26  = start_command + 26;
	Button_27  = start_command + 27;
	Button_28  = start_command + 28;
	Button_29  = start_command + 29;
	Button_30  = start_command + 30;
	Button_31  = start_command + 31;
	Button_32  = start_command + 32;
	Button_33  = start_command + 33;
	Button_34  = start_command + 34;
	Button_35  = start_command + 35;
	Button_36  = start_command + 36;
	Button_37  = start_command + 37;
	Button_38  = start_command + 38;
	Button_39  = start_command + 39;
	Button_40  = start_command + 40;
	Button_41  = start_command + 41;
	Button_42  = start_command + 42;
	Button_43  = start_command + 43;
	Button_44  = start_command + 44;
	Button_45  = start_command + 45;
	Button_46  = start_command + 46;
	Button_47  = start_command + 47;
	Button_48  = start_command + 48;
	Button_49  = start_command + 49;
	Button_50  = start_command + 50;
	Button_51  = start_command + 51;
	Button_52  = start_command + 52;
	Button_53  = start_command + 53;
	Button_54  = start_command + 54;
	Button_55  = start_command + 55;
	Button_56  = start_command + 56;
	Button_57  = start_command + 57;
	Button_58  = start_command + 58;
	Button_59  = start_command + 59;
	Button_60  = start_command + 60;
	Button_61  = start_command + 61;
	Button_62  = start_command + 62;
	Button_63  = start_command + 63;
	Button_64  = start_command + 64;
	Button_65  = start_command + 65;
	Button_66  = start_command + 66;
	Button_67  = start_command + 67;
	Button_68  = start_command + 68;
	Button_69  = start_command + 69;
	Button_70  = start_command + 70;
	Button_81  = start_command + 81;
	Button_82  = start_command + 82;
	Button_83  = start_command + 83;
	Button_84  = start_command + 84;
	Button_85  = start_command + 85;
	Button_86  = start_command + 86;
	Button_87  = start_command + 87;
	Button_88  = start_command + 88;
	Button_89  = start_command + 89;
	Button_90  = start_command + 90;
	Button_91  = start_command + 91;
	Button_92  = start_command + 92;
	Button_93  = start_command + 93;
	Button_94  = start_command + 94;
	Button_95  = start_command + 95;
	Button_96  = start_command + 96;
	Button_97  = start_command + 97;
	Button_98  = start_command + 98;
	Button_99  = start_command + 99;
	Button_100 = start_command + 100;
	Button_101 = start_command + 101;
	Button_102 = start_command + 102;
	Button_103 = start_command + 103;
	Button_104 = start_command + 104;
	Button_105 = start_command + 105;
	Button_106 = start_command + 106;
	Button_107 = start_command + 107;
	Button_108 = start_command + 108;
	Button_109 = start_command + 109;
	Button_110 = start_command + 110;
	Button_111 = start_command + 111;
	Button_112 = start_command + 112;
	Button_113 = start_command + 113;
	Button_114 = start_command + 114;
	Button_115 = start_command + 115;
	Button_116 = start_command + 116;
	Button_117 = start_command + 117;
	Button_118 = start_command + 118;
	Button_119 = start_command + 119;
	Button_120 = start_command + 120;
	Button_121 = start_command + 121;
	Button_122 = start_command + 122;
	Button_123 = start_command + 123;
	Button_124 = start_command + 124;
	Button_125 = start_command + 125;
	Button_126 = start_command + 126;
	Button_127 = start_command + 127;
	Button_128 = start_command + 128;
	Button_129 = start_command + 129;
	Button_130 = start_command + 130;
	Button_131 = start_command + 131;
	Button_132 = start_command + 132;
	Button_133 = start_command + 133;
	Button_134 = start_command + 134;
	Button_135 = start_command + 135;
	Button_136 = start_command + 136;
	Button_137 = start_command + 137;
	Button_138 = start_command + 138;
	Button_139 = start_command + 139;
	Button_140 = start_command + 140;
	Button_141 = start_command + 141;
	Button_142 = start_command + 142;
	Button_143 = start_command + 143;
	Button_144 = start_command + 144;
	Button_145 = start_command + 145;
	Button_146 = start_command + 146;
	Button_147 = start_command + 147;
	Button_148 = start_command + 148;
	Button_149 = start_command + 149;
	Button_150 = start_command + 150;
	Button_151 = start_command + 151;
	Button_152 = start_command + 152;
	Button_153 = start_command + 153;
	Button_154 = start_command + 154;
	Button_155 = start_command + 155;
	Button_156 = start_command + 156;
	Button_157 = start_command + 157;
	Button_158 = start_command + 158;
	Button_159 = start_command + 159;
	Button_160 = start_command + 160;
	Button_161 = start_command + 161;
	Button_162 = start_command + 162;
	Button_163 = start_command + 163;
	Button_164 = start_command + 164;
	Button_165 = start_command + 165;
	Button_166 = start_command + 166;
	Button_167 = start_command + 167;
	Button_168 = start_command + 168;
	Button_169 = start_command + 169;
	Button_170 = start_command + 170;
	Button_171 = start_command + 171;
	Button_172 = start_command + 172;
	Button_173 = start_command + 173;
	Button_174 = start_command + 174;
	Button_175 = start_command + 175;
	Button_176 = start_command + 176;
	Button_177 = start_command + 177;
	Button_178 = start_command + 178;
	Button_179 = start_command + 179;
	Button_180 = start_command + 180;
	Button_181 = start_command + 181;
	Button_182 = start_command + 182;
	Button_183 = start_command + 183;
	Button_184 = start_command + 184;
	Button_185 = start_command + 185;
	Button_186 = start_command + 186;
	Button_187 = start_command + 187;
	Button_188 = start_command + 188;
	Button_189 = start_command + 189;
	Button_190 = start_command + 190;
	Button_191 = start_command + 191;

	-- ECM Box
	Button_194 = start_command + 194;
	Button_195 = start_command + 195;
	Button_196 = start_command + 196;
	Button_197 = start_command + 197;

	-- Unassigned
	Button_198 = start_command + 198;
	Button_199 = start_command + 199;
	Button_200 = start_command + 200;

	-- VTH/VTB
	Button_192 = start_command + 192;
	Button_201 = start_command + 201;
	Button_202 = start_command + 202;
	Button_203 = start_command + 203;
	Button_204 = start_command + 204;
	Button_205 = start_command + 205;
	Button_206 = start_command + 206;
	Button_207 = start_command + 207;
	Button_208 = start_command + 208;
	Button_209 = start_command + 209;
	Button_210 = start_command + 210;
	Button_244 = start_command + 244;

	Button_213 = start_command + 213;
	Button_214 = start_command + 214;
	Button_215 = start_command + 215;
	Button_216 = start_command + 216;
	Button_217 = start_command + 217;
	Button_218 = start_command + 218;
	Button_219 = start_command + 219;
	Button_220 = start_command + 220;
	Button_221 = start_command + 221;
	Button_222 = start_command + 222;
	Button_223 = start_command + 223;
	Button_224 = start_command + 224;
	Button_225 = start_command + 225;
	Button_226 = start_command + 226;
	Button_227 = start_command + 227;
	Button_470 = start_command + 470;
	
	-- RWR
	Button_228 = start_command + 228;

	--PCA/PPA
	Button_234 = start_command + 234;
	Button_235 = start_command + 235;
	Button_237 = start_command + 237;
	Button_239 = start_command + 239;
	Button_241 = start_command + 241;
	Button_243 = start_command + 243;
	Button_245 = start_command + 245;
	Button_247 = start_command + 247;
	Button_248 = start_command + 248;
	Button_249 = start_command + 249;
	Button_250 = start_command + 250;
	Button_253 = start_command + 253;
	Button_256 = start_command + 256;
	Button_259 = start_command + 259;
	Button_262 = start_command + 262;
	Button_265 = start_command + 265;
	Button_266 = start_command + 266;
	Button_269 = start_command + 269;
	Button_272 = start_command + 272;
	Button_275 = start_command + 275;
	Button_276 = start_command + 276;
	Button_277 = start_command + 277;
	Button_278 = start_command + 278;
	Button_279 = start_command + 279;
	Button_409 = start_command + 409;

	--CDVE
	Button_282 = start_command + 282;
	Button_285 = start_command + 285;
	Button_288 = start_command + 288;
	Button_291 = start_command + 291;
	Button_294 = start_command + 294;
	Button_299 = start_command + 299;
	Button_300 = start_command + 300;
	Button_301 = start_command + 301;
	Button_302 = start_command + 302;
	Button_514 = start_command + 514;
	Button_515 = start_command + 515;
	Button_516 = start_command + 516;
	Button_517 = start_command + 517;

	--Cpt Clock
	Button_400 = start_command + 400;

	--FBW
	Button_330 = start_command + 330;
	Button_420 = start_command + 420;
	Button_421 = start_command + 421;
	Button_422 = start_command + 422;
	Button_423 = start_command + 423;
	Button_479 = start_command + 479;
	Button_480 = start_command + 480;

	--ALT ADI
	Button_309 = start_command + 309;
	Button_314 = start_command + 314;
	Button_315 = start_command + 315;
	Button_325 = start_command + 325;
	Button_328 = start_command + 328;
	
	-- HSI
	Button_340 = start_command + 340;
	Button_341 = start_command + 341;

	-- GMeter
	Button_348 = start_command + 348;

	-- IFF Mode Panel
	Button_377 = start_command + 377;
	Button_378 = start_command + 378;
	Button_379 = start_command + 379;
	Button_380 = start_command + 380;
	Button_381 = start_command + 381;
	Button_382 = start_command + 382;
	Button_383 = start_command + 383;
	Button_384 = start_command + 384;
	Button_385 = start_command + 385;
	Button_386 = start_command + 386;
	Button_387 = start_command + 387;
	Button_389 = start_command + 389;
	Button_390 = start_command + 390;
	Button_391 = start_command + 391;
	Button_392 = start_command + 392;
	Button_393 = start_command + 393;

	-- COMM PANE
	Button_429 = start_command + 429;
	Button_430 = start_command + 430;
	Button_431 = start_command + 431;
	Button_432 = start_command + 432;
	Button_433 = start_command + 433;
	Button_434 = start_command + 434;
	Button_435 = start_command + 435;
	Button_437 = start_command + 437;
	Button_438 = start_command + 438;
	Button_439 = start_command + 439;
	Button_440 = start_command + 440;
	Button_441 = start_command + 441;
	Button_442 = start_command + 442;
	Button_443 = start_command + 443;
	Button_444 = start_command + 444;
	Button_445 = start_command + 445;
	Button_446 = start_command + 446;
	Button_447 = start_command + 447;
	Button_448 = start_command + 448;
	
	-- VOR-ILS-TACAN
	Button_616 = start_command + 616;
	Button_617 = start_command + 617;
	Button_618 = start_command + 618;
	Button_619 = start_command + 619;
	Button_623 = start_command + 623;
	Button_624 = start_command + 624;
	Button_625 = start_command + 625;
	Button_626 = start_command + 626;	
	
	--- EXT LIGHTS CONTROLS
	Button_449 = start_command + 449;
	Button_450 = start_command + 450;
	Button_452 = start_command + 452;
	Button_453 = start_command + 453;
	Button_454 = start_command + 454;
	Button_455 = start_command + 455;
	
	--- SKID SWITCH
	Button_458 = start_command + 458;
	Button_459 = start_command + 459;	
	
	--FLIGHT CONTROLS
	Button_396 = start_command + 396;
	Button_404 = start_command + 404;	-- Landing Gear lever
	Button_408 = start_command + 408;	-- Landing Gear emergency release lever
	Button_926 = start_command + 926;	-- Landing Gear Beep
	Button_460 = start_command + 460;
	Button_461 = start_command + 461;
	Button_462 = start_command + 462;
	
	--THROTTLE
	Button_467 = start_command + 467;
	Button_468 = start_command + 468;

	--RADAR
	Button_109 = start_command + 109;
	Button_481 = start_command + 481;
	Button_482 = start_command + 482;
	Button_483 = start_command + 483;
	Button_484 = start_command + 484;
	Button_485 = start_command + 485;
	Button_486 = start_command + 486;
	Button_488 = start_command + 488;
	Button_489 = start_command + 489;
	Button_491 = start_command + 491;
	Button_493 = start_command + 493;
	Button_495 = start_command + 495;
	Button_497 = start_command + 497;
	Button_499 = start_command + 499;
	Button_500 = start_command + 500;
	Button_501 = start_command + 501;
	Button_502 = start_command + 502;
	Button_503 = start_command + 503;
	Button_504 = start_command + 504;
	Button_506 = start_command + 506;
	Button_709 = start_command + 709;
	Button_710 = start_command + 710;
	
	Button_508 = start_command + 508;
	Button_509 = start_command + 509;

	--ELECTRICAL
	Button_995 = start_command + 995;	-- Battery rearm switch
	Button_520 = start_command + 520;	-- Main battery switch
	Button_521 = start_command + 521;	-- Power transfer switch
	Button_522 = start_command + 522;	-- Alternator 1 switch
	Button_523 = start_command + 523;	-- Alternator 2 switch
	Button_524 = start_command + 524;	-- Warning lights test switch
	Button_654 = start_command + 654;	-- QRA switch

	--PCN_NAV
	Button_570 = start_command + 570;	-- PREP
	Button_572 = start_command + 572;	-- DEST
	Button_574 = start_command + 574;	-- Mode Knob
	Button_575 = start_command + 575;	-- Brightness Knob
	Button_576 = start_command + 576;	-- BAD Button
	Button_578 = start_command + 578;	-- REC Button
	Button_580 = start_command + 580;	-- VAL Button
	Button_582 = start_command + 582;	-- MRQ Button
	Button_667 = start_command + 667;	-- ENC Button

	Button_584 = start_command + 584;	-- Keyb 1
	Button_585 = start_command + 585;
	Button_586 = start_command + 586;
	Button_587 = start_command + 587;
	Button_588 = start_command + 588;
	Button_589 = start_command + 589;
	Button_590 = start_command + 590;
	Button_591 = start_command + 591;
	Button_592 = start_command + 592;
	Button_593 = start_command + 593;	-- Keyb 0
	Button_594 = start_command + 594;	-- Clear Button
	Button_596 = start_command + 596;	-- Insert Button

	Button_627 = start_command + 627;	-- INS Op Mode
	Button_629 = start_command + 629;	-- INS Sts Mode
	Button_665 = start_command + 665;	-- Aux gyro
	Button_628 = start_command + 628;	-- MIP slot door
	Button_673 = start_command + 673;	-- MIP label click
	Button_674 = start_command + 674;	-- MIP label wheel
	Button_675 = start_command + 675;	-- MIP top click
	
	-- RADAR IFF
	Button_598 = start_command + 598;
	Button_599 = start_command + 599;
	Button_600 = start_command + 600;
	Button_601 = start_command + 601;
	Button_602 = start_command + 602;
	Button_603 = start_command + 603;
	Button_604 = start_command + 604;
	
	--EW
	Button_605 = start_command + 605;
	Button_606 = start_command + 606;
	Button_607 = start_command + 607;
	Button_608 = start_command + 608;
	Button_609 = start_command + 609;
	Button_610 = start_command + 610;
	Button_990 = start_command + 990;
	
	-- ECS
	Button_630 = start_command + 630;
	Button_631 = start_command + 631;
	Button_633 = start_command + 633;
	Button_635 = start_command + 635;
	Button_636 = start_command + 636;
	Button_637 = start_command + 637;
	Button_638 = start_command + 638;
	
	--PANEL LIGHTS
	Button_639 = start_command + 639;
	Button_640 = start_command + 640;
	Button_641 = start_command + 641;
	Button_642 = start_command + 642;
	Button_643 = start_command + 643;
	Button_644 = start_command + 644;
	Button_672 = start_command + 672;

	--ENGINE START PANEL
	Button_645 = start_command + 645;
	Button_646 = start_command + 646;
	Button_647 = start_command + 647;
	Button_648 = start_command + 648;
	Button_649 = start_command + 649;
	Button_650 = start_command + 650;
	Button_651 = start_command + 651;
	Button_652 = start_command + 652;
	Button_477 = start_command + 477;
	Button_478 = start_command + 478;
	Button_471 = start_command + 471;
	Button_472 = start_command + 472;
	Button_463 = start_command + 463;
	Button_464 = start_command + 464;
	Button_465 = start_command + 465;
	Button_473 = start_command + 473;
	Button_474 = start_command + 474;
	Button_475 = start_command + 475;
	Button_476 = start_command + 476;
	Button_193 = start_command + 193;
	
	
	--FUEL PANEL
	Button_355 = start_command + 355;
	Button_357 = start_command + 357;
	Button_360 = start_command + 360;
	Button_361 = start_command + 361;
	

	--MISC
	Button_395 = start_command + 395;	-- Hydraulic System Selector for gauge reading
	Button_655 = start_command + 655;	-- Canopy Open/Close
	Button_656 = start_command + 656;	-- Canopy Open/Close
	Button_907 = start_command + 907;	-- Canopy Open/Close
	Button_908 = start_command + 908;	-- Canopy Open/Close
	Button_657 = start_command + 657;	-- Hydraulic Emergency Pump
	Button_658 = start_command + 658;	-- Audio warning reset
	Button_659 = start_command + 659;
	Button_660 = start_command + 660;
	Button_666 = start_command + 666;   -- Parking brake handle
	Button_900 = start_command + 900;
	Button_807 = start_command + 807;
	Button_457 = start_command + 457;
	Button_456 = start_command + 456;
	
	--Sound panel
	Button_700 = start_command + 700;
	Button_701 = start_command + 701;
	Button_702 = start_command + 702;
	Button_703 = start_command + 703;
	Button_704 = start_command + 704;
	Button_705 = start_command + 705;
	Button_706 = start_command + 706;
	Button_707 = start_command + 707;
	
	Button_905 = start_command + 905;
	Button_906 = start_command + 906;

	Button_909 = start_command + 909;
	Button_915 = start_command + 915;

	--LOX
	Button_910 = start_command + 910;
	Button_911 = start_command + 911;
	Button_912 = start_command + 912;
	
    --Refuel light
    Button_920 = start_command + 920;
    
	--Clockwatch
	Button_922 = start_command + 922;
	Button_923 = start_command + 923;
	Button_924 = start_command + 924;
	Button_925 = start_command + 925;
	
	--VHF
	Button_950 = start_command + 950;
	Button_951 = start_command + 951;
	Button_952 = start_command + 952;
	Button_953 = start_command + 953;
	Button_954 = start_command + 954;
	Button_955 = start_command + 955;
	Button_956 = start_command + 956;
	Button_957 = start_command + 957;
	Button_958 = start_command + 958;
	Button_959 = start_command + 959;
	Button_960 = start_command + 960;
	Button_961 = start_command + 961;
	Button_962 = start_command + 962;
	Button_963 = start_command + 963;
	Button_964 = start_command + 964;
	Button_965 = start_command + 965;
	Button_966 = start_command + 966;
	Button_967 = start_command + 967;

	---EVF
	Button_1004 = start_command + 968;
	Button_1005 = start_command + 969;
	Button_1006 = start_command + 970;
	
	--Helpers
	TAC_CH_INC = cmd_counter();
	TAC_MODE_INC = cmd_counter();
	TAC_MODE_Cycle = cmd_counter();
	VOL_VORILS_INC = cmd_counter();
	VOL_TACAN_INC = cmd_counter();
	VOL_MISSILE_INC = cmd_counter();
	VOL_TBAPP_INC = cmd_counter();
	VOL_TPMKR_INC = cmd_counter();
	VOL_UHF_INC = cmd_counter();
	VOL_VUHF_INC = cmd_counter();
	BINGO_THOUSANDS_INC = cmd_counter();
	BINGO_HUNDREDS_INC = cmd_counter();
	BINGO_COMBO_INC = cmd_counter();
	SEL_ALT_FL100_INC = cmd_counter();
	SEL_ALT_FL10_INC = cmd_counter();
	SEL_ALT_FL1_INC = cmd_counter();
	SEL_ALT_COMBO_INC = cmd_counter();
	INSParamSelect_INC = cmd_counter();
	INSModeSelect_INC = cmd_counter();
	INSOperMode_INC = cmd_counter();
	UHF_MODE_INC = cmd_counter();
	UHF_CH_INC = cmd_counter();
	VUHF_MODE_INC = cmd_counter();
	VUHF_CH_INC = cmd_counter();
	HSI_MODE_INC = cmd_counter();
	HSI_VAD_INC = cmd_counter();
	ADI_Cage_Toggle = cmd_counter();
	ADI_Cage_Pull = cmd_counter();
	GUN_TRIGGER = cmd_counter();
	BRM_RELEASE = cmd_counter();
	TDC_H = cmd_counter();
	TDC_V = cmd_counter();
	MICROB_1 = cmd_counter();
	MICROB_2 = cmd_counter();
	ADI_Pitch_CCW = cmd_counter();
	ADI_Pitch_CW = cmd_counter();
	PRF_INC = cmd_counter();
	DoppRej_INC = cmd_counter();
	RadarPower_INC = cmd_counter();
	RadarRange_INC = cmd_counter();
	RadarAntElev = cmd_counter();
	RadarSTT = cmd_counter();
	VUHF_Menu = cmd_counter();
	UHF_Menu = cmd_counter();
	VUHF_PTT = cmd_counter();
	UHF_PTT = cmd_counter();
	AOA_Show = cmd_counter();
	CanopyMoveAuto = cmd_counter();
	CanopyFullAuto = cmd_counter();
	RadarLines_INC = cmd_counter();
	RadarAzRange_INC = cmd_counter();
	RadarGain_INC = cmd_counter();
	PCN_Test = cmd_counter();
	VORILS_Frec_INC = cmd_counter();
	RWRBrightness_INC = cmd_counter();
	DashFloodLight_INC = cmd_counter();
	DashPanelLight_INC = cmd_counter();
	ConsoleFloodLight_INC = cmd_counter();
	ConsolePanelLight_INC = cmd_counter();
	CautionLight_INC = cmd_counter();
	WhiteFloodLight_INC = cmd_counter();
	SelJett_TOGGLE = cmd_counter();
	MIP_Next = cmd_counter();
	MIP_Remove = cmd_counter();
	MIP_Load = cmd_counter();
	AP_Disconnect = cmd_counter();
	ExcdElasLimit = cmd_counter();
	SELH_KNOB = cmd_counter();
	SELH_INC = cmd_counter();
	AUX_SIGHT_KNOB = cmd_counter();
	AUX_SIGHT_INC = cmd_counter();
	HUD_BRT_AXIS = cmd_counter();
	IFF_TRN_Mode1_01_INC = cmd_counter();
	IFF_TRN_Mode1_10_INC = cmd_counter();
	IFF_TRN_Mode23_0001_INC = cmd_counter();
	IFF_TRN_Mode23_0010_INC = cmd_counter();
	IFF_TRN_Mode23_0100_INC = cmd_counter();
	IFF_TRN_Mode23_1000_INC = cmd_counter();
	IFF_INT_Code_0001_INC = cmd_counter();
	IFF_INT_Code_0010_INC = cmd_counter();
	IFF_INT_Code_0100_INC = cmd_counter();
	IFF_INT_Code_1000_INC = cmd_counter();
}

