Results 1 to 7 of 7
Thread: Calling a FSUIPC MACRO from SIOC
-
02-11-2010, 05:39 PM #1
- Join Date
- Feb 2010
- Location
- Germany
- Posts
- 5
Calling a FSUIPC MACRO from SIOC
Hello,
im new in SIOC and have a question.
In the FSUIPC SDK exists a Macro File for the PMDG Overhead called "737 OHD.MCRO".
Inside this File we have a lot of Macros defined for the Overhead, e.g.:
[Macros]
Module="PMDG_737NG_Overhead.gau"
1=Batt=RX3170*X8b90
2=CabUtil=RX3210*X8b90
3=IFE/PassSt=RX3260*X8b90
4=Gen1off=RX32b0*X8b90
.
.
How can i do this ?
Var 0001, name S_BAT1, Link IOCARD_SW, Device 0, Input 1, Type I // Batarie Schalter
{
if &S_BAT1 = 0
{
Macro aufrufen ( 1=Batt=RX3170*X8b90 )
}
}
Matthias
-
02-11-2010, 08:30 PM #2
- Join Date
- Apr 2009
- Location
- Toronto
- Posts
- 125
Re: Calling a FSUIPC MACRO from SIOC
Matthias,
FSUIPC provides some "Virtual joysticks" at offset $3340. TOGGLE one of those buttons in SIOC and, in FSUIPC, associate that button push with the macro.
Jim
-
02-12-2010, 01:14 PM #3
Re: Calling a FSUIPC MACRO from SIOC
indeed, like this:
Code:Var 1, name S_BAT1, Link IOCARD_SW, Device 0, Input 1, Type I // Batarie Schalter { if &S_BAT1 = 0 { &FO_JoyStick64 = CHANGEBIT 0 v1 // toggle bit 0 of joystick 64 } } Var 2 name FO_JoyStick64 Link FSUIPC_OUT Offset $3340 Length 4
// and select for Joystick 64, Button 0 the FS control, macro 737 OHDLast edited by kiek; 07-14-2010 at 12:04 PM.
-
07-14-2010, 11:59 AM #4
- Join Date
- Jan 2009
- Location
- Nieuw Vennep
- Posts
- 2
Re: Calling a FSUIPC MACRO from SIOC
Hi guys.
This works perfectly. but how do i enter the code to use more than one joystick button?
I tried a lot of options but i cannot seem to figure it out...
Hope you guys can help me out here...
-
07-14-2010, 12:06 PM #5
Re: Calling a FSUIPC MACRO from SIOC
Well, for the next button (1) at Joystick 64, you code:
Code:Var 1, name S_BAT1, Link IOCARD_SW, Device 0, Input 1, Type I // Batarie Schalter { if &S_BAT1 = 0 { &FO_JoyStick64 = CHANGEBIT 1 v1 // toggle bit 1 of joystick 64 } } Var 2 name FO_JoyStick64 Link FSUIPC_OUT Offset $3340 Length 4
At offset $3344 length 4 you find the next joystick (65) with another 32 buttons
Nico Kaan
-
07-14-2010, 01:40 PM #6
- Join Date
- Jan 2009
- Location
- Nieuw Vennep
- Posts
- 2
Re: Calling a FSUIPC MACRO from SIOC
Hi Nico,
Thanks for the reply. i just cannot get it to work.
i have one button working with the code that i took off your website.
Now i made the code that works bold. i tried several solutions including the one below.. i know its wrong.. but could you help me out with the code for 2 buttons... i had it in the past but i cant seem to remember it anymore.
Could you let me know how i can code 2 buttons... maybe you can make an example so that i can add a few more myself?
thanks!
Var 1 Link IOCARD_SW Input 16 Type I
{
&FO_JoyStick64 = CHANGEBIT 0 v1 // toggle bit 0 of joystick 64
}
Var 2 name FO_JoyStick64 Link FSUIPC_OUT Offset $3340 Length 4
Var 3, name S_BAT1, Link IOCARD_SW, Device 0, Input 22, Type I // Batarie Schalter
{
&FO_JoyStick64 = CHANGEBIT 1 v1 // toggle bit 1 of joystick 64
}
-
07-14-2010, 01:55 PM #7
Re: Calling a FSUIPC MACRO from SIOC
Hi,
You made a mistake in var 3, you have to use v3 there, not v1 ...
Code:Var 1 Link IOCARD_SW Input 16 Type I { &FO_JoyStick64 = CHANGEBIT 0 v1 // toggle bit 0 of joystick 64 } Var 2 name FO_JoyStick64 Link FSUIPC_OUT Offset $3340 Length 4 Var 3, name S_BAT1, Link IOCARD_SW, Device 0, Input 22, Type I // Batarie Schalter { &FO_JoyStick64 = CHANGEBIT 1 v3 // toggle bit 1 of joystick 64 }
Last edited by kiek; 07-14-2010 at 04:45 PM.
Similar Threads
-
FSUIPC Mouse Macro problem w/ BU0836X
By hladamjr in forum I/O Interfacing and HardwareReplies: 4Last Post: 12-31-2009, 10:33 AM -
Macro mapping in FSUIPC....I need help??
By Spoceto1003 in forum General Builder Questions All Aircraft TypesReplies: 0Last Post: 12-05-2009, 01:21 PM -
SIOC and FSUIPC
By Bell209 in forum I/O Interfacing Hardware and SoftwareReplies: 6Last Post: 03-04-2009, 10:50 PM -
FSUIPC 3.81 Mouse Macro Controls for Level-D 767
By kiek in forum I/O Interfacing Hardware and SoftwareReplies: 7Last Post: 07-23-2008, 11:33 AM -
FSUIPC/MACRO/Keysend with sioc
By Georg Schneider in forum OpenCockpits General DiscussionReplies: 12Last Post: 05-05-2008, 12:18 PM
Search Girls in your city for night
Help FSBUS