how can I use ; ass input key? Topic is solved
how can I use ; ass input key?
Hello! I want to use RAlt & ; an input key but AutoHotKey understands ; as a comment.
Is there a way to make ; an input key in combination with RAlt?
Thank you!
Is there a way to make ; an input key in combination with RAlt?
Thank you!
Re: how can I use ; ass input key?
You tried it? What happened? Where is your script?
Explained: Comments
Code: Select all
#Requires AutoHotkey v1.1.33
>!;::MsgBox 123
Re: how can I use ; ass input key?
hello and thank you for replying, but it doesn't work!
here is my script:
Still understands ; as a comment
here is my script:
Code: Select all
>RAlt & ;::Send("!od")
Re: how can I use ; ass input key?
I didn't imply that your script worked, since I didn't know what your script was.
And now for the big question: what happened when you tried my script, by itself with no other code, and no other scripts running?
Read: Escape sequences
And now for the big question: what happened when you tried my script, by itself with no other code, and no other scripts running?
Read: Escape sequences
Re: how can I use ; ass input key?
This that I sent before is your script, isn't it?
I don’t want to use ! but Ralt with ;
Code: Select all
>RAlt & ;::Send("!od")
Re: how can I use ; ass input key?
I’m sorry! I posted my question in the wrong forum. I’m using v2.
Sorry! Is there for version 2 a solution?
Or should I repost my question in v2 forum?
Sorry! Is there for version 2 a solution?
Or should I repost my question in v2 forum?
Re: how can I use ; ass input key? Topic is solved
Please indulge me in a favor. I am interested to know if you would be willing to test the script that I have posted below, to see if it matches your description of your need. Our scripts are not the same, and different scripts may yield different results. That is why I have asked.
The second favor is to know if you could read the Escape sequences section describing the use of `;.
Code: Select all
#Requires AutoHotkey v2.0
>!;::MsgBox 123
f & `;::MsgBox 456
Last edited by mikeyww on 07 Jun 2023, 06:37, edited 2 times in total.
Re: how can I use ; ass input key?
No need. I moved your topic to v2.
Btw, you probably have heard about modifiers... https://www.autohotkey.com/docs/v2/Hotkeys.htm#Symbols (which are recommended, whenever there can be applied). There is a ! modifier...
Re: how can I use ; ass input key?
It worked now with `
No I didn’t read the page “Escape sequences”.
None of the search keywords I used trying to find a solution brought me to this page!
I searched for special characters to use as input keys.
Thank you again for your assistance.
No I didn’t read the page “Escape sequences”.
None of the search keywords I used trying to find a solution brought me to this page!
I searched for special characters to use as input keys.
Thank you again for your assistance.
Re: how can I use ; ass input key?
I am inferring that you never tried my script. I posted it because it might help you. It's frustrating when the responders' scripts are ignored. It defeats the purpose of the forum.
Re: how can I use ; ass input key?
I don’t understand your reaction!
I did try it and worked. I replied that it worked.
Your first scripts were for v1 and didn’t work because I made the mistake to post my question in the wrong forum.
I apologised for my mistake.
I don’t understand your reaction.
Re: how can I use ; ass input key?
When you wrote, "but it doesn't work!", I think I misinterpreted this, or missed where you described the results of running the script. Sorry if I misunderstood what you wrote.
In any case, the idea here is that you don't need to use RAlt as a prefix key in a custom combination. In most cases, it is better to use !, >!, etc.
In any case, the idea here is that you don't need to use RAlt as a prefix key in a custom combination. In most cases, it is better to use !, >!, etc.
Re: how can I use ; ass input key?
It's alright. I may have not been clear myself.
Re: how can I use ; ass input key?
For what it’s worth, I also never saw that entropy tried mikeyww’s script, and I also was wondering why he doesn’t just run his script. If the comment “It worked with `” was referring to mikeyww’s script, it was misleading because his script didn’t need the semicolon escaped since it wasn’t preceded by a space. Only entropy’s script need that.
Re: how can I use ; ass input key?
For what it’s worth too when I posted that it worked, I meant this script: f & `;::MsgBox 456
I said from the beginning that I wanted to use ; with RAlt
Anyway, when misunderstandings are solved, it's like they never existed in the first place
I said from the beginning that I wanted to use ; with RAlt
Anyway, when misunderstandings are solved, it's like they never existed in the first place
Re: how can I use ; ass input key?
And from the beginning, that's exactly what mikeyww's script does. In fact, his method using only modifier symbols to specify RAlt is much preferred to making a custom combination of a modifier key like RAlt using &. You said you didn't want to use !, so perhaps you are not aware that >! means RAlt. You should still consider using his version because it doesn't kill the use of RAlt for other purposes as is the drawback to the custom combination approach in general.
Re: how can I use ; ass input key?
This forum is the only one where I have gotten 100% of my questions answered and my appreciation, especially to mikeyww who helped me enormously in converting my v1 scripts to v2, is huge.
I’m responsible for the misunderstanding because when I was trying to figure out why mickeyww’s solution didn’t work in my script, I noticed this #Requires AutoHotkey v1.1.33.
Then I realised that I'd posted my question in the wrong forum and I didn’t bother to investigate any further.
Adding to this that I had no idea that >! means RAlt you can imagine why I tried this code >RAlt & ;::Send("!od"), which I posted to mikeyww when he asked me the code I used.
I removed from mikeyww’s code the ! believing that > is the key that modifies the ;, and that mikeyww gave me an example for the left Alt which is !.
When later I saw that ` is the modifier for ; you can imagine that the whole thing got worse in my mind.
With your last post, now I know the difference between RAltand >! and this will also help me in the future.
From last posts, Mikeyww knows that I’m ignorant.
Now you know it too.
Thank you both for your assistance.
I’m responsible for the misunderstanding because when I was trying to figure out why mickeyww’s solution didn’t work in my script, I noticed this #Requires AutoHotkey v1.1.33.
Then I realised that I'd posted my question in the wrong forum and I didn’t bother to investigate any further.
Adding to this that I had no idea that >! means RAlt you can imagine why I tried this code >RAlt & ;::Send("!od"), which I posted to mikeyww when he asked me the code I used.
I removed from mikeyww’s code the ! believing that > is the key that modifies the ;, and that mikeyww gave me an example for the left Alt which is !.
When later I saw that ` is the modifier for ; you can imagine that the whole thing got worse in my mind.
With your last post, now I know the difference between RAltand >! and this will also help me in the future.
From last posts, Mikeyww knows that I’m ignorant.
Now you know it too.
Thank you both for your assistance.
Re: how can I use ; ass input key?
No problem. It just seemed like understanding that > meant "right" was the source of the crossed wires, so I thought I'd throw that out there.
Re: how can I use ; ass input key?
Thank you for clarifying, & thank you, boiler, for the additions.
The relevant documentation section to learn about this is cited below.
Hotkey modifier symbols
The relevant documentation section to learn about this is cited below.
Hotkey modifier symbols