Page 1 of 1

Small useful commands

Posted: 19 Sep 2015, 22:21
by admin
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.