We made few functions using low level Rapise APIs
g_util.KeyPress(keyCode, press)
to help achieving this. The list of available Key Codes you may find here:
https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes
And here is how it may be used for cover the subject of this topic:
function PressAlt()
{
g_util.KeyPress("VK_MENU", true);
}
function ReleaseAlt()
{
g_util.KeyPress("VK_MENU", false);
}
function PressCtrl()
{
g_util.KeyPress("VK_CONTROL", true);
}
function ReleaseCtrl()
{
g_util.KeyPress("VK_CONTROL", false);
}
function PressShift()
{
g_util.KeyPress("VK_SHIFT", true);
}
function ReleaseShift()
{
g_util.KeyPress("VK_SHIFT", false);
}
function PressWin()
{
g_util.KeyPress("VK_LWIN", true);
}
function ReleaseWin()
{
g_util.KeyPress("VK_LWIN", false);
}