Start HIDMacro with exe.xml

Report application bugs here
sank
Posts: 8
Joined: 20 Sep 2012, 16:34

Start HIDMacro with exe.xml

Post by sank » 20 Sep 2012, 16:56

Hi
sorry for my bad english ...

i try to start HIDMacro with exe.xml (see Docs and Tips)

The first problem (resolved) the parameter TRUE is necessary in this statement : <Launch.ManualLoad>True</Launch.ManualLoad> (FALSE inhibit the launch)

The second problem (not resolved) when FSX launch HIDMacros all the macros create in the file hidmacros.xml are deleted !!!
My exe.xml :

<SimBase.Document Type="Launch" version="1,0">
<Descr>Launch</Descr>
<Filename>exe.xml</Filename>
<Disabled>False</Disabled>
<Launch.ManualLoad>True</Launch.ManualLoad>
<Launch.Addon>
<Disabled>False</Disabled>
<ManualLoad>False</ManualLoad>
<Name>HIDMacros</Name>
<Path>c:\Program files (X86)\Hid Macro FSX\HIDMacros.exe</Path>
</Launch.Addon>
</SimBase.Document>



When i start FSX the nextr message is displayed : "FSX try to launch HIDMacro 2.0.0.485 entry configuration :1" if i choice Yes, HIDMacro launch correctly but the windows macro is empty !!! and when i close FSX the file hidmacros.xml is empty exept the device !!

I am on window seven 64

thank you for yours idea

Sank

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

Re: Start HIDMacro with exe.xml

Post by admin » 21 Sep 2012, 06:59

Do you have write access to Program files directory (and hidmacros subdirectory)?
Hidmacros store configuration file in the same directory and in default windows setup it might not be writable.
Try to run hidmacros directly (not via FSX xml), create some macro, quit and start again. And you'll see if macro is still there.
If you still lose your setup I suggest copy Hidmacros to different directory and make sure it's writable.
Petr Medek
LUAmacros author

sank
Posts: 8
Joined: 20 Sep 2012, 16:34

Re: Start HIDMacro with exe.xml

Post by sank » 21 Sep 2012, 10:47

Yes, when I launch HIDMacro directly (.EXE or shortcut) i can create and delete macro and after launch FSX all my macros are OK !
I can also in the directory of HIDMacro (Program files (X86) \ HIDMacro) modify, copy, delete the file hidmacro.xml

sank
Posts: 8
Joined: 20 Sep 2012, 16:34

Re: Start HIDMacro with exe.xml

Post by sank » 21 Sep 2012, 14:33

New test this morning :
I fix the file hidmacro.xml at read only !
I launch HIDMacro with shorcut and my macros are présent
I KILL HIDMacro manually because exit is not possible (dues at read only )
I launch FSX with exe.xml
HIDMacro start also and no macros are displayed !
I close FSX and KILL HidMacro
The file hidmacro.xml is not modify (he contains allways my macro (normal))

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

Re: Start HIDMacro with exe.xml

Post by admin » 24 Sep 2012, 07:43

Sound like it's using different directory when you start HIDmacros through FSX.
Are you sure you start it from the same path?
There's debug mode available when exe is started with argument "debug". Maybe it writes xml path as debug message, I'm not sure now, but you can try. In debug mode log file should be produced in the same directory as exe.
Petr Medek
LUAmacros author

sank
Posts: 8
Joined: 20 Sep 2012, 16:34

Re: Start HIDMacro with exe.xml

Post by sank » 25 Sep 2012, 16:13

hi,

i have only ONE DIRECTORY on my pc (c:program files (x86) \HID Macro FSX) i am sure at 110% :-)
i try to launch HIDMacros in cmd mode with argument debug and surprise all my macros are deleted (like launch with FSX !!!)
below the content of file debug.log :
17:12:27.219 (6450282): Found keyboard: 720957: \\?\ACPI#PNP0303#4&1568F457&0#{884B96C3-56EF-11D1-BC8C-00A0C91405DD}
17:12:27.219 (6450282): Found mouse: 720953: \\?\HID#VID_045E&PID_0084#7&837718A&0&0000#{378DE44C-56EF-11D1-BC8C-00A0C91405DD}
17:12:27.250 (6450313): Reset interval is 2000, requested 2000
17:12:27.250 (6450313): Reset interval is 2000, requested 2000
17:12:27.250 (6450313): Hook SET
17:12:35.580 (6458644): WM_INPUT (6458644) MOUSE usFlags 0. Button flags: 1. Dev handle: 720953. X :0. Y :0. ExtraInfo :0
17:12:35.580 (6458644): Received DLL asking message: WParam 00A1, LParam 0001
17:12:35.674 (6458737): Received DLL asking message: WParam WM_LBUTTONUP, LParam 0001

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

Re: Start HIDMacro with exe.xml

Post by admin » 26 Sep 2012, 12:03

Ok.
These days I'm rewriting save + load logic introducing backups of configuration files and explicit save of configuration.
I'll add some debug output related to config file path (because this seems to be the problem) and let you know once I have some beta version for test.
Petr Medek
LUAmacros author

sank
Posts: 8
Joined: 20 Sep 2012, 16:34

Re: Start HIDMacro with exe.xml

Post by sank » 26 Sep 2012, 15:19

Sorry
I have tested the new version 2.1 and i have always the same problem !

After reflection, I think exe.xml launch HIDMacro as administrator (like cmd command) but i was logged as user with adminstrator's privilèges. Perhaps is the problem ?

the debug.xml :
<Config>
<General>
<Language></Language>
<ScriptLanguage>VBScript</ScriptLanguage>
<ProcBegin>Sub %s</ProcBegin>
<ProcEnd>End Sub</ProcEnd>
<ScriptRoutines></ScriptRoutines>
<MinimizeToTray>0</MinimizeToTray>
<StartMinimized>0</StartMinimized>
<AllowScriptGUI>0</AllowScriptGUI>
<ScriptTimeout>10</ScriptTimeout>
<BufferTimeout>2000</BufferTimeout>
<BufferNotification>1</BufferNotification>
</General>
<Devices>
<Keyboard>
<Name>Kbd1</Name>
<SystemID>\\?\HID#WMVIRTUALDEVICE#2&25D493E&2&0000#{884B96C3-56EF-11D1-BC8C-00A0C91405DD}</SystemID>
</Keyboard>
<Keyboard>
<Name>Kbd2</Name>
<SystemID>\\?\ACPI#PNP0303#4&1568F457&0#{884B96C3-56EF-11D1-BC8C-00A0C91405DD}</SystemID>
</Keyboard>
<Mouse>
<Name>Mouse1</Name>
<SystemID>\\?\HID#WMVIRTUALDEVICE#2&2B3E62A0&2&0000#{378DE44C-56EF-11D1-BC8C-00A0C91405DD}</SystemID>
</Mouse>
<Mouse>
<Name>Mouse2</Name>
<SystemID>\\?\HID#VID_045E&PID_0084#7&837718A&0&0000#{378DE44C-56EF-11D1-BC8C-00A0C91405DD}</SystemID>
</Mouse>
<Game>
<Name>Logitech Extreme 3D Pro USB</Name>
<SystemID>445BC1A0:2C64:11DF:8002444553540000</SystemID>
</Game>
</Devices>
<Macros/>
</Config>

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

Re: Start HIDMacro with exe.xml

Post by admin » 28 Sep 2012, 21:06

Donwload my last build from http://www.hidmacros.eu/HIDMacros.exe and run with parameter debug:XML, so complete line is:

Code: Select all

hiDMacros.exe debug:XML
Then check debug.log in HIDmacor's directory and see what xml file is being used in different situations.
Petr Medek
LUAmacros author

sank
Posts: 8
Joined: 20 Sep 2012, 16:34

Re: Start HIDMacro with exe.xml

Post by sank » 30 Sep 2012, 16:58

I have downloaded directly by your's message link the new HidMacro and try it immediatly with a dos windows mode (cmd mode) with argument 'debug:XML'

before I logged in the dHid Macro's directory

sorry no files are created and i am not see the windows of HIDMacro !

the same thing happens if I launch the new .exe without the argument debug !

If i try to launch the new Hidmacro with double click it's the same thing : the HidMacro's window does not appear !

the parameter file hidmacro.xml is not affected in all cases

sorry

Post Reply