Hello all-
I have a need to send the percent sign % as part of text string ? eg, "... activity will be assessed as ___ % of normal."
I am a rudimentary user of scripts and I don't really know what the % key means in a script.
Thanx!
Bob
Send % as a keystroke
-
- Posts: 4
- Joined: 10 May 2016, 09:52
Re: Send % as a keystroke
Well, it has a special meaning - it is used for retrieving the contents of variables and, as a single %, for "forcing expression syntax":
see https://www.autohotkey.com/docs/Variables.htm
So, you'll have to "escape" the character or make otherwise clear that it is a literal %:
Some Options:
see https://www.autohotkey.com/docs/Variables.htm
So, you'll have to "escape" the character or make otherwise clear that it is a literal %:
Some Options:
Code: Select all
send ... activity will be assessed as ___ `% of normal. ; escaped %
send % "... activity will be assessed as ___ % of normal." ; forced expression
; or use SendInput
sendInput ... activity will be assessed as ___ `% of normal.
Who is online
Users browsing this forum: No registered users and 318 guests