Login Page - Create Account

Support Board


Date/Time: Sat, 08 Feb 2025 02:30:23 +0000



Post From: Remove UpArrow & DownArrow Mappings

[2020-06-18 12:29:05]
User462086 - Posts: 196
remapping worked, but finding 2 keys that aren't used for anything & that had unique key codes proved to be impossible for the particular keyboard i'm using.

instead, i found a way to detect the Fn version of my arrow keys, which are media keys. these constants are:

VK_MEDIA_STOP (Fn + Up Arrow)
VK_MEDIA_PLAY_PAUSE (Fn + Down Arrow)
VK_MEDIA_NEXT_TRACK (Fn + Right Arrow)
VK_MEDIA_PREV_TRACK (Fn + Left Arrow)

full list here:

https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes


//to detect the keypress use this function:

bool keydown(int key){
return (GetKeyState(key) & 0x100) != 0;
}

//and call it with something like:

bool mediaStop = keydown(VK_MEDIA_STOP);

this is actually a much better solution because shortcuts to native trading functionality can be used alongside algo assisted shortcuts.
Date Time Of Last Edit: 2020-06-18 12:41:20