Lua commands

Documentation. First post is always kind of manual page, being continuously updated by author. Following posts are discussion about the topic.
Post Reply
jonny
Posts: 18
Joined: 22 Aug 2012, 19:35

Lua commands

Post by jonny » 09 Jan 2022, 13:14

Hi,

In HIDMacros I have this code:

<Macro>
<Device>Keyb2</Device>
<Name>FsimX</Name>
<KeyCode>49</KeyCode>
<Direction>down</Direction>
<Action>SCR</Action>
<Sequence></Sequence>
<SCEvent></SCEvent>
<XPLCommand></XPLCommand>

<ScriptSource>WshShell.AppActivate("Microsoft Flight Simulator X")
HIDMacros.MouseClick 2800, 20, 0
</ScriptSource>

<SCText>0</SCText>
<SCParams></SCParams>
<Command></Command>
</Macro>

When I press 'FsimX' key the "Microsoft Flight Simulator X" window will get the focus and the mouse pointer vill go to 2800 20. It works well for me as well as with other program I use together with FSX.

Is it possible to this with LUAMacros as well?
If so, what LUA commands sould I use to do the same?


Regards
Jonny

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

Re: Lua commands

Post by admin » 10 Jan 2022, 08:29

No, mouse clicks are not supported in luamacros
Petr Medek
LUAmacros author

Post Reply