Sneax x 4 Posted August 6, 2019 Hi, want to activate my script with shift+H, in the sqf i have to specify the keys in DIK KeyCodes https://community.bistudio.com/wiki/DIK_KeyCodes so what is Shift+H? if i combine 0x2A;0x23 or 0x2A,0x23 or 0x2A+0x23 or 0x2A0x23 or 0x2A 0x23 it not works... how? Share this post Link to post Share on other sites
Larrow 2802 Posted August 7, 2019 /* * Combination keys */ #define INPUT_CTRL_OFFSET 512 #define INPUT_SHIFT_OFFSET 1024 #define INPUT_ALT_OFFSET 2048 + the DIK for the key 0x23 A little confused as you are posting in the config forum. The above would be used only in specific situations, like decoding action keys. How are you activating? You say in SQF, but are you not using a keyDown/Up event? Of which should already provide you whether shift, ctrl or alt are held. #include "\a3\ui_f\hpp\definedikcodes.inc" findDisplay 46 displayAddEventHandler [ "KeyDown", { params[ "_display", "_keyCode", "_shft", "_ctr", "_alt" ]; if ( _shft && { _keyCode isEqualTo DIK_H } ) then { hint "Shift & H pressed"; }; }]; 1 Share this post Link to post Share on other sites
Dedmen 2590 Posted August 8, 2019 On 8/7/2019 at 8:33 AM, Larrow said: The above would be used only in specific situations, like decoding action keys. I guess they are used in config UserActions too. Some more details about what OP is trying to do would be very helpful. 1 Share this post Link to post Share on other sites