how to create a short cut for start button

Rithesh nayak 21 Reputation points
2022-02-01T02:28:54.14+00:00

I want a short cut for the start button. like short cut for any other app, is there a way to create a shortcut for the start button in windows 10.

how to create a short cut for start button.

170056-image.png

a short cut like this but when i click it the start menu should open.

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,423 questions
0 comments No comments
{count} votes

Accepted answer
  1. Castorix31 81,726 Reputation points
    2022-02-01T09:10:36.33+00:00

    You can just create a shortcut to your exe where you simulate [Ctrl] + [Esc] :

                        INPUT input[4];
                        memset(input, 0, 4 * sizeof(input[0]));
                        input[0].type = INPUT_KEYBOARD;
                        input[0].ki.wScan = (WORD)MapVirtualKey(VK_CONTROL, 0);
                        input[0].ki.wVk = VK_CONTROL;
                        input[1].type = INPUT_KEYBOARD;
                        input[1].ki.wScan = (WORD)MapVirtualKey(VK_ESCAPE, 0);
                        input[1].ki.wVk = VK_ESCAPE;
                        input[2] = input[1];
                        input[2].ki.dwFlags = KEYEVENTF_KEYUP;
                        input[3] = input[0];
                        input[3].ki.dwFlags = KEYEVENTF_KEYUP;
                        SendInput(4, input, sizeof(input[0]));
    
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful