Created
March 26, 2015 18:22
-
-
Save lintalist/40e3c7d01be459dc69a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BundleFormat: 1 | |
Name: Support | |
Description: Support bundle for Lintalist | |
Author: Lintalist | |
TitleMatch: | |
Patterns: | |
- LLPart1: take call | |
LLPart2: | |
LLKey: #f12 | |
LLShorthand: | |
LLScript: ; lines starting with _ indicate multiline edits otherwise single line | |
; if you want to use a local variable use |[[var=localvariablename]] | |
; a file "latestcall.txt" will be created in tmpscrpts\ | |
; if you want to change it you can do so at the FileAppend line near the end | |
SetWorkingDir, %A_ScriptDir% | |
template= | |
(join`n | |
SessionID: | |
Portal: | |
Language: | |
Customer: | |
_Question: | |
Representative's Start Time: | |
OS: | |
Browser: | |
Company: | |
Email: | |
Account ID: | |
Representative:|[[var=myname]] | |
) | |
Loop, parse, template, `n | |
{ | |
Question:=A_LoopField | |
If InStr(Question,"|") | |
{ | |
Value:=StrSplit(Question,"|").2 | |
Question:=StrSplit(Question,"|").1 | |
} | |
Gui, Add, Text,, % "&" A_Index " - " Question | |
If SubStr(Question,1,1) = "_" | |
Gui, Add, Edit, w200 vInput%A_Index% w400 R5, % value | |
Else | |
Gui, Add, Edit, w200 vInput%A_Index% w400, % value | |
question:="",value:="" | |
} | |
Gui, Add, Button, gSave w200, &Save | |
Gui, Add, Button, xp+210 yp gGuiClose w200, &Close | |
Gui, Show | |
Return | |
Save: | |
Gui, Submit, Hide | |
Loop, parse, template, `n | |
{ | |
output .= StrSplit(A_LoopField,"|").1 A_Space Input%A_Index% "`n" | |
} | |
FileDelete, latestcall.txt | |
FileAppend, %output%, latestcall.txt | |
ExitApp | |
Return | |
GuiClose: | |
ExitApp | |
- LLPart1: [[File=tmpscrpts\latestcall.txt]] | |
LLPart2: Latest call | |
LLKey: | |
LLShorthand: | |
LLScript: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment