basically i want to bind a key so it types an emoji instead of the actual thing
I used this code:
Ins::
I set it to unicode,
then I got this error:
can anyone help me with this?
[Mod edit: Moved to v2 Help.]
How do I bind emojis to a key?
Re: How do I bind emojis to a key?
Save the script in UTF-8 with BOM encoding.
https://www.autohotkey.com/docs/FAQ.htm#nonascii
https://www.autohotkey.com/docs/FAQ.htm#nonascii
What are the parentheses for? Like this, AHk thinks it's a function. Edit: Use Sendi want to bind a key so it types an emoji instead of the actual thing
Code: Select all
Ins::Send ๐ป
Re: How do I bind emojis to a key?
I never did,
Just, copied the emoji, saved as unicode, and it just showed that.
anyways im trying to bind the INS key to an emoji
Just, copied the emoji, saved as unicode, and it just showed that.
anyways im trying to bind the INS key to an emoji
Re: How do I bind emojis to a key?
also, I dont have Unicode with BOM
I'm on windows 7
only things I can save it as are
ANSI
Unicode
Unicode big endian
UTF-8
Unless you're talking about something else,
If so, how do I safe it as UTF-8 with BOM
I'm on windows 7
only things I can save it as are
ANSI
Unicode
Unicode big endian
UTF-8
Unless you're talking about something else,
If so, how do I safe it as UTF-8 with BOM
Re: How do I bind emojis to a key?
Normal Notepad should have it. Try UTF-8 - perhaps it's the correct one.
Win7 is not a problem.
Win7 is not a problem.
Re: How do I bind emojis to a key?
did normal notepad, and i did utf-8 and did the exact thing you said
but it just shows this error:
but it just shows this error:
- Attachments
-
- image.png (7.87 KiB) Viewed 3879 times
Re: How do I bind emojis to a key?
Still the wrong encoding. Try a more advanced editor.
btw, did you make sure to exit old script versions and to only run the new?
btw, did you make sure to exit old script versions and to only run the new?
Re: How do I bind emojis to a key?
what do you mean
im confused
im confused
Re: How do I bind emojis to a key?
That's a warning anyway, not an error - but it looks odd.
Please show your complete code and tell us which AHK version you are using: msgbox % A_AHKversion
I meant, don't run more than one script version of this at the same time. Close old instances first (please look in the system tray, then right-click > Exit).
Please show your complete code and tell us which AHK version you are using: msgbox % A_AHKversion
I meant, don't run more than one script version of this at the same time. Close old instances first (please look in the system tray, then right-click > Exit).
Re: How do I bind emojis to a key?
code i used was Ins::Send and i saved it as a utf-8 and i downloaded AHK as a zip file, the zip name was: AutoHotkey_2.0-a122-f595abc2
( the code u sent that supposed to tell me the version had an error)
( the code u sent that supposed to tell me the version had an error)
Re: How do I bind emojis to a key?
well, then you are trying to use AHK's alpha version (v2), not the latest stable release 1.1.33.02 - but you were trying v1 code.
That explains it - it's not really backwards compatible. Either use version 1.1.33.02 (or older), or use AHK v2 instead.
I am just guessing the v2 syntax, not tested:
That explains it - it's not really backwards compatible. Either use version 1.1.33.02 (or older), or use AHK v2 instead.
I am just guessing the v2 syntax, not tested:
Code: Select all
Ins::Send "๐ป"
Re: How do I bind emojis to a key?
gregster wrote: โ05 Nov 2020, 12:46well, then you are trying to use AHK's alpha version (v2), not the latest stable release 1.1.33.02 - but you were trying v1 code.
That explains it - it's not really backwards compatible. Either use version 1.1.33.02 (or older), or use AHK v2 instead.
I am just guessing here the v2 syntax, not tested:Code: Select all
Ins::Send "๐ป"
tysm!
the code:
Ins::Send ""
worked!
Re: How do I bind emojis to a key?
Cool , here are the v2 docs for further reference: https://lexikos.github.io/v2/docs/AutoHotkey.htm
Re: How do I bind emojis to a key?
this is exactly what i wanted:
Ins::Send ""
Home::Send ""
PgUp::Send ""
del::send ""
end::send ""
pgdn::send ""
numpad7::send ""
numpad8::send ""
numpad9::send ""
numpad4::send ""
numpad5::send ""
numpad6::send ""
numpad1::send ""
numpad2::send ""
numpad3::send ""
numpad0::send ""
and it works! tysm
Ins::Send ""
Home::Send ""
PgUp::Send ""
del::send ""
end::send ""
pgdn::send ""
numpad7::send ""
numpad8::send ""
numpad9::send ""
numpad4::send ""
numpad5::send ""
numpad6::send ""
numpad1::send ""
numpad2::send ""
numpad3::send ""
numpad0::send ""
and it works! tysm
Re: How do I bind emojis to a key?
emoji test: