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 9210089
In Process

The Archive Base Latest Questions

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

I would like to assign the number 1 so that when I press it

  • 0

I would like to assign the number 1 so that when I press it the result is to send to the computer qx and then enter.

1:: Send, qx{ENTER}
q:: Send, jx{Enter}

But then I also want to assign the letter q to send something else to the computer. Is it possible to do this? I’m concerned that if I assigned 1 to something that involves q, then whenever I press 1 q will also be called, and we’ll end up in a loop.

Is there some way to fix it so AHK ‘knows’ when qx gets sent that I don’t want to call the q function (and hence jx)?

  • 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-18T00:59:23+00:00Added an answer on June 18, 2026 at 12:59 am

    Good thinking. The AutoHotKey developers have thought about that and introduced the $ to prevent this “loop”

    example:

    $1::Send, q
    $q::Send, 1
    

    Pressing 1 will generate a q, but due to the $ it will NOT trigger the second hotkey and vise versa.

    So by pacing a $ in front of the q, you will prevent this loop in your situation.

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

Sidebar

Related Questions

I would like to assign a variable instead of the string in my following
I would like to assign a static list of items in a SelectList() to
I have a Customers table and would like to assign a Salesperson to each
I am fetching an array and I would like to assign attributes of items
I have a JQuery plugin function where I would like to assign selectors from
I would like to try to assign a variable value to input hidden field
Would like a for loop in jquery so that: For every hover_link: show hidden
What I would like to do is be able to pass any number of
I would like to be able to send a string of emails at a
I've written a program that highlights numbers and copies them. I would like to

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.