Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8694239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:44:22+00:00 2026-06-13T00:44:22+00:00

I would like to activate sticky keys by pressing 1 button, instead of pressing

  • 0

I would like to activate sticky keys by pressing 1 button, instead of pressing shift 5 times, which is the default way.

If I were to do

F9::Send {LShift 5}

pressing F9 will yield nothing.

I also tried

F9::
Send {LShift}
sleep 50
Send {LShift}
sleep 50
Send {LShift}
sleep 50
Send {LShift}
sleep 50
Send {LShift}
sleep 50
return

Are there any reasons as to why it’s not working?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T00:44:23+00:00Added an answer on June 13, 2026 at 12:44 am
    SPI_GETSTICKYKEYS:=0x003A
    SPI_SETSTICKYKEYS:=0x003B
    SKF_STICKYKEYSON:=0x1
    
    VarSetCapacity(STICKYKEYS,8) ; DWORD cbSize;DWORD dwFlags;
    NumPut(8,&STICKYKEYS,"UInt")
    F9::
      DllCall("SystemParametersInfo","UInt",SPI_GETSTICKYKEYS,"UInt",8,"PTR",&STICKYKEYS,"UInt",0)
      dwFlags:=NumGet(&STICKYKEYS,4,"Uint")
      If (dwFlags & SKF_STICKYKEYSON)
        dwFlags-=SKF_STICKYKEYSON
      else dwFlags|=SKF_STICKYKEYSON
      ToolTip % "STICKYKEYS are " (dwFlags & SKF_STICKYKEYSON ? "ON" : "OFF")
      SetTimer,ToolTipOff,-1000
      NumPut(dwFlags,&STICKYKEYS,4,"UInt")
      DllCall("SystemParametersInfo","UInt",SPI_SETSTICKYKEYS,"UInt",8,"PTR",&STICKYKEYS,"UInt",0)
    Return
    ToolTipOff:
    

    The code is from the Autohotkey forums at http://www.autohotkey.com/community/viewtopic.php?f=1&t=93650

    A note for anyone wanting to use the code: I think you have to put it at the top of your script for it to work. In my script of hotkeys, placing it in the middle, and pressing F9 to activate sticky keys caused some weird things to happen: The cursor jumped around, some folders were launched, the script exited, etc. I’m guessing that it activated other hotkeys nearby?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like by clicking on a button to activate the clicking of 2
I would like to activate a .mouseover function only if the mouse lays down
I would like to create a daily event, that is activated with a button
I would like to know if there is a way that jquery or some
I'm using a jquery plugin for inline editing. But i would like to activate
I would like to write a common method which would check if a form
I would like to trigger the js function onClick from button. for some reason
I would like to activate protectedAllowed option from checkStyle in my pom.xml. How can
I would like to activate continuous integration for a Prism application on a TFS
I would like to activate a piece of code in my MDI form when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.