I have created a script which places some text when i press a short key.
Now the problem is that i have inserted the % sign in the text, like 100%,.
When ever i try to run the script, it gives an error that "This parameter contains a variable name missing its ending percent sign".
Please tell me how to put a percent sign in a text..
thanks
How to put % sign in text?
Started by
mqrafique
, Apr 16 2012 01:00 PM
5 replies to this topic
#1
Posted 16 April 2012 - 01:00 PM
#2
Posted 16 April 2012 - 01:02 PM
by the way this is the complete script below the dotted line
................................................................................
................................................................................
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Recommended for catching common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
f1::
Send Glass Bricks Australia(EE 211333)
return
f2::
Send Glass Bricks Australia(EE 211333) {Enter}Glass Bricks Australia (GBA) is 100% Australian owned and operated. {Enter}We specialise in the manufacture quality glass brick panels, {Enter}Do It Yourself glass brick kits and professional installations. {Enter}http://www.glassbricksaustralia.com.au/
return
#3
Posted 16 April 2012 - 01:03 PM
the % sign in line number 9 gives the error as described in the first post..
#4
Guests
Posted 16 April 2012 - 01:05 PM
use `% <!-- m -->http://www.autohotke..._EscapeChar.htm<!-- m -->
or SendRaw.
For sending such "large" texts I'd recommend using the clipboard (pasting it) Clip() is very useful for this <!-- m -->http://www.autohotke....html#clipboard<!-- m --> as it retains the clipboard content
or SendRaw.
For sending such "large" texts I'd recommend using the clipboard (pasting it) Clip() is very useful for this <!-- m -->http://www.autohotke....html#clipboard<!-- m --> as it retains the clipboard content
#5
Posted 16 April 2012 - 01:26 PM
the escape character worked.. thanks a lot
#6
Posted 16 April 2012 - 01:35 PM
If you want to be a god-like man :
Text := Chr(37) Msgbox %Text%




