Page 1 of 1

Lua commands

Posted: 09 Jan 2022, 13:14
by jonny
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

Re: Lua commands

Posted: 10 Jan 2022, 08:29
by admin
No, mouse clicks are not supported in luamacros