Why do you want to call the shortcut from code?
Don't you want to call the function (the code called by the shorcut)?
In my memory (I'm probably too old for new coding rules) a shortcut is here only to help the user.
My candle burns by both ends, it will not last the night,
But oh my foes and oh my friends, it gives a lovely light
some users tend to get lazy, but i need to call the "ctrl+alt+F5" in code.. i have found a solution kind of but i dont know which ocx or dll to install to call it..
e.g.
CREATE(lvWinShell);
lvWinShell.SendKeys('^%{F4}');
where:
ctrl = ^
alt = %
{F4} = F4
when i get this rite, its going to make the clients life easier and keeps them happy [-o<
Answers
But oh my foes and oh my friends, it gives a lovely light
Don't you want to call the function (the code called by the shorcut)?
In my memory (I'm probably too old for new coding rules) a shortcut is here only to help the user.
But oh my foes and oh my friends, it gives a lovely light
e.g.
CREATE(lvWinShell);
lvWinShell.SendKeys('^%{F4}');
where:
ctrl = ^
alt = %
{F4} = F4
when i get this rite, its going to make the clients life easier and keeps them happy [-o<
http://www.mibuso.com/forum/viewtopic.php?p=136085#136085
is a good solution!