Announcments

Announcements, questions
Locked
admin
Site Admin
Posts: 441
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Announcments

Post by admin » 05 Apr 2015, 22:51

Why LuaMacros
And why not HidMacros?

I have decided to stop any development of HidMacros. Instead of it I invest my (very little) free time to development of new application called LuaMacros. These applications are similar, LuaMacros uses some core concepts of HidMacros. However there are some differences... And why I finished with HidMacros?
  • HidMacros was written in TurboDelphi which was free variant of Borland Delphi. This free version is not available any more so once I reinstall my computer, there's no way how I can continue with HidMacros. I won't spend any money to buy IDE to develop open source free product
  • LuaMacros is written in Lazarus and free pascal. Even 64b compiler is available
  • In the latest versions of HidMacros I focused mainly on scripting part. In LuaMacros scripting is 99% of functionality. You can't do anything without writing a script. I know this decision is making LuaMacros kind of special application only for advanced users. Sorry for that but I find implementing GUI really boring. I don't want to lose my time with GUI.
  • LuaMacros is open source from the beginning. Find sources at github: https://github.com/me2d13/luamacros. Help is appreciated, once there's someone willing to cooperate, I'll write some development documentation.
  • The scripting language is Lua. It's light, popular and you don't need that Microsoft COM stuff, running as admin for the first time etc. You can easily implement callbacks in Lua for key press, joystick buttons etc.
  • Both applications are motivated by flight simulation. Now I use only Xplane so LuaMacros has now (Apr 2015) only Xplane interface. If someone need FSX/FSUIPC interfaces, port the code from HidMacros to LuaMacros. I won't do that (until motivated by donations :-))
  • Other functions from HidMacros are not available in LuaMacros. Mouse inputs, MIDI inputs. Those were not used that often and had limitations and bugs. Buffer is not ported yet, might be in the future
  • Unique keyboard handling is of course ported, also game devices. As new feature you can block whole keyboard (callback for whole device) and you can define different up/down macro even for keyboard
  • What is new in LuaMacros is COM port support - useful for Arduino and other DIY projects. You can read (OnDataReceived callback) and write to COM port
Commands available in the script will be documented in this forum in HowTo section. Until this is done you can check sample file as reference.

LuaMacros download link
WARNING: This download is beta version. Maybe not even beta. In fact I'm looking for testers so feel free to report bugs in forum or via email.


Future plans (short term) - what I'm working on:
  • Xplane on dataref change handler
  • Device and callback unregsiter and as a result possibility to load different script from script command
  • Save device names to file and load them by script commands
  • Command line parameter to run script on LuaMacros start
And one screenshot. It's really that simple :-)
Image

Changelog
  • 19.4.2015: New donwload link
  • 5.4.2015: Initial version
Petr Medek
LUAmacros author

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

Re: Announcments

Post by admin » 23 Apr 2015, 23:13

Version 0.1.0.11
A few small improvements were added
  • Versioning - there's build number (version) in bottom status bar. Helps to identify new features
  • Command line parameter -r starts the script immediately. So now 2 arguments are supported
    file name (without any switch) - loads the script file
    -r starts the script right after LuaMacros start
  • Global map with configuration variables was introduced. It's named lmc and now supports 2 fields:
    - version (string) - initialized with current build number
    - minimizeToTray (boolean) - default false, when set to true, tray icon is displayed and application is minimized to tray
  • New command lmc_minimize will minimize main window
Typical usage of new features is writing a script test.lua like

Code: Select all

print('Version: ' .. lmc.version)
lmc.minimizeToTray = true
lmc_minimize()

-- some useful commands
And starting LuaMacros with parameters

Code: Select all

LuaMacros.exe -r test.lua
This will start LuaMacros, runs the script test.lua and minimize it to tray.

Download link is still the same.
Petr Medek
LUAmacros author

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

Re: Announcments

Post by admin » 03 May 2016, 22:24

Version 0.1.0.225 Download link is still the same.

Enjoy
Petr Medek
LUAmacros author

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

Re: Announcments

Post by admin » 10 Jan 2017, 22:22

Version 0.1.0.313
  • Game devices extended - see how-to
  • Xplane interface - new functions - see how-to
BTW this version does not work with Xplane 11 beta 3. On my TODO list.


Download link is still the same.

Enjoy
Petr Medek
LUAmacros author

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

Re: Announcments

Post by admin » 12 Jul 2017, 22:10

Version 0.1.1.9 Download link is still the same.

Enjoy
Petr Medek
LUAmacros author

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

Re: Announcments

Post by admin » 14 Jul 2017, 22:14

Forum updated to the latest PhpBB version.
Please let me know if something is not working (PM or email admin@hidmacros.eu)
Petr Medek
LUAmacros author

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

Re: Announcments

Post by admin » 11 Dec 2017, 23:55

Version 0.1.1.69
  • lmc_reset() to reset LuaMacros from the script. Unhook all Lua callbacks, registered keyboard and device triggers, web server callbacks, XPL variable changes etc
  • lmc.autoReload boolean property. When set to true the loaded lua file is automatically reloaded. Useful when using external editor to edit your lua file
  • lmc.statistics boolean property. When setting to true new info window is opened with some internal info - statistics about code executed, XPL interface and others
  • lmc_get_devices - similar as lmc_print_devices but returns lua table that can be managed by script. See this comment for details
  • command line parameter -k that disables keyboard hook. It means you can still have macros triggerred by unique keyboard-key event but original key is not filtered. Can be used when this feature brings problems (dead keys, national characters) and luaMacos is mainly used for different purpose (game devices, XPL interface)
  • delay argument for lmc_send_keys. See pull request for details
Download link is still the same.

Enjoy
Petr Medek
LUAmacros author

Locked

Who is online

Users browsing this forum: No registered users and 1 guest