Extending ShortcutKeys
It is quite easy to extend ShortcutKeys to accept different methods of ActionKey presses or signalling. The Serial Port Extension is an example of this.
All the handling is done trough ActionKey.dll. Here is a template library in Delphi. It should be possible in C, too.
library ActionKey;
procedure ActionKeyStartListen(ParamV: PChar); stdcall;
begin
end;
procedure ActionKeyStopListen; stdcall;
begin
end;
function ActionKeyIsAKToggle: boolean; stdcall;
begin
ActionKeyIsAKToggle:=false;
end;
procedure ActionKeySetToggled(State: boolean); stdcall;
begin
end;
function ActionKeyIsCustom: boolean; stdcall;
begin
ActionKeyIsCustom:=true;
end;
exports ActionKeyStartListen,ActionKeyStopListen,ActionKeyIsAKToggle,ActionKeySetToggled,ActionKeyIsCustom;
begin
end.