Macro from AutoHotKey

10 views
Skip to first unread message

Richard Tidd

unread,
Oct 4, 2018, 4:57:38 PM10/4/18
to Quick Access Popup Support
I am trying to get this script working in QAP, but have not had any luck.  Anyone help me with formatting?  It simply puts in current time, date and a little text.

:*ro:ttic::  ; This hotstring replaces "tdt" with the current date and time via the commands below.
FormatTime, CurrentDateTime,, M/d/yyyy h:mm tt  ; It will look like 9/1/2005 3:53 PM
SendInput %CurrentDateTime%, RLT - Invoiced and tagged unpaid.  Invoice at end of note.
return

Thanks in advaince!
Rick

Jean Lalonde

unread,
Oct 4, 2018, 5:10:40 PM10/4/18
to Quick Access Popup Support
Hi Richard,

Did you put this code inside the Snippet itself? If yes, it will not work because Snippets do not support the full AHK macro language.

But what you can do is:

1) put the two middle lines of your code in an AHK script file (with .ahk extension)
FormatTime, CurrentDateTime,, M/d/yyyy h:mm tt  ; It will look like 9/1/2005 3:53 PM
SendInput %CurrentDateTime%, RLT - Invoiced and tagged unpaid.  Invoice at end of note.

2) add a QAP Application favorite to your menu pointing to this script file (assuming you have AHK installed)

3) and set the Hotstring for "ttic" in the "Edit favorite", tab "Menu Options". This will launch the script.

I tested it. Proof here: 10/4/2018 5:09, RLT - Invoiced and tagged unpaid.  Invoice at end of note.

Jean
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages