How do I include the % sign (percentage sign) in a script?
I have ^::C
Send coob%k{Enter}
return
But I get an error suggesting there is something missing "Error: This parameter contains a variable name missing its ending percent sign. The program will exit"
I get the same message if I add quotation marks before and after "cookb%k".
Any suggestions?
Many thanks,
David
% sign Topic is solved
Re: % sign Topic is solved
Need to add a ` before the %. Refer to this:
https://www.autohotkey.com/docs/commands/_EscapeChar.htm
https://www.autohotkey.com/docs/commands/_EscapeChar.htm
Re: % sign
I tried that but it did not work either. I tried using single quote before the percentage sign and a single quote before and after the percentage sign and enclosing the whole word in double quotes. But I still get the same error message!
Re: % sign
I apologise most sincerely. I was using the single quote (found on an English keyboard beneath the @) and not the ` accent found in the top left key on my English keyboard. That does work and thank you very much for your help.
Who is online
Users browsing this forum: No registered users and 275 guests