Small useful commands

Documentation. First post is always kind of manual page, being continuously updated by author. Following posts are discussion about the topic.
Post Reply
admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Small useful commands

Post by admin » 19 Sep 2015, 22:21

Sometimes I added one or two small features that are nice but don't have their own how to. I'll try to keep this how-to updated with some small new commands.

Code: Select all

lmc.minimizeToTray = true
The lmc.minimizeToTray flag says whether LuaMacros are shown at task bar when minimized. If it is set to true there's just icon in system tray but application is removed from task bar. When false (which is default) is behaves like any other application.

Code: Select all

lmc_minimize()
Minimizes the LuaMacros application. It's mainly used when script is executed automatically after LuaMacros start with -r switch. Having this command in the script makes the application start almost "silent".

Code: Select all

lmc_load('E:\\lmc.lua')
New from version 0.1.0.224. This command will load and execute different script from file system (this is the parameter). Warning: no dirty check of current script is done! So probably you want to have current script saved before executing this one.

Code: Select all

lmc_get_window_title()
From 0.1.0.233. The function returns title of active window. Useful if you want different behaviour of macros depending of active application.
Petr Medek
LUAmacros author

Post Reply