PMDG 737 apu
Posted: 09 Jul 2014, 04:37
how do i write the code to push a button and the apu turns on and then when i push it again it will turn off
i tired this but it did not work
L1 = HIDMacros.GetFSUIPCRAW(APU_Selector, 1)
if (Round(L1) > 0) then
HIDMacros.FSXEvent APU_Selector, MOUSE_FLAG_RIGHTSINGLE
else
HIDMacros.FSXEvent APU_Selector, MOUSE_FLAG_LEFTSINGLE
end if
with global as
Const LTS_LandingLtRetractableSw = &H64F4 ' values from FSUIPC PDF
Const LTS_LandingLtFixedSw = &H64F6
const APU_Selector = &h64FB
Const EVT_OH_LAND_LIGHTS_GUARD = "#69742"
Const MOUSE_FLAG_LEFTSINGLE = &H20000000 ' values from PMDG SDK.h
Const MOUSE_FLAG_RIGHTSINGLE = &H80000000
i tired this but it did not work
L1 = HIDMacros.GetFSUIPCRAW(APU_Selector, 1)
if (Round(L1) > 0) then
HIDMacros.FSXEvent APU_Selector, MOUSE_FLAG_RIGHTSINGLE
else
HIDMacros.FSXEvent APU_Selector, MOUSE_FLAG_LEFTSINGLE
end if
with global as
Const LTS_LandingLtRetractableSw = &H64F4 ' values from FSUIPC PDF
Const LTS_LandingLtFixedSw = &H64F6
const APU_Selector = &h64FB
Const EVT_OH_LAND_LIGHTS_GUARD = "#69742"
Const MOUSE_FLAG_LEFTSINGLE = &H20000000 ' values from PMDG SDK.h
Const MOUSE_FLAG_RIGHTSINGLE = &H80000000