Some characters are not sent when... sending.

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
HexaGun81
Posts: 1
Joined: 31 May 2023, 10:02

Some characters are not sent when... sending.

Post by HexaGun81 » 31 May 2023, 10:07

Why does using the "Send" function not produce the "#/" output as stored in the text variable ?? I tried escape characters "\" and "`" but doesn't work either ??

Code: Select all

!F1::{
	txt :=
(
"Ticket : [CSILLL:#/]
Task : "
)
	Send txt
}
[Mod edit: [code][/code] tags added.]

User avatar
boiler
Posts: 17048
Joined: 21 Dec 2014, 02:44

Re: Some characters are not sent when... sending.

Post by boiler » 31 May 2023, 10:09

The # character is a symbol to indicate the Win key is to be applied to the next key. Use SendText instead of Send.

gregster
Posts: 9056
Joined: 30 Sep 2013, 06:48

Re: Some characters are not sent when... sending.

Post by gregster » 31 May 2023, 10:11

Or you could put braces around the #: {#}
See https://www.autohotkey.com/docs/v2/lib/Send.htm#keynames

Post Reply

Return to “Ask for Help (v2)”