HIDMacros rebuild or new build.

Announcements, general discussion
Post Reply
jonny
Posts: 18
Joined: 22 Aug 2012, 19:35

HIDMacros rebuild or new build.

Post by jonny » 13 Jun 2017, 10:39

I have done a project recruiting question at http://fsdeveloper.com/forum/threads/hi ... ld.440319/
Are you willing to do some job?

ctroncy
Posts: 6
Joined: 07 Jul 2014, 16:11

Re: HIDMacros rebuild or new build.

Post by ctroncy » 14 Jun 2017, 08:39

Bonjour Jonny,
I do not think the problem is with HIDMacros, but is more a problem between FSX-SP1 Simconnect and P3DV4.
I will post on the FSDevelopper forum when I have the rights. I'll explain how I came to this conclusion.
Cheers
Claude

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: HIDMacros rebuild or new build.

Post by admin » 14 Jun 2017, 08:47

This is not first request/question realted to P3Dv4 I got.
From my point of view I won't touch HidMacros any more but there very little chance I could do something in LuaMacros.
But there are 2 problems
- I don't own P3D
- I'm not sure there are pascal headers for the latest sim connect. As Hid/Lua macros is written in Delphi/FPC I need to have Pascal headers or maybe somehow access dll (is SimConnect dll?) directly

So if you (P3D simmers) find some code in Pascal interfacing P3Dv4 I can have a look and estimate the effort to migrate old SimConnect interface from HiMacros to LuaMacros
Petr Medek
LUAmacros author

ctroncy
Posts: 6
Joined: 07 Jul 2014, 16:11

Re: HIDMacros rebuild or new build.

Post by ctroncy » 14 Jun 2017, 11:05

Hi Petr,
Could you have a look at my post in the P3D SimConnect forum, and tell me if I am right thinking that the open function should work in P3D V3 and V4.

http://www.prepar3d.com/forum/viewtopic ... 0&t=125245

Cheers
Claude

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: HIDMacros rebuild or new build.

Post by admin » 14 Jun 2017, 12:36

I can't. I'm not simconnect expert, don't know its architecture.
You're playing with SimConnect using C header file.
Even if you find working code it won't help me. HidMacros was using pascal wrappers and I call just function that inits connection to FSX: https://github.com/me2d13/hidmacros/blo ... l.pas#L244

I also googled a little bit and found some discussion SimConnect is not using dll anymore but static .lib library. Not sure if I can somehow import it to Lazarus.

Once there's some simple hello-world code in pascal that can connect to P3D I can say what can be done.

But I haven't seem one yet - even if I spent some little time trying to find it.
Petr Medek
LUAmacros author

Post Reply