Send as HTML

Share your favorite FastKeys commands
Post Reply
ThiasEsseboom
Posts: 8
Joined: Nov 7th, ’22, 16:03

Post by ThiasEsseboom » Nov 7th, ’22, 16:10

Hey all!

I'm very happy with using FastKeys for my work. Sending the same message over and over and over again made a lot easier with FastKeys.

Now I'm comfortable using FastKeys, I was working on a Gui script, and got it running as good as possible. However, I would like to send out the text on the Send line as HTML.

I'm using ZenDesk a lot for emails, and need to request certain documents over and over again. So I created this script:

Code: Select all

Gui, New, AlwaysOnTop, Test
Gui, Add, Text,,PL Name
Gui, Add, Edit, vName
Gui, Add, Text,,LinkID:
Gui, Add, Edit, vLinkID
Gui, Add, Text,,LinkPOA:
Gui, Add, Edit, vLinkPOA
Gui, Add, Text,,LinkCredit:
Gui, Add, Edit, vLinkCredit
Gui, Add, CheckBox, vIDDoc, ID Doc
Gui, Add, CheckBox, vPOA, POA
Gui, Add, CheckBox, vCredit, Credit Card
Gui, Add, Button, Default, Submit1
Gui, Show
return

ButtonSubmit1:
Gui, Submit
Send, Dear %Name% this is a test.{Enter}{Enter}

if (IDDoc = 1)
{
	Send, This is a test test <a href="%LinkID%">ID Link</a>
}
else
Sleep 100

if (POA = 1)
{
	Send, This is a test test <a href="%LinkPOA%">POA Link</a>
}
else 
Sleep 100

if (Credit = 1)
{
	Send, This is a test <a href="%LinkCredit%">Credit Card link</a>
}
else
Sleep 100
Gui, Destroy
return
The Gui works perfectly, but I can't get it to put out the HTML. Is there a way to do this?
User avatar
Tom
Posts: 791
Joined: Nov 24th, ’15, 23:39

Post by Tom » Nov 7th, ’22, 17:00

You can not send HTML format with such a code (only text, like you did). You need to create the texts in FastKeys, use HTML format. Also check Manual Text Input, Selection form, Insert another item and Conditions macros.
ThiasEsseboom
Posts: 8
Joined: Nov 7th, ’22, 16:03

Post by ThiasEsseboom » Nov 7th, ’22, 17:44

Thank you for the advice :-) I will check it out :-D
Post Reply