Formatting text in clipbaord

Get help with using AutoHotkey and its commands and hotkeys
cebitman
Posts: 1
Joined: 23 Mar 2017, 10:14

Formatting text in clipbaord

23 Mar 2017, 10:30

Hi, I want to insert standard replies to emails using AHK,this is my script:

Code: Select all

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

:*:q1::
clipboard=Yes we do have availability for you and we would be delighted if you chose to stay with us. The cost will be £11.50 per teenager/adult per night and £8.50 per night per child (those in nappies are free). There is a ^i^bminimum two night fee^b^i at weekends and three night fee over Bank Holidays (when the charge is £15 per adult and £10 per child). Book Now at http://www.google.co.uk/`n!^2IT Camp!^2
Send ^v
Exit 
I've included shortcut keys ^b, ^i, !^2, to format the text but it always appears as typed rather than taking the formatting. Can anyone tell me what I'm doing wrong?
Thank you.
4GForce
Posts: 553
Joined: 25 Jan 2017, 03:18
GitHub: 4GForce

Re: Formatting text in clipbaord

23 Mar 2017, 11:54

If you want the keys to be processed by send then don't use the clipboard to paste the text.

Code: Select all

:*:q1::
Send Yes we do have availability for you and we would be delighted if you chose to stay with us. The cost will be £11.50 per teenager/adult per night and £8.50 per night per child (those in nappies are free). There is a ^i^bminimum two night fee^b^i at weekends and three night fee over Bank Holidays (when the charge is £15 per adult and £10 per child). Book Now at http://www.google.co.uk/`n!^2IT Camp!^2
Exit 

Return to “Ask For Help”

Who is online

Users browsing this forum: fernsehen123, maleko48, Sabestian Caine, teadrinker and 139 guests