Help with AutoHotKey

Posts 115 of 29 · Page 1 of 2
Help with AutoHotKey
So AutoHotKey doesn't allow for these "alt codes" characters. Example: m̲p̲g̲h̲

I'm kind of new to this so does anyone know how I could make the script accept those type of "alt codes" because when I do it, I get an error.

Code:
q::q̲
Error Message
I do not understand what you're talking about.
Quote Originally Posted by afiqhebat View Post
I do not understand what you're talking about.
So basically I'm reassigning keys on my keyboard using AutoHotKey program. The script looks like this:
Code:
q::q̲
and it gives me an error which is:


I want to replace the function of q on my keyboard to q̲ . So everytime I press q on my keyboard it types q̲ not q.

My question is, how can I make this error go away and assign the new key.
I don't know much about this stuff, but could it be that you're missing the "Return" or some kind of command to stop the code from running?

https://autohotkey.com/docs/Tutorial.htm#s12 Found this, hopefully it's of some help.
Quote Originally Posted by wan View Post
I don't know much about this stuff, but could it be that you're missing the "Return" or some kind of command to stop the code from running?

https://autohotkey.com/docs/Tutorial.htm#s12 Found this, hopefully it's of some help.

Quote Originally Posted by afiqhebat View Post
Yeah try putting return.
Quote Originally Posted by Psychotic View Post
'this program does not contain a recognized action'

debugging is a number one skill every programmer should have. Simply reading that tells you that you didn't tell the program to do anything. Like others have come to the conclusion after a pitiful 3 posts you need to give it an action. Return it to avoid the error but I'm unsure in how you're using the alt codes. If you're trying to put it in a string then I think AHK has a different method of doing that.
I've tried the return function

Code:
q::
   Send, q̲
Return
̲
and it doesn't give out an error but it does type out the letter q either. It types out this character: ̲
Any other ways?
Whatever your trying to do in AHK can be done with the program i linked you
Yeah try putting return.
'this program does not contain a recognized action'

debugging is a number one skill every programmer should have. Simply reading that tells you that you didn't tell the program to do anything. Like others have come to the conclusion after a pitiful 3 posts you need to give it an action. Return it to avoid the error but I'm unsure in how you're using the alt codes. If you're trying to put it in a string then I think AHK has a different method of doing that.
So I need to understand what's the point of your script or why would you need the use of the alt codes? Like in what context would they be needed? If I know this I can probably whip up the script for you or the segment you need for the alt codes.
You need to use the specify the character using its unicode hex representation, otherwise when AHK tries to read the script it will do weird shit. A quick Google reveals the specifier is A757.

Code:
Send {U+A757}
See how that goes.
Quote Originally Posted by Psychotic View Post
So I need to understand what's the point of your script or why would you need the use of the alt codes? Like in what context would they be needed? If I know this I can probably whip up the script for you or the segment you need for the alt codes.
Well I want to be able to type in underlines with these alt codes. So if I find each letter on the keyboard with it, this is possible. Though, I really only need one correct script for 1 letter and I can do the rest.


- - - Updated - - -

Quote Originally Posted by master131 View Post
You need to use the specify the character using its unicode hex representation, otherwise when AHK tries to read the script it will do weird shit. A quick Google reveals the specifier is A757.

Code:
Send {U+A757}
See how that goes.
Tried it and it has this really weird character. It gives out this character: 
What did you search? Maybe I'll try finding it or something
Try:

q::
send, q
SendInput, q

Return
Posts 115 of 29 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?