Simba Code:
const
CHATCOMB = [VK_CONTROL, VK_SHIFT, VK_I]; //three keys.
{==============================================================================]
|Call this in your main loop
|Note:
| The reason it checks each key three times in diff order is to ensure that all
| the keys are down at the same time.
| This is to work around a limitation of Simba's IsKeyDown function which caches
| the keys pressed until the function is called (aka the key doesn't have to be down)
[==============================================================================}
procedure CheckForUserinput();
var output: String;
begin
if IsKeyDown(CHATCOMB[0]) and IsKeyDown(CHATCOMB[1]) and IsKeyDown(CHATCOMB[2]) and
IsKeyDown(CHATCOMB[2]) and IsKeyDown(CHATCOMB[0]) and IsKeyDown(CHATCOMB[1]) and
IsKeyDown(CHATCOMB[1]) and IsKeyDown(CHATCOMB[2]) and IsKeyDown(CHATCOMB[0]) then
begin
InputQuery('Chat message', 'Chat:', output);
WriteLn(output); //replace with chatbox.send(output) or whatever it's called
end;
end;
begin
repeat
CheckForUserinput();
until False;
end.
Extending on the note in the code, if this is not done, and you pretty much sequentially (in any order) presses "ctrl" "shift" and "i" the query box will pop up.