How to Program F10 Key to Lock My Windows 10 Dell PC












0















I own a Dell Inspiron 5555 laptop running Windows 10. It comes with two blank function keys, F7 and F10. I often leave my computer temporarily and want to lock it, so I want to program F10 to lock my PC. I have looked all over for the answer and have not found any method that works for me. F7 is also an option if F10 is a reserved key, but it has not worked for me either. Please let me know how I can accomplish this, or if it is not possible.



NOTE: I know that I can use Windows Key+L, but function keys are more convenient.










share|improve this question



























    0















    I own a Dell Inspiron 5555 laptop running Windows 10. It comes with two blank function keys, F7 and F10. I often leave my computer temporarily and want to lock it, so I want to program F10 to lock my PC. I have looked all over for the answer and have not found any method that works for me. F7 is also an option if F10 is a reserved key, but it has not worked for me either. Please let me know how I can accomplish this, or if it is not possible.



    NOTE: I know that I can use Windows Key+L, but function keys are more convenient.










    share|improve this question

























      0












      0








      0








      I own a Dell Inspiron 5555 laptop running Windows 10. It comes with two blank function keys, F7 and F10. I often leave my computer temporarily and want to lock it, so I want to program F10 to lock my PC. I have looked all over for the answer and have not found any method that works for me. F7 is also an option if F10 is a reserved key, but it has not worked for me either. Please let me know how I can accomplish this, or if it is not possible.



      NOTE: I know that I can use Windows Key+L, but function keys are more convenient.










      share|improve this question














      I own a Dell Inspiron 5555 laptop running Windows 10. It comes with two blank function keys, F7 and F10. I often leave my computer temporarily and want to lock it, so I want to program F10 to lock my PC. I have looked all over for the answer and have not found any method that works for me. F7 is also an option if F10 is a reserved key, but it has not worked for me either. Please let me know how I can accomplish this, or if it is not possible.



      NOTE: I know that I can use Windows Key+L, but function keys are more convenient.







      dell-inspiron lock function-keys






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 15 at 0:25









      AlwaysBeProgrammingAlwaysBeProgramming

      12




      12






















          2 Answers
          2






          active

          oldest

          votes


















          0














          You can use AutoHotKey to assign a script to any key.



          Just assign the following command to F10:



          %windir%System32rundll32.exe user32.dll,LockWorkStation





          share|improve this answer
























          • I have never heard of AutoHotKey before. I looked through the documentation and could not fix this error: This line contains an unrecognized command. It occurs in the line of code identical to the one you provided. What syntax am I missing?

            – AlwaysBeProgramming
            Jan 15 at 1:33











          • @AlwaysBeProgramming it could be the % signs. Use the full path c:windowssystem32...

            – Keltari
            Jan 15 at 1:35













          • Actually, rundll32 should be in your path, you probably can just drop the folders

            – Keltari
            Jan 15 at 1:36











          • I tried both of those options and neither worked. Just to clarify, what do you mean by "drop the folders"? I took it to mean to get rid of C:Windows` ...`. Am I right?

            – AlwaysBeProgramming
            Jan 15 at 3:10



















          0














          Based on the answer by @keltari, the following script for AutoHotKey should work:



          f10::Run rundll32.exe user32.dll`,LockWorkStation


          Note that per the official AutoHotKey documentation on the Run command, commas must be escaped with a backtick ( ` ).






          share|improve this answer
























          • Great. Is there any way I can make it so that the command runs as an alternative function (e.g. F1=mute/unmute, F2=lower volume, etc.)?

            – AlwaysBeProgramming
            Jan 15 at 14:10











          • If you do not wish to simply override F10 to make it lock the PC, you can use a key combo instead e.g. replace f10 with something like +f10 which would then lock the PC with Shift + F10. Unfortunately, using the actual Function or Func keys typically isn't possible in my experience.

            – Anaksunaman
            Jan 15 at 14:58











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1394316%2fhow-to-program-f10-key-to-lock-my-windows-10-dell-pc%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          You can use AutoHotKey to assign a script to any key.



          Just assign the following command to F10:



          %windir%System32rundll32.exe user32.dll,LockWorkStation





          share|improve this answer
























          • I have never heard of AutoHotKey before. I looked through the documentation and could not fix this error: This line contains an unrecognized command. It occurs in the line of code identical to the one you provided. What syntax am I missing?

            – AlwaysBeProgramming
            Jan 15 at 1:33











          • @AlwaysBeProgramming it could be the % signs. Use the full path c:windowssystem32...

            – Keltari
            Jan 15 at 1:35













          • Actually, rundll32 should be in your path, you probably can just drop the folders

            – Keltari
            Jan 15 at 1:36











          • I tried both of those options and neither worked. Just to clarify, what do you mean by "drop the folders"? I took it to mean to get rid of C:Windows` ...`. Am I right?

            – AlwaysBeProgramming
            Jan 15 at 3:10
















          0














          You can use AutoHotKey to assign a script to any key.



          Just assign the following command to F10:



          %windir%System32rundll32.exe user32.dll,LockWorkStation





          share|improve this answer
























          • I have never heard of AutoHotKey before. I looked through the documentation and could not fix this error: This line contains an unrecognized command. It occurs in the line of code identical to the one you provided. What syntax am I missing?

            – AlwaysBeProgramming
            Jan 15 at 1:33











          • @AlwaysBeProgramming it could be the % signs. Use the full path c:windowssystem32...

            – Keltari
            Jan 15 at 1:35













          • Actually, rundll32 should be in your path, you probably can just drop the folders

            – Keltari
            Jan 15 at 1:36











          • I tried both of those options and neither worked. Just to clarify, what do you mean by "drop the folders"? I took it to mean to get rid of C:Windows` ...`. Am I right?

            – AlwaysBeProgramming
            Jan 15 at 3:10














          0












          0








          0







          You can use AutoHotKey to assign a script to any key.



          Just assign the following command to F10:



          %windir%System32rundll32.exe user32.dll,LockWorkStation





          share|improve this answer













          You can use AutoHotKey to assign a script to any key.



          Just assign the following command to F10:



          %windir%System32rundll32.exe user32.dll,LockWorkStation






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 15 at 0:55









          KeltariKeltari

          51.2k18119170




          51.2k18119170













          • I have never heard of AutoHotKey before. I looked through the documentation and could not fix this error: This line contains an unrecognized command. It occurs in the line of code identical to the one you provided. What syntax am I missing?

            – AlwaysBeProgramming
            Jan 15 at 1:33











          • @AlwaysBeProgramming it could be the % signs. Use the full path c:windowssystem32...

            – Keltari
            Jan 15 at 1:35













          • Actually, rundll32 should be in your path, you probably can just drop the folders

            – Keltari
            Jan 15 at 1:36











          • I tried both of those options and neither worked. Just to clarify, what do you mean by "drop the folders"? I took it to mean to get rid of C:Windows` ...`. Am I right?

            – AlwaysBeProgramming
            Jan 15 at 3:10



















          • I have never heard of AutoHotKey before. I looked through the documentation and could not fix this error: This line contains an unrecognized command. It occurs in the line of code identical to the one you provided. What syntax am I missing?

            – AlwaysBeProgramming
            Jan 15 at 1:33











          • @AlwaysBeProgramming it could be the % signs. Use the full path c:windowssystem32...

            – Keltari
            Jan 15 at 1:35













          • Actually, rundll32 should be in your path, you probably can just drop the folders

            – Keltari
            Jan 15 at 1:36











          • I tried both of those options and neither worked. Just to clarify, what do you mean by "drop the folders"? I took it to mean to get rid of C:Windows` ...`. Am I right?

            – AlwaysBeProgramming
            Jan 15 at 3:10

















          I have never heard of AutoHotKey before. I looked through the documentation and could not fix this error: This line contains an unrecognized command. It occurs in the line of code identical to the one you provided. What syntax am I missing?

          – AlwaysBeProgramming
          Jan 15 at 1:33





          I have never heard of AutoHotKey before. I looked through the documentation and could not fix this error: This line contains an unrecognized command. It occurs in the line of code identical to the one you provided. What syntax am I missing?

          – AlwaysBeProgramming
          Jan 15 at 1:33













          @AlwaysBeProgramming it could be the % signs. Use the full path c:windowssystem32...

          – Keltari
          Jan 15 at 1:35







          @AlwaysBeProgramming it could be the % signs. Use the full path c:windowssystem32...

          – Keltari
          Jan 15 at 1:35















          Actually, rundll32 should be in your path, you probably can just drop the folders

          – Keltari
          Jan 15 at 1:36





          Actually, rundll32 should be in your path, you probably can just drop the folders

          – Keltari
          Jan 15 at 1:36













          I tried both of those options and neither worked. Just to clarify, what do you mean by "drop the folders"? I took it to mean to get rid of C:Windows` ...`. Am I right?

          – AlwaysBeProgramming
          Jan 15 at 3:10





          I tried both of those options and neither worked. Just to clarify, what do you mean by "drop the folders"? I took it to mean to get rid of C:Windows` ...`. Am I right?

          – AlwaysBeProgramming
          Jan 15 at 3:10













          0














          Based on the answer by @keltari, the following script for AutoHotKey should work:



          f10::Run rundll32.exe user32.dll`,LockWorkStation


          Note that per the official AutoHotKey documentation on the Run command, commas must be escaped with a backtick ( ` ).






          share|improve this answer
























          • Great. Is there any way I can make it so that the command runs as an alternative function (e.g. F1=mute/unmute, F2=lower volume, etc.)?

            – AlwaysBeProgramming
            Jan 15 at 14:10











          • If you do not wish to simply override F10 to make it lock the PC, you can use a key combo instead e.g. replace f10 with something like +f10 which would then lock the PC with Shift + F10. Unfortunately, using the actual Function or Func keys typically isn't possible in my experience.

            – Anaksunaman
            Jan 15 at 14:58
















          0














          Based on the answer by @keltari, the following script for AutoHotKey should work:



          f10::Run rundll32.exe user32.dll`,LockWorkStation


          Note that per the official AutoHotKey documentation on the Run command, commas must be escaped with a backtick ( ` ).






          share|improve this answer
























          • Great. Is there any way I can make it so that the command runs as an alternative function (e.g. F1=mute/unmute, F2=lower volume, etc.)?

            – AlwaysBeProgramming
            Jan 15 at 14:10











          • If you do not wish to simply override F10 to make it lock the PC, you can use a key combo instead e.g. replace f10 with something like +f10 which would then lock the PC with Shift + F10. Unfortunately, using the actual Function or Func keys typically isn't possible in my experience.

            – Anaksunaman
            Jan 15 at 14:58














          0












          0








          0







          Based on the answer by @keltari, the following script for AutoHotKey should work:



          f10::Run rundll32.exe user32.dll`,LockWorkStation


          Note that per the official AutoHotKey documentation on the Run command, commas must be escaped with a backtick ( ` ).






          share|improve this answer













          Based on the answer by @keltari, the following script for AutoHotKey should work:



          f10::Run rundll32.exe user32.dll`,LockWorkStation


          Note that per the official AutoHotKey documentation on the Run command, commas must be escaped with a backtick ( ` ).







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 15 at 12:02









          AnaksunamanAnaksunaman

          5,33821222




          5,33821222













          • Great. Is there any way I can make it so that the command runs as an alternative function (e.g. F1=mute/unmute, F2=lower volume, etc.)?

            – AlwaysBeProgramming
            Jan 15 at 14:10











          • If you do not wish to simply override F10 to make it lock the PC, you can use a key combo instead e.g. replace f10 with something like +f10 which would then lock the PC with Shift + F10. Unfortunately, using the actual Function or Func keys typically isn't possible in my experience.

            – Anaksunaman
            Jan 15 at 14:58



















          • Great. Is there any way I can make it so that the command runs as an alternative function (e.g. F1=mute/unmute, F2=lower volume, etc.)?

            – AlwaysBeProgramming
            Jan 15 at 14:10











          • If you do not wish to simply override F10 to make it lock the PC, you can use a key combo instead e.g. replace f10 with something like +f10 which would then lock the PC with Shift + F10. Unfortunately, using the actual Function or Func keys typically isn't possible in my experience.

            – Anaksunaman
            Jan 15 at 14:58

















          Great. Is there any way I can make it so that the command runs as an alternative function (e.g. F1=mute/unmute, F2=lower volume, etc.)?

          – AlwaysBeProgramming
          Jan 15 at 14:10





          Great. Is there any way I can make it so that the command runs as an alternative function (e.g. F1=mute/unmute, F2=lower volume, etc.)?

          – AlwaysBeProgramming
          Jan 15 at 14:10













          If you do not wish to simply override F10 to make it lock the PC, you can use a key combo instead e.g. replace f10 with something like +f10 which would then lock the PC with Shift + F10. Unfortunately, using the actual Function or Func keys typically isn't possible in my experience.

          – Anaksunaman
          Jan 15 at 14:58





          If you do not wish to simply override F10 to make it lock the PC, you can use a key combo instead e.g. replace f10 with something like +f10 which would then lock the PC with Shift + F10. Unfortunately, using the actual Function or Func keys typically isn't possible in my experience.

          – Anaksunaman
          Jan 15 at 14:58


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1394316%2fhow-to-program-f10-key-to-lock-my-windows-10-dell-pc%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Plaza Victoria

          In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

          How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...