Start HIDMacro with exe.xml
Start HIDMacro with exe.xml
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
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
Re: Start HIDMacro with exe.xml
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.
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
LUAmacros author
Re: Start HIDMacro with exe.xml
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
I can also in the directory of HIDMacro (Program files (X86) \ HIDMacro) modify, copy, delete the file hidmacro.xml
Re: Start HIDMacro with exe.xml
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))
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))
Re: Start HIDMacro with exe.xml
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.
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
LUAmacros author
Re: Start HIDMacro with exe.xml
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
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
Re: Start HIDMacro with exe.xml
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.
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
LUAmacros author
Re: Start HIDMacro with exe.xml
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>
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>
Re: Start HIDMacro with exe.xml
Donwload my last build from http://www.hidmacros.eu/HIDMacros.exe and run with parameter debug:XML, so complete line is:
Then check debug.log in HIDmacor's directory and see what xml file is being used in different situations.
Code: Select all
hiDMacros.exe debug:XML
Petr Medek
LUAmacros author
LUAmacros author
Re: Start HIDMacro with exe.xml
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
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