Compare commits
48 Commits
Author | SHA1 | Date | |
---|---|---|---|
9b9405c7d1 | |||
0fb614940f | |||
de5e7b88e6 | |||
82ef19a67d | |||
97f2d2382b | |||
d02ef808f8 | |||
e10c04c253 | |||
d537a9bf7b | |||
2eff8ca4ad | |||
ab12192837 | |||
e851dc5c3c | |||
5ba0c5a215 | |||
7d0838567e | |||
f19018ff70 | |||
83bd0d3e6c | |||
b73be18a62 | |||
ab8f81db2c | |||
9b7d00648e | |||
65b040054a | |||
7e3f293f8c | |||
52e9d99a2d | |||
bcfad04ecb | |||
6204f7f803 | |||
21b9715abe | |||
5fa6935537 | |||
ba0b26b768 | |||
487cd91888 | |||
f4d9a35e51 | |||
4c8942ce48 | |||
f936b26c98 | |||
a2dcf8387e | |||
cf7dc49533 | |||
9802fc7af0 | |||
c3c2da7120 | |||
2bf4b8e8a9 | |||
e89b64463f | |||
6f2dc0d44e | |||
7adfefb670 | |||
03cfca5549 | |||
6acd69fd87 | |||
a90f2077b6 | |||
e6bd22263e | |||
67dd119939 | |||
98ec36cd5c | |||
f0f149e1c9 | |||
c9fced6b6d | |||
f6d0981b3b | |||
ba54476683 |
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
*.code-workspace
|
||||||
|
SmartGooey/*
|
||||||
|
Projects/*
|
@ -1,4 +1,7 @@
|
|||||||
#Include, func.ahk
|
#Include, func.ahk
|
||||||
|
|
||||||
|
; Holy crap I need to rewrite this for v3...
|
||||||
|
|
||||||
|
|
||||||
SetTitleMatchMode, 2
|
SetTitleMatchMode, 2
|
||||||
|
|
||||||
@ -6,7 +9,7 @@ SetTitleMatchMode, 2
|
|||||||
Gui,+AlwaysOnTop
|
Gui,+AlwaysOnTop
|
||||||
Gui, +ToolWindow
|
Gui, +ToolWindow
|
||||||
|
|
||||||
docfile := ini_getValue(ini, "USpec", "DocFile")
|
Contact := 2
|
||||||
|
|
||||||
CurrTimeEN := GetDateTime("en")
|
CurrTimeEN := GetDateTime("en")
|
||||||
CurrTimeDE := GetDateTime("de")
|
CurrTimeDE := GetDateTime("de")
|
||||||
@ -16,22 +19,197 @@ CurrTimeDE := GetDateTime("de")
|
|||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; The & in front of the letters lets you hold alt and press the first letter instead of having to click on it. That is why its "Mail", not "E-Mail"
|
; The & in front of the letters lets you hold alt and press the first letter instead of having to click on it. That is why its "Mail", not "E-Mail"
|
||||||
|
|
||||||
|
Gui, Add, Radio, x12 y3 w60 h20 Group vLang Checked, &English ; First group of Radio buttons
|
||||||
|
Gui, Add, Radio, x12 y23 w60 h20, &German
|
||||||
|
|
||||||
|
Gui, Add, Radio, x82 y3 w60 h20 Group vAct, &Warrant
|
||||||
|
Gui, Add, Radio, x82 y23 w60 h20, &Demo
|
||||||
|
|
||||||
Gui, Add, Text, x75 y46 w150 h20 gTime, %CurrTimeEN%
|
Gui, Add, Text, x75 y46 w150 h20 gTime, %CurrTimeEN%
|
||||||
|
|
||||||
|
Gui, Add, Button, x12 y43 w55 h20 Default vHidden, Go ; That way you don't have to have an actual button, it just happens when you press enter.
|
||||||
|
|
||||||
|
if (cfmail)
|
||||||
|
{
|
||||||
|
Gui, Add, Radio, x142 y3 w80 h20 Group vContact Checked, E-&Mail ; Second group of Radio buttons
|
||||||
|
Gui, Add, Radio, x142 y23 w80 h20 , &Call
|
||||||
|
Gui, Show, h70 w210, Contact
|
||||||
|
} Else {
|
||||||
|
Gui, Show, h70 w145, Contact
|
||||||
|
}
|
||||||
|
|
||||||
|
Return
|
||||||
|
|
||||||
|
Time:
|
||||||
|
Run, addemail.ahk
|
||||||
|
|
||||||
|
GuiClose:
|
||||||
|
GuiEscape:
|
||||||
|
ExitApp
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
; Buttons
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
ButtonGo:
|
||||||
|
Gui, submit
|
||||||
|
Goto, Write
|
||||||
|
Return
|
||||||
|
|
||||||
|
/*
|
||||||
|
Contact
|
||||||
|
Mail: 1
|
||||||
|
Call: 2
|
||||||
|
|
||||||
|
Lang
|
||||||
|
English: 1
|
||||||
|
German: 2
|
||||||
|
|
||||||
|
Act
|
||||||
|
Warrant: 1
|
||||||
|
Demo: 2
|
||||||
|
*/
|
||||||
|
|
||||||
|
Write:
|
||||||
|
{
|
||||||
|
FileRead, NewLine, %docfile% ; Read the documentation file
|
||||||
|
If (NewLine != "") ; If there is something in the file, this would return a string
|
||||||
|
{
|
||||||
|
FileAppend,`n`n`n`n, %docfile% ; Inserts a new line so that it isn't just appended directly to the end
|
||||||
|
}
|
||||||
|
NewLine := "" ; Free up Memory cause this could be quite a bit of stuff
|
||||||
|
|
||||||
|
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
; Email
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
If (Contact = "1")
|
||||||
|
{
|
||||||
|
If (Lang = "1") ; English
|
||||||
|
{
|
||||||
|
If (Act = "0") ; Not an activation
|
||||||
|
{
|
||||||
|
FileAppend,Dealer emailed: "", %docfile%
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
If (Act = "1") ; Warrant
|
||||||
|
{
|
||||||
|
FileAppend,Dealer emailed for warrant transfer: ""`n`nOld SN: `nNew SN: `nChallenge Code: `n`n, %docfile%
|
||||||
|
}
|
||||||
|
|
||||||
|
If (Act = "2") ; Demo
|
||||||
|
{
|
||||||
|
FileAppend,Dealer emailed for `n`nSN: `nChallenge Code: `n`n, %docfile%
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Else If (Lang = "2") ; German
|
||||||
|
{
|
||||||
|
If (Act = "0") ; Not an activation
|
||||||
|
{
|
||||||
|
FileAppend,Händler emailte: "", %docfile%
|
||||||
|
}
|
||||||
|
|
||||||
|
Else If (Act = "1") ; Warrant
|
||||||
|
{
|
||||||
|
FileAppend,Händler emailte für Garantieübertragung`n`nAlte SN: `nNeue SN: `nAuthentisierungscode: `n`n, %docfile%
|
||||||
|
}
|
||||||
|
|
||||||
|
Else If (Act = "2") ; Demo
|
||||||
|
{
|
||||||
|
FileAppend,Händler emailte für `n`nSN: `nAuthentisierungscode: `n`n, %docfile%
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
; Call
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Else If (Contact = "2")
|
||||||
|
{
|
||||||
|
If (Lang = "1") ; English
|
||||||
|
{
|
||||||
|
FileAppend, Call received %CurrTimeEN%.`n`n, %docfile%
|
||||||
|
If (Act = "0") ; Not an activation
|
||||||
|
{
|
||||||
|
FileAppend,Dealer called for , %docfile%
|
||||||
|
}
|
||||||
|
|
||||||
|
Else If (Act = "1") ; Warrant
|
||||||
|
{
|
||||||
|
FileAppend,Dealer called for Warrant transfer`nOld SN: `nNew SN: `nChallenge Code: `n`n, %docfile%
|
||||||
|
}
|
||||||
|
|
||||||
|
Else If (Act = "2") ; Demo
|
||||||
|
{
|
||||||
|
FileAppend,Dealer called for Demo`nSN: `nChallenge Code: `n`n, %docfile%
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Else If (Lang = "2") ; German
|
||||||
|
{
|
||||||
|
FileAppend, Anruf wurde %CurrTimeDE% entgegengenommen.`n`n, %docfile%
|
||||||
|
|
||||||
|
If (Act = "0") ; Not an activation
|
||||||
|
{
|
||||||
|
FileAppend,Händler rief an mit , %docfile%
|
||||||
|
}
|
||||||
|
|
||||||
|
Else If (Act = "1") ; Warrant
|
||||||
|
{
|
||||||
|
FileAppend,Händler rief an für Garantieübertragung`nAlte SN: `nNeue SN: `nAuthentisierungscode: `n`n, %docfile%
|
||||||
|
}
|
||||||
|
|
||||||
|
Else If (Act = "2") ; Demo
|
||||||
|
{
|
||||||
|
FileAppend,Händler rief an für Demo`nSN: `nAuthentisierungscode: `n`n, %docfile%
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ExitApp
|
||||||
|
}#Include, func.ahk
|
||||||
|
|
||||||
|
SetTitleMatchMode, 2
|
||||||
|
|
||||||
|
; These next 3 options make it so that it's always on top, it there are no buttons, and doesn't show up in the alt-tab or taskbar
|
||||||
|
Gui,+AlwaysOnTop
|
||||||
|
Gui, +ToolWindow
|
||||||
|
|
||||||
|
docfile := ini_get(ini, "USpec", "DocFile")
|
||||||
|
cfmail := ini_get(ini, "Main", "CFmail")
|
||||||
|
Contact := 2
|
||||||
|
|
||||||
|
CurrTimeEN := GetDateTime("en")
|
||||||
|
CurrTimeDE := GetDateTime("de")
|
||||||
|
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
; GUI creation
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
; The & in front of the letters lets you hold alt and press the first letter instead of having to click on it. That is why its "Mail", not "E-Mail"
|
||||||
|
|
||||||
Gui, Add, Radio, x12 y3 w60 h20 Group vLang Checked, &English ; First group of Radio buttons
|
Gui, Add, Radio, x12 y3 w60 h20 Group vLang Checked, &English ; First group of Radio buttons
|
||||||
Gui, Add, Radio, x12 y23 w60 h20, &German
|
Gui, Add, Radio, x12 y23 w60 h20, &German
|
||||||
|
|
||||||
Gui, Add, Radio, x82 y3 w60 h20 Group vContact Checked, E-&Mail ; Second group of Radio buttons
|
Gui, Add, Radio, x82 y3 w60 h20 Group vAct, &Warrant
|
||||||
Gui, Add, Radio, x82 y23 w60 h20, &Call
|
Gui, Add, Radio, x82 y23 w60 h20, &Demo
|
||||||
|
|
||||||
|
|
||||||
Gui, Add, Radio, x142 y3 w80 h20 Group vAct, &Warrant
|
|
||||||
Gui, Add, Radio, x142 y23 w80 h20 , &Demo
|
|
||||||
|
|
||||||
Gui, Add, Button, x12 y43 w55 h20 Default vHidden, Go ; That way you don't have to have an actual button, it just happens when you press enter.
|
Gui, Add, Button, x12 y43 w55 h20 Default vHidden, Go ; That way you don't have to have an actual button, it just happens when you press enter.
|
||||||
Gui, Show, h70 w210, Contact
|
|
||||||
;GuiControl, Hide, Hidden ; Hide the button to be hidden
|
if (cfmail)
|
||||||
|
{
|
||||||
|
Gui, Add, Radio, x142 y3 w80 h20 Group vContact Checked, E-&Mail ; Second group of Radio buttons
|
||||||
|
Gui, Add, Radio, x142 y23 w80 h20 , &Call
|
||||||
|
Gui, Add, Text, x75 y46 w150 h20 gTime, %CurrTimeEN%
|
||||||
|
Gui, Show, h70 w210, Contact
|
||||||
|
} Else {
|
||||||
|
Gui, Show, h70 w145, Contact
|
||||||
|
}
|
||||||
|
|
||||||
Return
|
Return
|
||||||
|
|
||||||
Time:
|
Time:
|
||||||
@ -165,4 +343,4 @@ Write:
|
|||||||
}
|
}
|
||||||
|
|
||||||
ExitApp
|
ExitApp
|
||||||
}
|
}
|
||||||
|
746
D3K.ahk
746
D3K.ahk
@ -1,207 +1,128 @@
|
|||||||
#Include, func.ahk
|
#Include, func.ahk
|
||||||
|
|
||||||
Menu, Tray, Icon, shell32.dll, 283 ; Set the tray icon to a keyboard
|
Menu, Tray, Icon, shell32.dll, 283 ; Set the tray icon to a keyboard
|
||||||
|
Menu, Tray, Add, &Mouse Mover, Mouse_Mover ; Add item to the tray to move the mouse
|
||||||
|
Menu, Tray, Add, Settings, D3K_Settings ; Add item to the tray to move the mouse
|
||||||
|
Menu, Tray, Add, %A_AhkVersion%, docs
|
||||||
|
|
||||||
ini_writeValue(ini, "Version", d3k_version)
|
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
|
||||||
; Make sure the settings file exists, if not, create it
|
|
||||||
;------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
If !FileExist(ini) ; Check if the ini doesn't exist
|
|
||||||
{
|
|
||||||
FileAppend,
|
|
||||||
(
|
|
||||||
; 0 is off, 1 is on
|
|
||||||
[USpec]
|
|
||||||
RACF=LF01234
|
|
||||||
Email=LastnameFirstname@JohnDeere.com
|
|
||||||
DocFile=Select File
|
|
||||||
[Main]
|
|
||||||
Mansol=1
|
|
||||||
MJDPaste=1
|
|
||||||
CaseFormatter=1
|
|
||||||
[Replacement]
|
|
||||||
JDProductNames=1
|
|
||||||
GloVar=0
|
|
||||||
[Language]
|
|
||||||
German=0
|
|
||||||
[Info]
|
|
||||||
Version=0
|
|
||||||
), %ini%
|
|
||||||
Run Settings.ahk ; Runs the GUI for changing the settings, also accessible with Alt+Shift+\ (also easy way to restart this script)
|
|
||||||
}
|
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
|
||||||
; Read the ini
|
|
||||||
;------------------------------------------------------------------------------
|
|
||||||
; This is the part that reads the file to see what your settings are. Variables in the ini file are in all lowercase, variables here are CamelCase for more distinction
|
|
||||||
|
|
||||||
; User Specific things:
|
|
||||||
racf := ini_getValue(ini, "USpec", "RACF")
|
|
||||||
email := ini_getValue(ini, "USpec", "Email")
|
|
||||||
docfile := ini_getValue(ini, "USpec", "DocFile")
|
|
||||||
|
|
||||||
; General Settings
|
|
||||||
mansol := ini_getValue(ini, "Main", "Mansol")
|
|
||||||
supadmin := ini_getValue(ini, "Main", "Supadmin")
|
|
||||||
mjdpaste := ini_getValue(ini, "Main", "MJDPaste")
|
|
||||||
caseformatter := ini_getValue(ini, "Main", "CaseFormatter")
|
|
||||||
|
|
||||||
; Replacement
|
|
||||||
jdpn := ini_getValue(ini, "Replacement", "JDProductNames")
|
|
||||||
glovar := ini_getValue(ini, "Replacement", "GloVar")
|
|
||||||
|
|
||||||
; Language
|
|
||||||
ger := ini_getValue(ini, "Language", "German")
|
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; Global Variables
|
; Global Variables
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
|
If (glovar)
|
||||||
If (glovar = 1)
|
|
||||||
{
|
{
|
||||||
glovarini = %A_MyDocuments%\GloVar.ini ; Location of the ini that the user modifies
|
|
||||||
|
|
||||||
glovarstart := "#SingleInstance force`n`n:*:$dus::`n:*:$dnm::`n:*:$dem::`n:*:$xid::`n"
|
|
||||||
|
|
||||||
SetTimer, GloVar, 2000 ; Check every 2 seconds
|
SetTimer, GloVar, 2000 ; Check every 2 seconds
|
||||||
|
|
||||||
GloVar:
|
GloVar:
|
||||||
WinWaitNotActive, GloVar.ini ; So that we don't get any problems with the file on disk being out of date. I use VSCode with the "Save on lose focus" option on, YMMV
|
glovarini := A_MyDocuments "\GloVar.ini" ; Location of the ini that the user modifies
|
||||||
{
|
glovarscript := A_Temp "\GloVar.ahk" ; Doesn't need to be anywhere useful as it doesn't contain any external references
|
||||||
FileGetTime, gvModNew, %glovarini%
|
;FileGetTime, gvMod, %glovarini%, M
|
||||||
if !(gvModNew = gvMod) ; Those two lines mean the rest of this only executes if there were changes to the ini.
|
glovarstart := "#SingleInstance force`n#NoTrayIcon`nSendMode, Input`nFileEncoding, UTF-8`n"
|
||||||
|
If (WinActive("GloVar.ini")) ; Only run when the window isn't active, prevents accidential editing by this while the user is
|
||||||
{
|
{
|
||||||
gvMod := gvModNew
|
Return
|
||||||
FileDelete, glovar.ahk ; Start with a clean slate
|
}
|
||||||
FileAppend, %glovarstart%, glovar.ahk ; makes sure we only have one instance of the script running at a time
|
FileGetTime, gvModNew, %glovarini%, M
|
||||||
|
If !(gvModNew = gvMod) ; Those two lines mean the rest of this only executes if there were changes to the ini.
|
||||||
RESection := "" ; Make sure that its clear
|
{
|
||||||
Loop, Read, %glovarini% ; Read one line at a time
|
SetTimer, GloVar, Off
|
||||||
{
|
hotstrings := ""
|
||||||
RegExMatch(A_LoopReadLine, "(?<=\[).*(?=\])", RESection) ; explained above
|
glovar_array := ini_load(glovarini)
|
||||||
RegExMatch(A_LoopReadLine, "^(?<Key>.*)=(?<Value>.*)", RE) ; Key = REKey, Value = REValue
|
For sec in glovar_array
|
||||||
|
{
|
||||||
If !(RESection) ; If the RegEx doesn't find antything, its empty
|
For key, value in glovar_array[sec]
|
||||||
{
|
{
|
||||||
If !(REValue) ; If there is no value for the key, skip it (Continue the loop at the next line)
|
If (value)
|
||||||
{
|
{
|
||||||
Continue
|
sec := StrReplace(sec, "§", " ") ; AHK can't handle spaces in nested array names, so they're substituted with § when entered into the array. This reverses that.
|
||||||
}
|
StringCaseSense, Off ; Make sure the capitalization doesn't matter
|
||||||
If InStr(StoredSection, "Serial Numbers") ; If the section is "Serial Numbers", make everything uppercase
|
Switch sec
|
||||||
{
|
{
|
||||||
StringUpper, REValue, REValue ; Makes it uppercase
|
Case "Serial Numbers":
|
||||||
WinWaitNotActive, GloVar.ini ; Just to make sure
|
StringUpper, value, value ; Makes it uppercase
|
||||||
{
|
ini_write(glovarini, key, value)
|
||||||
ini_writeValue(glovarini, REKey, REValue)
|
Case "Info":
|
||||||
FileGetTime, gvMod, %glovarini%
|
If (key = "case")
|
||||||
}
|
{
|
||||||
}
|
StringUpper, value, value ; Makes it uppercase, just in case it was manually typed
|
||||||
If InStr(StoredSection, "Operations Center") ; If the section is "Operations Center" and the Key "un", make it uppercase
|
value := Trim(value, "()")
|
||||||
{
|
ini_write(glovarini, key, value) ; Writes the properly formatted case number to glovar.ini
|
||||||
If InStr(REKey, "usr")
|
}
|
||||||
{
|
Case "Clear": ; Will clear the ini and save its and the documentation file's contents to a log
|
||||||
StringUpper, REValue, REValue ; Makes it uppercase
|
temp := FileOpen(docfile, "r")
|
||||||
WinWaitNotActive, GloVar.ini
|
doctemp := temp.Read()
|
||||||
{
|
temp.Close()
|
||||||
ini_writeValue(glovarini, REKey, REValue) ; Writes the properly formatted case number to glovar.ini
|
temp := FileOpen(glovarini, "r")
|
||||||
FileGetTime, gvMod, %glovarini%
|
initemp := temp.Read()
|
||||||
}
|
temp.Close()
|
||||||
}
|
initemp := RegExReplace(initemp, "i)(?<=\[)clear(?=\])", "Info") ; Replace the "clear" section we set with Info, case insensitive
|
||||||
}
|
CurrTime := GetDateTime("en") ; get the current date and time as "YYYY-MM-DD at HH:MM GMT"
|
||||||
If InStr(REKey, "case") ; If a key contains "case". Case numbers are all in the format "LETTERS-NUMBERS".
|
temp := FileOpen(A_MyDocuments "/D3KLog.txt", "a")
|
||||||
{
|
writethis := "Case on " . CurrTime . "`n`n`n" . doctemp . "`n`n" . initemp ; Save the current time, what was in the doc file, and glovarini to a variable
|
||||||
StringUpper, REValue, REValue ; Makes it uppercase
|
temp.Write("`n`n" writethis "`n`n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
|
||||||
RegExMatch(REValue, "(?<=\().*(?=\))", REMatch) ; Match everything but the parenthesis. When the case numbers are shown they have parenthesis, and those are annoying.
|
temp.Close()
|
||||||
If (REMatch) ; If there's anything there
|
temp := FileOpen("glovarsource", "r")
|
||||||
{
|
glovarsource := temp.Read()
|
||||||
WinWaitNotActive, GloVar.ini
|
temp.Close()
|
||||||
{
|
temp := FileOpen(glovarini, "w")
|
||||||
ini_writeValue(glovarini, REKey, REMatch) ; Writes the properly formatted case number to glovar.ini
|
temp.Write(glovarsource) ; Overwrite .ini for a clean slate
|
||||||
FileGetTime, gvMod, %glovarini%
|
temp.Close()
|
||||||
}
|
temp := FileOpen(docfile, "w") ; Overwrites documentation for a clean slate
|
||||||
REValue := REMatch
|
temp.Close()
|
||||||
} Else {
|
script := FileOpen(glovarscript, "w")
|
||||||
WinWaitNotActive, GloVar.ini
|
script.Write(glovarstart)
|
||||||
{
|
script.Close()
|
||||||
ini_writeValue(glovarini, REKey, REValue) ; Writes the properly formatted case number to glovar.ini
|
Run, %A_AhkPath% %glovarscript% ; Just in case. Don't want an old version running.
|
||||||
FileGetTime, gvMod, %glovarini%
|
ToolTip, Cleared
|
||||||
}
|
Sleep, 500
|
||||||
}
|
ToolTip
|
||||||
}
|
FileGetTime, gvMod, %glovarini%, M ; Make sure that this script knows what the ini was changed to so it doesn't constantly run through the above code
|
||||||
If InStr(REKey, "xid") ; If an xID is entered. Unique identifier for people
|
SetTimer, GloVar, On
|
||||||
{
|
Goto, GloVar ; Don't do anything else below this line, Break wasn't taking "GloVar" as a variable
|
||||||
dealinfo := GetInfo(REValue) ; Gets information, see function for details
|
Case (RegExMatch(sec, "i)sdrbr(\d*)", m) ? sec : !sec): ; for cases with Stolen displays
|
||||||
StringUpper, REValue, REValue ; Makes xID uppercase
|
If (m1) ; sometimes there are multiple stolen displays, this is to account for that.
|
||||||
|
{
|
||||||
if !(REValue = dealinfo.xid)
|
writethis := "[Serial Numbers]"
|
||||||
{
|
Loop, % m1
|
||||||
run addemail.ahk
|
writethis .= "`ns" A_Index "=`nr" A_Index "=`ncc" A_Index "=`nv" A_Index "="
|
||||||
Continue
|
writethis .= "`n[Info]"
|
||||||
}
|
Loop, % m1
|
||||||
|
writethis .= "`ncase" A_Index "="
|
||||||
; Replace the data in glovar.ahk with the data from the ini
|
} Else {
|
||||||
FileRead, tempglovar, glovar.ahk
|
writethis := "[Serial Numbers]`ns=`nr=`ncc=`nv=`n[Info]`ncase=" glovar_array[sec, "case"]
|
||||||
tempglovar := RegExReplace(tempglovar, "(?<=\$xid::).*", dealinfo.xid)
|
}
|
||||||
tempglovar := RegExReplace(tempglovar, "(?<=\$dem::).*", dealinfo.email)
|
temp := FileOpen(glovarini, "w")
|
||||||
tempglovar := RegExReplace(tempglovar, "(?<=\$dnm::).*", dealinfo.name)
|
temp.Write(writethis)
|
||||||
tempglovar := RegExReplace(tempglovar, "(?<=\$dus::).*", dealinfo.user)
|
temp.Close()
|
||||||
tempglovar := RegExReplace(tempglovar, "(?<=\$dorg::).*", dealinfo.org)
|
script := FileOpen(glovarscript, "w")
|
||||||
FileAppend, %tempglovar%, tempglovar
|
script.Write(glovarstart)
|
||||||
FileCopy, tempglovar, glovar.ahk,1
|
script.Close()
|
||||||
FileDelete, tempglovar
|
SetTimer, GloVar, On
|
||||||
|
Goto, GloVar ; Don't do anything else below this line, Break wasn't taking "GloVar" as a variable
|
||||||
WinWaitNotActive, GloVar.ini
|
}
|
||||||
{
|
hotstrings .= "`n:*:$" key "::" value
|
||||||
ini_writeValue(glovarini, "xID", REValue) ; Writes the xID entered, but uppercase
|
}
|
||||||
ini_writeValue(glovarini, "dem", dealinfo.email) ; Writes email address (incredibly useful)
|
}
|
||||||
ini_writeValue(glovarini, "dnm", dealinfo.name) ; Writes Name (useful for when referring to that person)
|
}
|
||||||
ini_writeValue(glovarini, "dus", dealinfo.user) ; Writes demo account name (somewhat useful)
|
file := FileOpen(glovarini, "r")
|
||||||
}
|
temp := file.Read()
|
||||||
FileGetTime, gvMod, %glovarini% ; Make sure that this script knows what the ini was changed to so it doesn't constantly run through the above code
|
file.Close()
|
||||||
Continue
|
temp := RegExReplace(temp, "`am)^[\s\R]*") ; Get rid of empty lines
|
||||||
}
|
temp := RegExReplace(temp, "m)[ \t]+$") ; Get rid of extra space at the end of strings
|
||||||
If (InStr(REKey, "dem") or InStr(REKey, "dnm") or InStr(REKey, "dus"))
|
temp := Trim(temp, " `t`r`n") ; Remove pesky newlines and extra space at the end
|
||||||
{
|
file := FileOpen(glovarini, "w")
|
||||||
; Do not process xID related info, that is done above
|
file.Write(temp)
|
||||||
Continue
|
file.Close()
|
||||||
}
|
script := FileOpen(glovarscript, "w")
|
||||||
writethis := ":*:$" REKey "::" REValue "`n" ; Save the hotstring to a variable
|
script.Write(glovarstart hotstrings)
|
||||||
FileAppend, %writethis%, glovar.ahk ; Write the variable to glovar.ahk
|
script.Close()
|
||||||
}
|
Run, %A_AhkPath% %glovarscript%
|
||||||
If (RESection) ; If we have a section
|
ToolTip, GloVars updated
|
||||||
{
|
Sleep, 500
|
||||||
StoredSection := RESection
|
ToolTip
|
||||||
If InStr(RESection, "clear") ; Will clear the ini and save its and the documentation file's contents to a log
|
FileGetTime, gvMod, %glovarini%, M ; Make sure that this script knows what the ini was changed to so it doesn't constantly run through the above code
|
||||||
{
|
SetTimer, GloVar, On
|
||||||
FileRead, doctemp, %docfile% ; Read documentation file, set in settings
|
|
||||||
FileRead, initemp, %glovarini% ; Read the ini
|
|
||||||
initemp := RegExReplace(initemp, "(?<=\[)clear(?=\])", "Info") ; Replace the "clear" section we set with Info
|
|
||||||
CurrTime := GetDateTime("en") ; get the current date and time as "YYYY-MM-DD at HH:MM GMT"
|
|
||||||
writethis := "Case on " . CurrTime . "`n" . doctemp . "`n`n" . initemp ; Save the current time, what was in the doc file, and glovarini to a variable
|
|
||||||
FileAppend, % "`n`n`n`n" writethis "`n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", %A_MyDocuments%/D3KLog.txt ; Write a few new lines , the content, and a line underneath
|
|
||||||
FileCopy, glovarsource, %glovarini%, 1 ; Copies and replaces any text in glovar.ini with the template
|
|
||||||
fileread, gvMod, %glovarini% ; Make sure that this script knows what the ini was changed to so it doesn't constantly run through the above code
|
|
||||||
FileDelete, glovar.ahk ; THE CLEAN SLATE
|
|
||||||
FileAppend, %glovarstart%, glovar.ahk
|
|
||||||
Sleep, 500
|
|
||||||
FileGetTime, gvMod, %glovarini% ; Make sure that this script knows what the ini was changed to so it doesn't constantly run through the above code
|
|
||||||
If FileExist("glovar.ahk")
|
|
||||||
{
|
|
||||||
Run glovar.ahk
|
|
||||||
}
|
|
||||||
Break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
FileGetTime, gvMod, %glovarini% ; Make sure that this script knows what the ini was changed to so it doesn't constantly run through the above code
|
|
||||||
If FileExist("glovar.ahk")
|
|
||||||
{
|
|
||||||
Run glovar.ahk
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
Return
|
Return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -209,79 +130,63 @@ If (glovar = 1)
|
|||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; Settings window
|
; Settings window
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
|
D3K_Settings:
|
||||||
!+\::Run Settings.ahk ; Alt+Shift+\
|
!+\::Run Settings.ahk ; Alt+Shift+\
|
||||||
|
Return
|
||||||
|
|
||||||
|
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
; Mouse Mover
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
Mouse_Mover:
|
||||||
|
If (msmv_active = True)
|
||||||
|
{
|
||||||
|
Run, %A_AhkPath% "msmv.ahk" "off"
|
||||||
|
msmv_active := False ; Have to do this cause AHK doesn't have a builtin function to detect if something is checked or not.
|
||||||
|
Menu, Tray, Uncheck, &Mouse Mover
|
||||||
|
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
Run, %A_AhkPath% "msmv.ahk" "on"
|
||||||
|
msmv_active := True
|
||||||
|
Menu, Tray, Check, &Mouse Mover
|
||||||
|
}
|
||||||
|
Return
|
||||||
|
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; DTAC Solution Opener
|
; DTAC Solution Opener
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
|
#If (mansol) ; checks from the variable thats set from the .sett_ini file
|
||||||
#If, mansol = "1" ; checks from the variable thats set from the .ini file
|
|
||||||
!+S::Run Mansol_Opener.ahk ; Alt+Shift+S
|
!+S::Run Mansol_Opener.ahk ; Alt+Shift+S
|
||||||
#If ; these are to make sure one "if" doesn't influence the next accidentially
|
#If
|
||||||
|
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; Case Formatter
|
; Case Formatter
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
|
#If (CaseFormatter)
|
||||||
#If, CaseFormatter = "1"
|
|
||||||
Pause::Run Case_Formatter.ahk ; The Pause|Break key
|
Pause::Run Case_Formatter.ahk ; The Pause|Break key
|
||||||
#If
|
#If
|
||||||
|
|
||||||
; These things below are for using in a pinch, or when there is no dealer.
|
|
||||||
|
|
||||||
SetTitleMatchMode, 2
|
|
||||||
#If (WinActive = Temp.txt) && (CaseFormatter = "1")
|
|
||||||
:*:\case::
|
|
||||||
CurrTime := GetDateTime("en")
|
|
||||||
Send Call received on %CurrTime% {Enter}Name: {Enter}Username: {Enter}
|
|
||||||
Return
|
|
||||||
#If
|
|
||||||
|
|
||||||
|
|
||||||
;German
|
|
||||||
#If (CaseFormatter = "1") && (ger = "1")
|
|
||||||
:*:|case::
|
|
||||||
CurrTime := GetDateTime("de")
|
|
||||||
Send Anruf wurde am %CurrTime% entgegengenommen{Enter}Name: {Enter}Benutzername: {Enter}
|
|
||||||
Return
|
|
||||||
#If
|
|
||||||
|
|
||||||
|
|
||||||
;-------------------------------------------------------------------------------
|
;-------------------------------------------------------------------------------
|
||||||
; Special Characters
|
; Special Characters
|
||||||
;-------------------------------------------------------------------------------
|
;-------------------------------------------------------------------------------
|
||||||
|
#If (ger)
|
||||||
#If, ger = "1"
|
!s::Send {U+00DF} ;Alt+S scharfes s / Eszett / ß
|
||||||
; scharfes s / Eszett / ß
|
!a::Send {U+00E4} ;Alt+a ä
|
||||||
!s::Send {U+00DF} ;Alt+S
|
+!A::Send {U+00C4} ;Alt+A Ä
|
||||||
|
!o::Send {U+00F6} ;Alt+o ö
|
||||||
; ä
|
+!O::Send {U+00D6} ;Alt+O Ö
|
||||||
!a::Send {U+00E4} ;Alt+a
|
!u::Send {U+00FC} ;Alt+u ü
|
||||||
|
+!U::Send {U+00DC} ;Alt+U Ü
|
||||||
; ö
|
|
||||||
!o::Send {U+00F6} ;Alt+o
|
|
||||||
|
|
||||||
; ü
|
|
||||||
!u::Send {U+00FC} ;Alt+u
|
|
||||||
|
|
||||||
; Ä
|
|
||||||
+!A::Send {U+00C4} ;Alt+A
|
|
||||||
|
|
||||||
; Ö
|
|
||||||
+!O::Send {U+00D6} ;Alt+O
|
|
||||||
|
|
||||||
; Ü
|
|
||||||
+!U::Send {U+00DC} ;Alt+U
|
|
||||||
|
|
||||||
#If
|
#If
|
||||||
|
|
||||||
;-------------------------------------------------------------------------------
|
;-------------------------------------------------------------------------------
|
||||||
; Capitalise dates
|
; Capitalise dates
|
||||||
;-------------------------------------------------------------------------------
|
;-------------------------------------------------------------------------------
|
||||||
|
|
||||||
::monday::Monday
|
::monday::Monday
|
||||||
::tuesday::Tuesday
|
::tuesday::Tuesday
|
||||||
::wednesday::Wednesday
|
::wednesday::Wednesday
|
||||||
@ -289,12 +194,9 @@ SetTitleMatchMode, 2
|
|||||||
::friday::Friday
|
::friday::Friday
|
||||||
::saturday::Saturday
|
::saturday::Saturday
|
||||||
::sunday::Sunday
|
::sunday::Sunday
|
||||||
|
|
||||||
::january::January
|
::january::January
|
||||||
::february::February
|
::february::February
|
||||||
; ::march::March ; Commented out because it matches the common word "march".
|
|
||||||
::april::April
|
::april::April
|
||||||
; ::may::May ; Commented out because it matches the common word "may".
|
|
||||||
::june::June
|
::june::June
|
||||||
::july::July
|
::july::July
|
||||||
::august::August
|
::august::August
|
||||||
@ -303,9 +205,8 @@ SetTitleMatchMode, 2
|
|||||||
::november::November
|
::november::November
|
||||||
::december::December
|
::december::December
|
||||||
|
|
||||||
|
|
||||||
; German
|
; German
|
||||||
#If, ger = "1"
|
#If (ger)
|
||||||
::montag::Montag
|
::montag::Montag
|
||||||
::dienstag::Dienstag
|
::dienstag::Dienstag
|
||||||
::mittwoch::Mittwoch
|
::mittwoch::Mittwoch
|
||||||
@ -325,195 +226,160 @@ SetTitleMatchMode, 2
|
|||||||
#If
|
#If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; Copypastas
|
; Copypastas
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
|
; STWA Applied
|
||||||
|
:*:]cmy::
|
||||||
|
Send STWA applied{Enter 2}Status: Providing information{Enter 2}Comments: {Enter 2}Thank you,{Enter}%name%{Enter 2}Tier 2 internal steps:{Space}{Enter 2}SQL:{Enter}
|
||||||
|
Return
|
||||||
|
|
||||||
; Recommending case
|
; STWA not available
|
||||||
:*:]rec::
|
:*:]cmn::
|
||||||
Send Recommending Case, please contact us if there are any further questions.
|
Send STWA not available{Enter 2}Status: Providing information{Enter 2}Comments: {Enter 2}Thank you,{Enter}%name%{Enter 2}Tier 2 internal steps:{Space}{Enter 2}SQL:{Enter}
|
||||||
Return
|
Return
|
||||||
|
|
||||||
; Escalatimg Case
|
; Need info
|
||||||
:*:]esc1::
|
:*:]cmr::
|
||||||
Send This case was unable to be resolved and has been transferred to another team. Our Tier 2 team is investigating the issue to find a short term resolution. We will update you as soon as we have a recommendation.
|
Send STWA available{Enter 2}Status: Requesting information{Enter 2}Comments: {Enter 2}Thank you,{Enter}%name%{Enter 2}Tier 2 internal steps:{Space}Verify information{Enter 2}SQL:{Enter}
|
||||||
Return
|
Return
|
||||||
|
|
||||||
:*:]esc2::
|
:*:]sdrbr::
|
||||||
Send A short term resolution still has not been identified. We are requesting an immediate update on this case from our Tier 2 team. We will contact you as soon as we have a status update.
|
glovar_array := ini_load(glovarini)
|
||||||
Return
|
For sec in glovar_array
|
||||||
|
{
|
||||||
|
For key, value in glovar_array[sec]
|
||||||
|
{
|
||||||
|
If (value)
|
||||||
|
{
|
||||||
|
stln_%key% := value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
If (glovar_array["Info"].Count() > 1)
|
||||||
|
{
|
||||||
|
Send Stolen Display Replacement Basics Requests{Tab}
|
||||||
|
Send Received some requests for replacement Basics for Stolen displays @
|
||||||
|
} Else {
|
||||||
|
Send %stln_case%{Tab}
|
||||||
|
Send Received a request for replacement Basics for a Stolen display @
|
||||||
|
}
|
||||||
|
Sleep, 1000
|
||||||
|
Send Stellar
|
||||||
|
Sleep, 1500
|
||||||
|
Send {Down}{Tab}:{Enter 2}
|
||||||
|
Sleep, 1000
|
||||||
|
Send {ShiftDown}{Tab 2}{ShiftUp}
|
||||||
|
Sleep, 1000
|
||||||
|
Send {Right 17}
|
||||||
|
Sleep, 1000
|
||||||
|
Send {Enter}
|
||||||
|
Sleep, 1000
|
||||||
|
Send {Right}
|
||||||
|
Send {Enter}
|
||||||
|
Sleep, 1000
|
||||||
|
If (glovar_array["Info"].Count() > 1)
|
||||||
|
{
|
||||||
|
Loop, % glovar_array["Info"].Count() {
|
||||||
|
If (A_Index < glovar_array["Info"].Count())
|
||||||
|
{
|
||||||
|
table := "^{b}Case " A_Index "{Tab}^{b}" stln_case%A_Index% "{Tab}Stolen{Tab}" stln_s%A_Index% "{Tab}Replacement{Tab}" stln_r%A_Index% "{Enter}" stln_cc%A_Index% "{Tab}Machine PIN{Tab}" stln_v%A_Index% "{Tab}Model, Year{Tab 2}Should it qualify?{Tab 2}"
|
||||||
|
} Else {
|
||||||
|
table := "^{b}Case " A_Index "{Tab}^{b}" stln_case%A_Index% "{Tab}Stolen{Tab}" stln_s%A_Index% "{Tab}Replacement{Tab}" stln_r%A_Index% "{Enter}" stln_cc%A_Index% "{Tab}Machine PIN{Tab}" stln_v%A_Index% "{Tab}Model, Year{Tab 2}Should it qualify?"
|
||||||
|
} ; That way it doesn't put the extra line at the very end
|
||||||
|
Send %table%
|
||||||
|
}
|
||||||
|
} Else {
|
||||||
|
Send Case{Tab}%stln_case%{Tab}Stolen{Tab}%stln_s%{Tab}Replacement{Tab}%stln_r%{Enter}%stln_cc%{Tab}Machine PIN{Tab}%stln_v%{Tab}Model, Year{Tab 2}Should it qualify?{Up 2}{Tab}
|
||||||
|
}
|
||||||
|
Return
|
||||||
|
|
||||||
; Requesting info
|
; Transferring to DTAC
|
||||||
:*:]req1::
|
:*:]DTAC::
|
||||||
Send A request has been made for additional information in this case. Please provide the information as soon as possible so that the case can be resolved.
|
Send The ISG Global Support Center has determined that this case is hardware related`; therefore, this case is being transferred from the Global Support Center to the ISG DTAC group. A DTAC technician will now work this case via the DTAC system and provide a recommendation in the case Text if more information is needed or if a solution has been found. Please continue to update or check on the progress of this case by using the DTAC system Case Text section moving forward.
|
||||||
Return
|
Return
|
||||||
|
|
||||||
:*:]req2::
|
; Transferring to Tier2
|
||||||
Send A follow-up request has been made for the additional information.
|
:*:]rrt::
|
||||||
Return
|
Send This case was unable to be resolved and has been transferred to another team. Our Tier 2 team is investigating the issue to find a short-term resolution. We will update you as soon as we have a recommendation.
|
||||||
|
Return
|
||||||
|
|
||||||
:*:]req3::
|
; Update after 5 business days
|
||||||
Send The additional information required has not yet been received. This case will now be sent back to you. Please reopen the case, or contact the Global Support Center again via phone or email with the additional information and reference this case number so that it can be reopened and investigated further.
|
:*:]upd::
|
||||||
Return
|
Send A short-term resolution still has not been identified. We are requesting an immediate update on this case from our Tier 2 team. We will contact you as soon as we have a status update.
|
||||||
|
Return
|
||||||
|
|
||||||
; Defect / NCCA
|
; Requesting info
|
||||||
:*:]ncca::
|
:*:]req::
|
||||||
Send We will be recommending this case back to you for the time being. This issue is still being investigated and worked on via an internal product corrective action ticket. We will continue to monitor the progress of that ticket and contact you when we have a solution or a short term recommendation. The case text will be updated at that time for documentation purposes.{Enter}You may choose to close this case yourself, return it to us, or keep it open until we provide you with a corrective action recommendation. If you have questions on the status of this issue, please re-open the case or contact the Global Support Center using the contact information found in DTAC solution 82793. We will provide you with any information we are able to gather from the product team.
|
Send A request has been made for additional information in this case. Please provide the following information as soon as possible so this case can be resolved.
|
||||||
Return
|
Return
|
||||||
|
|
||||||
; DTAC
|
; Dealer defect
|
||||||
:*:]dtac::
|
:*:]ddefect::
|
||||||
Send The ISG Global Support Center has determined that this case is hardware related; therefore this case is being transferred from the GSC to the ISG DTAC group. A DTAC technician will now work this case via the CCMS system and provide a recommendation in the case text if more information is needed or if a solution has been found. Please continue to update or check on the progress of this case by using the CCMS system case text section moving forward.
|
Send We have communicated your issue to the Product Support and Development Teams. We do not have a timeframe in which your issue will be resolved. At this time, we are closing the case as those teams track the issue. If you have any questions, please have your field team contact the appropriate Product Support Representative.
|
||||||
Return
|
Return
|
||||||
|
|
||||||
; German
|
; Customer defect
|
||||||
#If, ger = "1"
|
:*:]cdefect::
|
||||||
; Recommending Case
|
Send We have communicated your issue to the Product Support and Development Teams. We do not have a timeframe in which your issue will be resolved. At this time, we are closing the case as those teams track the issue. If you have any questions, please contact your preferred dealer and the field team can contact the appropriate Product Support Representative.
|
||||||
:*:[rec::
|
Return
|
||||||
Send Fall an H{U+00E4}ndler gewiesen, bitte melden Sie sich wenn sie weitere fragen haben.
|
|
||||||
Return
|
|
||||||
|
|
||||||
; Escalating Case
|
; Workbasket shortcuts, place mouse over Transfer button before typing
|
||||||
:*:[esc1::
|
:*:]pd::
|
||||||
Send Der Fall konnte vom GSC nicht gelöst werden und wurde an die nächste Supportebene weitergeleitet. Das Support Team wird das Problem weiter untersuchen und versuchen eine kurzfristige Lösung bereit zu stellen. Sobald wir eine Empfehlung erhalten, werden wir Sie darüber informieren.
|
Send PCDSC
|
||||||
Return
|
Send {Click}
|
||||||
|
Return
|
||||||
:*:[esc2::
|
|
||||||
Send Bisher steht uns keine kurzfristige Lösung zur Verfügung. Wir fordern umgehend ein Status-Update bezüglich des Falls von unserem Support Team an.{Shift down}{Enter}{Shift up}Wir werden Sie erneut kontaktieren, sobald wir über den aktuellsten Stand des Falls informiert sind.
|
|
||||||
Return
|
|
||||||
|
|
||||||
; Requesting info
|
|
||||||
:*:[req1::
|
|
||||||
Send Wir haben zusätzliche Informationen von Ihnen bezüglich des Falls angefordert. Bitte stellen Sie uns die Informationen so bald wie möglich zur Verfügung, damit der Fall gelöst werden kann.
|
|
||||||
Return
|
|
||||||
|
|
||||||
:*:[req2::
|
|
||||||
Send Wir fordern die zusätzlichen Informationen von Ihnen erneut an.
|
|
||||||
Return
|
|
||||||
|
|
||||||
:*:[req3::
|
|
||||||
Send Wir haben die benötigten zusätzlichen Informationen von Ihnen noch nicht erhalten. Dieser Fall wird jetzt zu Ihnen zurückgeschickt. Bitte setzen Sie sich mit dem GSC telefonisch oder per Email mit den zusätzlichen Informationen nochmal in Verbindung und referenzieren Sie die Fallnummer, damit der Fall erneut geöffnet und weiter untersucht werden kann.
|
|
||||||
Return
|
|
||||||
|
|
||||||
; Defect / NCCA
|
|
||||||
:*:[ncca::
|
|
||||||
Send Wir werden diesen Fall vorübergehend an Sie zurückweisen. Dieses Problem wird noch über ein innenseitiges Produkt Korrektur Ticket bearbeitet. Wir werden weiterhin den Fortschritt dieses Tickets verfolgen und mit Ihnen Kontakt aufnehmen, wenn wir eine Lösung oder eine kurzfristige Empfehlung haben.{Enter}Sie können diesen Fall selbst schließen, an uns zurückzugeben oder offen halten, bis wir Ihnen eine Korrekturmaßnahme empfehlen. Wenn Sie Fragen zum Fall Status haben wenden Sie sich an das Global Support Center, indem Sie die Kontaktinformationen in der DTAC-Lösung 82793 abrufen. Wir werden Ihnen alle Informationen, die wir von dem Produktteam bekommen haben, zu Verfügung stellen.
|
|
||||||
Return
|
|
||||||
|
|
||||||
; DTAC
|
|
||||||
:*:[dtac::
|
|
||||||
Send Das ISG Global Support Center hat festgestellt, dass dieser Fall hardwarebezogen ist; Daher wird dieser Fall vom GSC an die ISG DTAC Gruppe übertragen. Ein DTAC-Techniker wird nun diesen Fall über das DTAC-System bearbeiten und eine Empfehlung im Fall Text geben, wenn weitere Informationen benötigt werden oder wenn eine Lösung gefunden wurde. Dementsprechend bitten wir Sie, den Fortschritt des Falls mithilfe des Falltextes zu überprüfen und falls nötig mit fehlenden Informationen zu ergänzen.
|
|
||||||
Return
|
|
||||||
#If
|
|
||||||
|
|
||||||
|
:*:]pr::
|
||||||
|
Send PCRRT
|
||||||
|
Send {Click}
|
||||||
|
Return
|
||||||
|
|
||||||
|
:*:]p2::
|
||||||
|
Send PCTIER2
|
||||||
|
Send {Click}
|
||||||
|
Return
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; Email
|
; Email
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
|
|
||||||
; Regular
|
|
||||||
:*:]email::
|
:*:]email::
|
||||||
Send Hello,{Enter 2} {Shift down}{Enter}{Shift up}Please contact us if you have any questions.{Up}{End}
|
Send Hello,{Enter 2}{Space 3}
|
||||||
Return
|
Return
|
||||||
|
|
||||||
; DTAC Problem
|
|
||||||
:*:]97010::
|
|
||||||
Send Hello,{Enter 2} As this is a hardware/compatibility related inquiry, we here at the GSC cannot assist you properly. Please contact DTAC and they will be able to assist you further.
|
|
||||||
Return
|
|
||||||
|
|
||||||
; 2 Year old COMAR
|
|
||||||
:*:]2yc::
|
|
||||||
Send Hello,{Enter 2} You are unable to activate this product as the COMAR is over 2 years old. There is a form in the Dealer Corner that you can fill out to have it replaced as long as it falls within the criteria outlined in solution 108357.{Enter}Please contact your TCSM if you have any questions about this process.
|
|
||||||
Return
|
|
||||||
|
|
||||||
; CCMS
|
|
||||||
:*:]cms::
|
|
||||||
Send Hello,{Enter 2} {Enter}{Home down}{Shift up}{Home up}Please contact us if you have any questions.{Enter 2}Thank you,{Enter}David{Up 4}{End}
|
|
||||||
Return
|
|
||||||
|
|
||||||
#If
|
|
||||||
|
|
||||||
; German
|
; German
|
||||||
#If, ger = "1"
|
#If (ger)
|
||||||
|
|
||||||
; Regular
|
|
||||||
:*:[email::
|
:*:[email::
|
||||||
Send Hallo,{Enter 2} {Shift down}{Enter}{Shift up}Für Rückfragen stehen wir gerne zur Verfügung.{Up}{End}
|
Send Hallo,{Enter 2}{Space 3}
|
||||||
Return
|
Return
|
||||||
|
|
||||||
; DTAC Problem
|
|
||||||
:*:[97010::
|
|
||||||
Send Hallo,{Enter 2} Da dies eine Hardware/Kompatibilität-bezogene Anfrage ist, können wir hier im GSC leider ihre Frage nicht sehr gut beantworten. Bitte wenden Sie sich an DTAC, dort können Sie bessere unterstützung für diesen typ von fragen bekommen.
|
|
||||||
Return
|
|
||||||
|
|
||||||
; 2 Year old COMAR
|
|
||||||
:*:[2yc::
|
|
||||||
Send Hallo,{Enter 2} Sie können dieses Produkt nicht aktivieren weil die COMAR-Nummer über 2 Yahre alt ist. Es gibt in Vertriebspartnerinformation ein Formular das Sie ausfüllen können, und Ihre Aktivierungen werden ersetzt so lange es innerhalb der Regeln in DTAC Lösung 108357 ist.{Enter}Bitte melden Sie sich bei Ihrem Technischen Bezirksleiter wenn Sie Fragen über diesen Prozess haben.
|
|
||||||
Return
|
|
||||||
|
|
||||||
; CCMS case
|
|
||||||
:*:[cms::
|
|
||||||
Send Hallo,{Enter 2} {Enter}{Home down}{Shift up}{Home up}Für Rückfragen stehen wir gerne zur Verfügung.{Enter 2}Mit freundlichen Grüßen,{Enter}David{Up 4}{End}
|
|
||||||
Return
|
|
||||||
|
|
||||||
#If
|
#If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; Profile email paste
|
; Profile email paste
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; So when editing Profiles, it won't let you paste in the email field. We don't like that. Make sure to let go of all keys immediatley after pressing this
|
; So when editing Profiles, it won't let you paste in the email field. We don't like that. Make sure to let go of all keys immediatley after pressing this
|
||||||
|
#If (mjdpaste)
|
||||||
#If, mjdpaste = "1"
|
#v::
|
||||||
#v::
|
sleep, 750
|
||||||
sleep, 750
|
SendInput %clipboard%
|
||||||
Send %clipboard%
|
sleep, 500
|
||||||
sleep, 500
|
send # ; to make sure the start menu isn't open for some reason
|
||||||
send # ; to make sure the start menu isn't open for some reason
|
Return
|
||||||
return
|
|
||||||
#If
|
#If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; Common Terms autocorrect and replacement
|
; Common Terms autocorrect and replacement
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
|
|
||||||
#If, not(racf = "LF01234") ; So that it doesn't put the fake RACF from the default ini file
|
|
||||||
:*:]me::
|
|
||||||
Send, %racf%
|
|
||||||
return
|
|
||||||
|
|
||||||
:*:[me::
|
|
||||||
Send, %racf%
|
|
||||||
return
|
|
||||||
#If
|
|
||||||
|
|
||||||
#If, not(email = "LastnameFirstname@JohnDeere.com") ; Same as above
|
|
||||||
:*:@me::
|
|
||||||
Send, %email%
|
|
||||||
Return
|
|
||||||
#If
|
|
||||||
|
|
||||||
; JD Names
|
; JD Names
|
||||||
#If, jdpn = "1"
|
#If (jdpn)
|
||||||
|
|
||||||
:*:[xx::XXXXXXXXXXXXX ; I'm not gonna try and find the right amount of X's to appease the CCMS demons
|
:*:[xx::XXXXXXXXXXXXX ; I'm not gonna try and find the right amount of X's to appease the CCMS demons
|
||||||
:*:]xx::XXXXXXXXXXXXX
|
:*:]xx::XXXXXXXXXXXXX
|
||||||
|
|
||||||
; English
|
; English
|
||||||
:*:]at::AutoTrac
|
:*:]at::AutoTrac
|
||||||
:*:]sf::StarFire
|
:*:]ba::Basics & AutoTrac
|
||||||
:*:]jdlw::JDLink Web
|
:*:]sf::StarFire
|
||||||
:*:]jdld::JDLink Dashboard
|
:*:]jdl::JDLink
|
||||||
:*:]jdl2::JDLink Dashboard 2.0
|
|
||||||
:*:]jdlc::JDLink Connect
|
|
||||||
:*:]jdla::JDLink Access
|
|
||||||
:*:]jdls::JDLink Subscription
|
|
||||||
:*:]jdll::JDLink
|
|
||||||
:*:]jdp::JDParts
|
:*:]jdp::JDParts
|
||||||
:*:]mjd::MyJohnDeere
|
:*:]mjd::MyJohnDeere
|
||||||
:*:]opsc::Operations Center
|
:*:]opsc::Operations Center
|
||||||
@ -525,29 +391,29 @@ SetTitleMatchMode, 2
|
|||||||
:*:]sub::subscription
|
:*:]sub::subscription
|
||||||
:*:]ss::Stellar Support
|
:*:]ss::Stellar Support
|
||||||
:*:]tman::Technical Manual
|
:*:]tman::Technical Manual
|
||||||
:*:]operm::Operator's Manual
|
:*:]oman::Operator's Manual
|
||||||
:*:]hl3::HarvestLab 3000
|
:*:]hl3::HarvestLab 3000
|
||||||
:*:]hlo::Original HarvestLab
|
:*:]hlo::Original HarvestLab
|
||||||
:*:]bin::Virtual Inventory
|
:*:]bin::Virtual Inventory
|
||||||
:*:]warrep::Warranty Reports
|
:*:]warrep::Warranty Reports
|
||||||
:*:]tp::TouchPoint
|
|
||||||
:*:]tcsm::Territory Customer Support Manager
|
:*:]tcsm::Territory Customer Support Manager
|
||||||
:*:]macrep::Machine Reports
|
|
||||||
:*:]jdsm::John Deere Software Manager
|
:*:]jdsm::John Deere Software Manager
|
||||||
:*:]jddm::John Deere Data Manager
|
:*:]jddm::John Deere Data Manager
|
||||||
:*:]serva::Service Advisor
|
:*:]serva::Service Advisor
|
||||||
:*:]muc::Master Unlock Code
|
:*:]muc::Master Unlock Code
|
||||||
:*:]deg::{ASC 248}
|
:*:]asmn::Asset Manager
|
||||||
:*:]eq::{ASC 247}
|
:*:]bsm::Base Station Manager
|
||||||
|
|
||||||
|
:*:]sas::See & Spray
|
||||||
|
|
||||||
::rowsense::RowSense
|
::rowsense::RowSense
|
||||||
::comar::COMAR
|
:*:comar::COMAR
|
||||||
::mrtk::mRTK
|
::mrtk::mRTK
|
||||||
::rda::RDA
|
::rda::RDA
|
||||||
::rtk::RTK
|
::rtk::RTK
|
||||||
::autotrac::AutoTrac
|
::autotrac::AutoTrac
|
||||||
::ccms::CCMS
|
:*:ccms::CCMS
|
||||||
::dtac::DTAC
|
:*:dtac::DTAC
|
||||||
::tcsm::TCSM
|
::tcsm::TCSM
|
||||||
::itec::iTEC Pro
|
::itec::iTEC Pro
|
||||||
::ssu::SSU
|
::ssu::SSU
|
||||||
@ -555,7 +421,7 @@ SetTitleMatchMode, 2
|
|||||||
:*:mtg::MTG
|
:*:mtg::MTG
|
||||||
::wdt::WDT
|
::wdt::WDT
|
||||||
::itc::iTC
|
::itc::iTC
|
||||||
::vin::VIN
|
:*:vin::Machine PIN ; Not actually vehicles, so they don't have VINs
|
||||||
::gs2::GS2
|
::gs2::GS2
|
||||||
::gs3::GS3
|
::gs3::GS3
|
||||||
::sf1::SF1
|
::sf1::SF1
|
||||||
@ -567,19 +433,16 @@ SetTitleMatchMode, 2
|
|||||||
::vat::VAT
|
::vat::VAT
|
||||||
:*:racf::RACF
|
:*:racf::RACF
|
||||||
::igrade::iGrade
|
::igrade::iGrade
|
||||||
|
:*:JDCP::JDCP
|
||||||
|
:*:ISOBUS::ISOBUS
|
||||||
|
|
||||||
|
|
||||||
; German
|
; German
|
||||||
#If, ger = "1"
|
#If (ger)
|
||||||
:*:[at::AutoTrac
|
:*:[at::AutoTrac
|
||||||
|
:*:[ba::Basics & AutoTrac
|
||||||
:*:[sf::StarFire
|
:*:[sf::StarFire
|
||||||
:*:[jdlw::JDLink Web
|
:*:[jdl::JDLink
|
||||||
:*:[jdld::JDLink Dashboard
|
|
||||||
:*:[jdl2::JDLink Dashboard 2.0
|
|
||||||
:*:[jdlc::JDLink Connect
|
|
||||||
:*:[jdla::JDLink Access
|
|
||||||
:*:[jdls::JDLink Abonnement
|
|
||||||
:*:[jdll::JDLink
|
|
||||||
:*:[jdp::JDParts
|
:*:[jdp::JDParts
|
||||||
:*:[mjd::MyJohnDeere
|
:*:[mjd::MyJohnDeere
|
||||||
:*:[opsc::Einsatzzentrale
|
:*:[opsc::Einsatzzentrale
|
||||||
@ -598,36 +461,61 @@ SetTitleMatchMode, 2
|
|||||||
:*:[warrep::Warranty Reports
|
:*:[warrep::Warranty Reports
|
||||||
:*:[tp::TouchPoint
|
:*:[tp::TouchPoint
|
||||||
:*:[tcsm::Technischer Bezirksleiter
|
:*:[tcsm::Technischer Bezirksleiter
|
||||||
:*:[macrep::Machine Reports
|
|
||||||
:*:[jdsm::John Deere Software Manager
|
:*:[jdsm::John Deere Software Manager
|
||||||
:*:[jddm::John Deere Data Manager
|
:*:[jddm::John Deere Data Manager
|
||||||
:*:[serva::Service Advisor
|
:*:[serva::Service Advisor
|
||||||
:*:[muc::Master Unlock Code
|
:*:[muc::Master Unlock Code
|
||||||
:*:[deg::{ASC 248}
|
:*:[asmn::Asset Manager
|
||||||
:*:[eq::{ASC 247}
|
:*:[bsm::Base Station Manager
|
||||||
#If
|
#If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; QoL Improvements
|
; QoL Improvements
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
|
:*:]me::
|
||||||
#j::
|
Send, % Format("{:U}", A_UserName)
|
||||||
Run, C:\Users\%racf%\Downloads ; Open the downloads folder on Win+J
|
|
||||||
Return
|
Return
|
||||||
|
|
||||||
|
:*:[me::
|
||||||
|
Send, % Format("{:U}", A_UserName)
|
||||||
|
Return
|
||||||
|
|
||||||
|
#If !(email = "LastnameFirstname@JohnDeere.com")
|
||||||
|
:*:@me::
|
||||||
|
Send, %email%
|
||||||
|
Return
|
||||||
|
#If
|
||||||
|
|
||||||
|
|
||||||
#w::
|
#j:: ; Open the downloads folder on Win+J
|
||||||
if WinActive("ahk_exe Explorer.EXE") ; If windows explorer is focused
|
Run, C:\Users\%A_UserName%\Downloads
|
||||||
{
|
Return
|
||||||
Send !d ; Focus the address bar
|
|
||||||
Send C:\Users\%racf%\Documents\Work_Docs\Cases\2020-01 - 06 ; current folder, would love to use a var instead, but Run doesn't like it
|
:*:[now::
|
||||||
Send {Enter}
|
:*:]now::
|
||||||
Return
|
SendInput, % GetDateTime("ISO8601") ; Send the current time/date in ISO8601 format
|
||||||
}
|
Return
|
||||||
Run, C:\Users\%racf%\Documents\Work_Docs\Cases\2020-01 - 06 ; Open the documentation folder on Win+W
|
|
||||||
Return
|
:*:[today::
|
||||||
|
:*:]today::
|
||||||
|
SendInput, % GetDateTime("date") ; Send the current date in ISO8601 format
|
||||||
|
Return
|
||||||
|
|
||||||
|
:*:[deg::{ASC 248}
|
||||||
|
:*:]deg::{ASC 248}
|
||||||
|
:*:[eq::{ASC 247}
|
||||||
|
:*:]eq::{ASC 247}
|
||||||
|
|
||||||
|
:*:[shrug::¯\_(ツ)_/¯
|
||||||
|
:*:]shrug::¯\_(ツ)_/¯
|
||||||
|
|
||||||
|
:*:[ltd::License to Deere™
|
||||||
|
:*:]ltd::License to Deere™
|
||||||
|
|
||||||
|
|
||||||
|
docs:
|
||||||
|
run https://www.autohotkey.com/docs/AutoHotkey.htm
|
||||||
|
Return
|
||||||
|
|
||||||
|
F19:: Run D3K.ahk
|
33
Mansol_Opener.ahk
Normal file
33
Mansol_Opener.ahk
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
#SingleInstance force ; Only one instance at a time
|
||||||
|
SendMode, Input
|
||||||
|
FileEncoding, UTF-8 ; Makes sure the special characters don't break stuff
|
||||||
|
|
||||||
|
Menu, Tray, Icon, %A_MyDocuments%\D3K\icons\manual.ico
|
||||||
|
|
||||||
|
Gui, +AlwaysOnTop +ToolWindow
|
||||||
|
|
||||||
|
Gui, Add, Edit, x2 y3 w78 h20 vNumber +Left,
|
||||||
|
Gui, Add, Button, x22 y43 w70 h20 Default vHidden, Ok
|
||||||
|
Gui, Add, Button, x81 y3 w17 h20 gHelp +Center, ?
|
||||||
|
Gui, Show, h28 w100, ManSol
|
||||||
|
GuiControl, Hide, Hidden
|
||||||
|
|
||||||
|
Return
|
||||||
|
|
||||||
|
ButtonOk:
|
||||||
|
Gui, submit ; I have no idea what the regex means any more...
|
||||||
|
If RegExMatch(Number, "[[:alpha:]]+")
|
||||||
|
run, % "http://serviceadvisor.deere.com/WebSA/manuals/" . Number
|
||||||
|
Else If RegExMatch(Number, "[[:digit:]]+")
|
||||||
|
run, % "https://serviceadvisor.deere.com/WebSA/solutions/en/" . Number
|
||||||
|
ExitApp
|
||||||
|
Return
|
||||||
|
|
||||||
|
|
||||||
|
Help:
|
||||||
|
MsgBox, 262176, Maual & Solution opener, Input the TM/OM SKU (easily ofund on TechPubs) or the DTAC solution number to open it in your default browser.`nTMs & OMs open in Service Advisor.
|
||||||
|
Return
|
||||||
|
|
||||||
|
GuiClose:
|
||||||
|
GuiEscape:
|
||||||
|
ExitApp
|
102
Settings.ahk
102
Settings.ahk
@ -1,146 +1,120 @@
|
|||||||
#Include, func.ahk
|
#Include, func.ahk
|
||||||
|
#NoTrayIcon
|
||||||
Menu, Tray, Icon, shell32.dll, 283
|
Menu, Tray, Icon, shell32.dll, 283
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
|
||||||
; Read ini
|
|
||||||
;------------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
This is the part that reads the file to see what your settings are. Variables in the ini file are in CamelCase, variables here are lowercase for more distinction
|
|
||||||
*/
|
|
||||||
|
|
||||||
; User Specific things:
|
|
||||||
racf := ini_getValue(ini, "USpec", "RACF")
|
|
||||||
email := ini_getValue(ini, "USpec", "Email")
|
|
||||||
docfile := ini_getValue(ini, "USpec", "DocFile")
|
|
||||||
|
|
||||||
; General Settings
|
|
||||||
mansol := ini_getValue(ini, "Main", "Mansol")
|
|
||||||
mjdpaste := ini_getValue(ini, "Main", "MJDPaste")
|
|
||||||
caseformatter := ini_getValue(ini, "Main", "CaseFormatter")
|
|
||||||
|
|
||||||
; Replacement
|
|
||||||
jdpn := ini_getValue(ini, "Replacement", "JDProductNames")
|
|
||||||
glovar := ini_getValue(ini, "Replacement", "GloVar")
|
|
||||||
|
|
||||||
; Language
|
|
||||||
ger := ini_getValue(ini, "Language", "German")
|
|
||||||
|
|
||||||
; Info
|
|
||||||
d3k_version := ini_getValue(ini, "Info", "Version")
|
|
||||||
d3k_version := RTrim(d3k_version, "0") ; it was returning the value with appended zeroes, that's not neccesary.
|
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; Create GUI
|
; Create GUI
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
Gui, -MaximizeBox -MinimizeBox ; Remove the max+min buttons
|
Gui, -MaximizeBox -MinimizeBox ; Remove the max+min buttons
|
||||||
|
|
||||||
Gui, Add, GroupBox, x8 y2 w67 h37, RACF
|
Gui, Add, GroupBox, x8 y2 w193 h37, First Name
|
||||||
Gui, Add, Edit, x12 y15 w60 h20 vformRACF gRACF, %RACF%
|
Gui, Add, Edit, x12 y15 w185 h20 vformName gName, %name%
|
||||||
|
|
||||||
Gui, Add, GroupBox, x8 y40 w207 h37, Email Address
|
Gui, Add, GroupBox, x8 y40 w207 h37, Email Address
|
||||||
Gui, Add, Edit, x12 y53 w200 h20 vformEmail gEmail, %Email%
|
Gui, Add, Edit, x12 y53 w200 h20 vformEmail gEmail, %email%
|
||||||
|
|
||||||
Gui, Add, GroupBox, x77 y2 w207 h37, Documentation File
|
Gui, Add, GroupBox, x8 y83 w107 h130, Main
|
||||||
Gui, Add, Text, x81 y19 w200 h20 gDocFile, %docfile%
|
|
||||||
|
|
||||||
Gui, Add, GroupBox, x8 y83 w107 h105, Main
|
|
||||||
Gui, Add, CheckBox, x12 y95 w100 h30 vformMansol Checked%mansol% gMansol, ManSol
|
Gui, Add, CheckBox, x12 y95 w100 h30 vformMansol Checked%mansol% gMansol, ManSol
|
||||||
Gui, Add, CheckBox, x12 y125 w100 h30 vformMJDPaste Checked%mjdpaste% gMJDPaste, MJDPaste
|
Gui, Add, CheckBox, x12 y125 w100 h30 vformMJDPaste Checked%mjdpaste% gMJDPaste, MJDPaste
|
||||||
Gui, Add, CheckBox, x12 y155 w100 h30 vformCaseFormatter Checked%caseformatter% gCaseFormatter, Case Formatter
|
Gui, Add, CheckBox, x12 y155 w100 h30 vformCaseFormatter Checked%caseformatter% gCaseFormatter, Case Formatter
|
||||||
|
Gui, Add, CheckBox, x25 y178 w75 h30 vformCFmail Checked%cfmail% gCFmail, Email option
|
||||||
|
GuiControl, show%caseformatter%, formCFmail ; only shows the check box for emails if the Case Formatter box is checked
|
||||||
|
Gui, Add, GroupBox, x8 y215 w277 h50 vformDocFile, Documentation File
|
||||||
|
Gui, Add, Text, x15 y231 w260 h30 vformDocFile2 gDocFile, %docfile%
|
||||||
|
|
||||||
Gui, Add, GroupBox, x128 y83 w157 h75, Text Replacement
|
Gui, Add, GroupBox, x128 y83 w157 h75, Text Replacement
|
||||||
Gui, Add, CheckBox, x132 y95 w150 h30 vformJdpn Checked%jdpn% gJdpn, JD Product Names
|
Gui, Add, CheckBox, x132 y95 w150 h30 vformJdpn Checked%jdpn% gJdpn, JD Product Names
|
||||||
Gui, Add, CheckBox, x132 y125 w150 h30 vformGlovar Checked%glovar% gGlovar, Global Variables
|
Gui, Add, CheckBox, x132 y125 w150 h30 vformGlovar Checked%glovar% gGlovar, Global Variables
|
||||||
|
Gui, Add, CheckBox, x132 y155 w100 h30 vformGer Checked%ger% gGer, DE ([ as prefix)
|
||||||
|
|
||||||
Gui, Add, CheckBox, x12 y187 w100 h30 vformGer Checked%ger% gGer, DE ([ as prefix)
|
Gui, Add, Link, x132 y190 w150 h26 gHelp, <a href="https://daviddaily.dev/david/d3k/wiki">Click here for help</a>`n%A_AhkVersion%
|
||||||
Gui, Add, Button, x132 y190 w150 h23 gHelp, Click here for help (v%d3k_version%)
|
|
||||||
|
|
||||||
Gui, Show, h225 w295, David 3000 Settings
|
Gui, Show, h273 w295, D3K version %d3k_version%
|
||||||
Return
|
Return
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; Edit ini
|
; Edit ini
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
/*
|
|
||||||
Default ini, sections are in []:
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
Default ini, sections are in []: (0 is off, 1 is on)
|
||||||
[USpec]
|
[USpec]
|
||||||
RACF=LF01234
|
|
||||||
Email=LastnameFirstname@JohnDeere.com
|
Email=LastnameFirstname@JohnDeere.com
|
||||||
DocFile=
|
Name=Firstname
|
||||||
|
DocFile=Select File
|
||||||
[Main]
|
[Main]
|
||||||
Mansol=1
|
Mansol=1
|
||||||
MJDPaste=1
|
MJDPaste=1
|
||||||
CaseFormatter=1
|
CaseFormatter=1
|
||||||
|
CFmail=0
|
||||||
[Replacement]
|
[Replacement]
|
||||||
JDProductNames=1
|
JDProductNames=1
|
||||||
GloVar=0
|
GloVar=0
|
||||||
[Language]
|
[Language]
|
||||||
German=0
|
German=0
|
||||||
[Info]
|
|
||||||
Version=2.5
|
|
||||||
|
|
||||||
format for below:
|
|
||||||
|
|
||||||
Button G-label (executes when clicked):
|
|
||||||
Submit the gui so that it can change and don't hide it
|
|
||||||
write the state of the check box (a 0 for unchecked, 1 for checked), to the file at %ini%, section with this name, line with this name
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RACF:
|
Name:
|
||||||
Gui, Submit, NoHide
|
Gui, Submit, NoHide
|
||||||
ini_writeValue(ini, "RACF", formRACF)
|
ini_write(sett_ini, "Name", formName)
|
||||||
Return
|
Return
|
||||||
|
|
||||||
Email:
|
Email:
|
||||||
Gui, Submit, NoHide
|
Gui, Submit, NoHide
|
||||||
ini_writeValue(ini, "Email", formEmail)
|
ini_write(sett_ini, "Email", formEmail)
|
||||||
Return
|
Return
|
||||||
|
|
||||||
DocFile:
|
DocFile:
|
||||||
Gui, Submit
|
Gui, Submit
|
||||||
FileSelectFile, SelectedFile, 3, , Open a file, Text Documents (*.txt; *.doc)
|
FileSelectFile, SelectedFile, 3, , Open a file, Text Documents (*.txt)
|
||||||
if SelectedFile =
|
if !(SelectedFile)
|
||||||
MsgBox, You have not selected a file, this will break some things.
|
MsgBox, You have not selected a file, this will break some things.
|
||||||
else
|
else
|
||||||
ini_writeValue(ini, "DocFile", SelectedFile)
|
ini_write(sett_ini, "DocFile", SelectedFile)
|
||||||
docfile := ini_getValue(ini, "USpec", "DocFile")
|
Run, Settings.ahk
|
||||||
Gui, Show, h225 w295, David 3000 Settings
|
|
||||||
Return
|
Return
|
||||||
|
|
||||||
Mansol:
|
Mansol:
|
||||||
Gui, Submit, NoHide
|
Gui, Submit, NoHide
|
||||||
ini_writeValue(ini, "Mansol", formMansol)
|
ini_write(sett_ini, "Mansol", formMansol)
|
||||||
Return
|
Return
|
||||||
|
|
||||||
MJDPaste:
|
MJDPaste:
|
||||||
Gui, Submit, NoHide
|
Gui, Submit, NoHide
|
||||||
ini_writeValue(ini, "MJDPaste", formMJDPaste)
|
ini_write(sett_ini, "MJDPaste", formMJDPaste)
|
||||||
Return
|
Return
|
||||||
|
|
||||||
CaseFormatter:
|
CaseFormatter:
|
||||||
Gui, Submit, NoHide
|
Gui, Submit, NoHide
|
||||||
ini_writeValue(ini, "CaseFormatter", formCaseFormatter)
|
GuiControl, show%formCaseFormatter%, formCFmail ; only shows the check box for emails if the Case Formatter box is checked
|
||||||
|
GuiControl,, formCFmail, 0
|
||||||
|
ini_write(sett_ini, "CaseFormatter", formCaseFormatter)
|
||||||
|
ini_write(sett_ini, "CFmail", "0") ; if you're toggling this, its either on or off, doesn't hurt to set it here
|
||||||
Return
|
Return
|
||||||
|
|
||||||
|
CFmail:
|
||||||
|
Gui, Submit, NoHide
|
||||||
|
ini_write(sett_ini, "CFmail", formCFmail)
|
||||||
|
Return
|
||||||
|
|
||||||
Jdpn:
|
Jdpn:
|
||||||
Gui, Submit, NoHide
|
Gui, Submit, NoHide
|
||||||
ini_writeValue(ini, "JDProductNames", formJdpn)
|
ini_write(sett_ini, "JDProductNames", formJdpn)
|
||||||
Return
|
Return
|
||||||
|
|
||||||
Glovar:
|
Glovar:
|
||||||
Gui, Submit, NoHide
|
Gui, Submit, NoHide
|
||||||
ini_writeValue(ini, "GloVar", formGlovar)
|
ini_write(sett_ini, "GloVar", formGlovar)
|
||||||
Return
|
Return
|
||||||
|
|
||||||
Ger:
|
Ger:
|
||||||
Gui, Submit, NoHide
|
Gui, Submit, NoHide
|
||||||
ini_writeValue(ini, "German", formGer)
|
ini_write(sett_ini, "German", formGer)
|
||||||
Return
|
Return
|
||||||
|
|
||||||
Help:
|
Help:
|
||||||
Gui, Submit
|
Gui, Submit
|
||||||
Run, https://daviddaily.dev/david/d3k/wiki
|
|
||||||
Return
|
Return
|
||||||
|
|
||||||
GuiClose:
|
GuiClose:
|
||||||
|
18
addemail.ahk
18
addemail.ahk
@ -1,17 +1,19 @@
|
|||||||
#Include, func.ahk
|
#Include, func.ahk
|
||||||
Menu, Tray, Icon, shell32.dll, 283 ; Set the tray icon to a keyboard
|
|
||||||
|
|
||||||
csv = %A_MyDocuments%\Work_Docs\emails.csv ; Where the email CSV is
|
csv = %A_MyDocuments%\emails.csv ; Where the email CSV is
|
||||||
|
|
||||||
|
glovarini := A_MyDocuments "\GloVar.ini"
|
||||||
|
Xid := ini_get(glovarini, "Info", "xID")
|
||||||
|
|
||||||
Gui, +AlwaysOnTop +ToolWindow
|
Gui, +AlwaysOnTop +ToolWindow
|
||||||
|
|
||||||
Gui, Add, Text, x2 y2 w60 h17 +Center, xID
|
Gui, Add, Text, x2 y2 w60 h17 +Center, xID
|
||||||
Gui, Add, Text, x65 y2 w120 h17 +Center, Name
|
Gui, Add, Text, x65 y2 w120 h17 +Center, Email
|
||||||
Gui, Add, Text, x190 y2 w100 h17 +Center, Email
|
Gui, Add, Text, x190 y2 w100 h17 +Center, Name
|
||||||
|
|
||||||
Gui, Add, Edit, x2 y17 w60 h20 vXid
|
Gui, Add, Edit, x2 y17 w60 h20 vXid, %Xid%
|
||||||
Gui, Add, Edit, x65 y17 w120 h20 vName
|
Gui, Add, Edit, x65 y17 w120 h20 vEmail
|
||||||
Gui, Add, Edit, x190 y17 w100 h20 vEmail
|
Gui, Add, Edit, x190 y17 w100 h20 vName
|
||||||
|
|
||||||
Gui, Add, Button, x172 y89 w70 h30 Default, OK
|
Gui, Add, Button, x172 y89 w70 h30 Default, OK
|
||||||
|
|
||||||
@ -22,7 +24,7 @@ ButtonOK:
|
|||||||
Gui, Submit
|
Gui, Submit
|
||||||
writethis := Xid . "," . Email . "," . Name
|
writethis := Xid . "," . Email . "," . Name
|
||||||
FileAppend, % "`n" writethis, %csv%
|
FileAppend, % "`n" writethis, %csv%
|
||||||
Clipboard := Xid
|
ini_write(A_MyDocuments "\GloVar.ini", "dem", Email)
|
||||||
Return
|
Return
|
||||||
|
|
||||||
|
|
||||||
|
172
func.ahk
172
func.ahk
@ -2,18 +2,16 @@
|
|||||||
SendMode, Input
|
SendMode, Input
|
||||||
FileEncoding, UTF-8 ; Makes sure the special characters dont break stuff
|
FileEncoding, UTF-8 ; Makes sure the special characters dont break stuff
|
||||||
SetWorkingDir, %A_MyDocuments%\D3K ; Make sure we can find the .ahks linked below
|
SetWorkingDir, %A_MyDocuments%\D3K ; Make sure we can find the .ahks linked below
|
||||||
|
SetTitleMatchMode, 2
|
||||||
|
|
||||||
d3k_version = 2.7 ; The current version
|
d3k_version := 3 ; The current version
|
||||||
|
|
||||||
ini = %A_MyDocuments%\D3Ksettings.ini ; Where the settings ini is
|
|
||||||
|
|
||||||
GetDateTime(lang)
|
GetDateTime(lang)
|
||||||
{
|
{
|
||||||
UTCTimestamp := A_NowUTC ; Grab the current time and date
|
FormatStr := "yyyy-MM-dd" ; The Date
|
||||||
UTCFormatStr := "yyyy-MM-dd" ; This is what we want it to look like
|
FormatTime, DateStr, %A_NowUTC%, %FormatStr% ; format it to make it look like the Date we want
|
||||||
FormatTime, DateStr, %UTCTimestamp%, %UTCFormatStr% ; format it to make it look like the Date we want
|
FormatStr := "H:mm'Z'" ; The time
|
||||||
UTCFormatStr := "H:mm' GMT'" ; The time
|
FormatTime, TimeStr, %A_NowUTC%, %FormatStr% ; Format the string to be better
|
||||||
FormatTime, TimeStr, %UTCTimestamp%, %UTCFormatStr% ; Format the string to be better
|
|
||||||
if (lang = "en")
|
if (lang = "en")
|
||||||
{
|
{
|
||||||
Return DateStr " at " TimeStr
|
Return DateStr " at " TimeStr
|
||||||
@ -23,28 +21,43 @@ GetDateTime(lang)
|
|||||||
{
|
{
|
||||||
Return DateStr " um " TimeStr
|
Return DateStr " um " TimeStr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (lang = "ISO8601")
|
||||||
|
{
|
||||||
|
Return DateStr "T" TimeStr
|
||||||
|
}
|
||||||
|
|
||||||
|
if (lang = "date")
|
||||||
|
{
|
||||||
|
Return DateStr
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
GetInfo(xID) ; Accept what is passed here as the variable "xID" in the script
|
GetInfo(xID)
|
||||||
{
|
{
|
||||||
if (xID)
|
if (xID)
|
||||||
{
|
{
|
||||||
Loop, Read, %A_MyDocuments%\Work_Docs\emails.csv ; read every line of "emails.csv"
|
File := FileOpen(A_MyDocuments "\emails.csv", "r")
|
||||||
|
Loop
|
||||||
|
{
|
||||||
|
Line := File.ReadLine()
|
||||||
|
Array := StrSplit(Line,",") ; split the line at its separating commas to get separate "columns" AKA elements
|
||||||
|
if InStr(Array[1], xID) ; if at the specified element (1) the specified content (dealers xID) has been found
|
||||||
{
|
{
|
||||||
Array := StrSplit(A_LoopReadLine,",") ; split the line at its separating commas to get separate "columns" AKA elements
|
Test := {xid: Array[1], email: Array[2], name: Array[3], user: Array[4], org: Array[5]} ; Return the array so we can do {variable}.email and so on
|
||||||
if InStr(Array[1],xID) ; if at the specified element (1) the specified content (dealers xID) has been found,
|
File.Close() ; Close the file
|
||||||
Break ; stop searching
|
Return Test ; Return the array with the deets that we found
|
||||||
}
|
}
|
||||||
Test:= {xid: Array[1], email: Array[2], name: Array[3], user: Array[4], org: Array[5]} ; Return the array so we can do {variable}.email and so on
|
} Until (File.AtEOF)
|
||||||
Return Test
|
File.Close()
|
||||||
|
Return false
|
||||||
}
|
}
|
||||||
if !(xID)
|
if !(xID)
|
||||||
{
|
{
|
||||||
Return
|
Return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; INI Manipulation that supports UTF-8
|
; INI Manipulation that supports UTF-8
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
@ -52,47 +65,104 @@ GetInfo(xID) ; Accept what is passed here as the variable "xID" in the script
|
|||||||
ini_load(location)
|
ini_load(location)
|
||||||
{
|
{
|
||||||
out := {}
|
out := {}
|
||||||
Loop, Read, %location%
|
File := FileOpen(location, "r")
|
||||||
|
cleaner := File.Read()
|
||||||
|
File.Close()
|
||||||
|
cleaner := RegExReplace(cleaner, "`am)^[\s\R]*") ; Remove empty lines
|
||||||
|
cleaner := RegExReplace(cleaner, "m)[ \t]+$") ; Get rid of extra space at the end of values (NEEDS FIXED)
|
||||||
|
File := FileOpen(location, "w")
|
||||||
|
File.Write(cleaner)
|
||||||
|
File.Close()
|
||||||
|
File := FileOpen(location, "r")
|
||||||
|
Loop
|
||||||
{
|
{
|
||||||
RegExMatch(A_LoopReadLine, "(?<=\[).*(?=\])", _RESection) ; Matches section name
|
Line := File.ReadLine()
|
||||||
RegExMatch(A_LoopReadLine, "(?<Key>.*)=(?<Value>.*)", _) ; Key = _Key, Value = _Value
|
RegExMatch(Line, "(?<Section>(?<=\[).*(?=\]))|(?<Key>.*)=(?<Value>.*)", r) ; Key = rKey, Value = rValue, Section = rSection
|
||||||
|
If (rSection)
|
||||||
If (_RESection)
|
|
||||||
{
|
{
|
||||||
_RESection := StrReplace(_RESection, " ", "_")
|
rSection := Trim(rSection, " `t`r`n") ; Remove pesky newlines and extra space
|
||||||
out[_RESection]:={}
|
rSection := StrReplace(rSection, " ", "§") ; AHK can't handle spaces in nested array names, so they're substituted with §
|
||||||
currentSection := _RESection
|
out[rSection]:={}
|
||||||
} Else {
|
c_Section := rSection
|
||||||
If (_Value)
|
} Else
|
||||||
{
|
{
|
||||||
_Key := StrReplace(_Key, " ", "_")
|
rKey := Trim(rKey, " `t`r`n")
|
||||||
out[currentSection][_Key] := _Value
|
rValue := Trim(rValue, " `t`r`n")
|
||||||
}
|
out[c_Section, rKey] := rValue
|
||||||
}
|
}
|
||||||
}
|
} Until (File.AtEOF)
|
||||||
|
File.Close()
|
||||||
Return out
|
Return out
|
||||||
}
|
}
|
||||||
|
|
||||||
ini_getValue(location, inSec, inKey)
|
|
||||||
|
ini_write(location, inKey, inValue) ; Don't need to specify section because you can only have one hotstring anyway
|
||||||
{
|
{
|
||||||
ini_loaded := {}
|
Critical, On
|
||||||
ini_loaded := ini_load(location)
|
file := FileOpen(location, "r")
|
||||||
|
temp := file.Read()
|
||||||
inSec := StrReplace(inSec, " ", "_")
|
file.Close()
|
||||||
inKey := StrReplace(inKey, " ", "_")
|
inKeyReg := "(?<=^" inKey "=)\S*" ; Regex to make sure we're matching only the value for the requested key
|
||||||
|
temp := RegExReplace(temp, inKeyReg, inValue)
|
||||||
Return ini_loaded[inSec][inKey]
|
file := FileOpen(location, "w")
|
||||||
|
file.Write(temp)
|
||||||
|
file.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
ini_writeValue(location, inKey, inValue)
|
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
; Make sure the settings file exists, if not, create it
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
sett_ini := A_MyDocuments "\D3Ksettings.ini" ; Where the settings ini is
|
||||||
|
|
||||||
|
If !FileExist(sett_ini) ; Check if the sett_ini doesn't exist
|
||||||
{
|
{
|
||||||
FileRead, tempini, %location%
|
file := FileOpen(sett_ini, "w")
|
||||||
needle := inKey . "=.*"
|
writethis := "
|
||||||
replacement := inKey . "=" . inValue
|
( LTrim
|
||||||
tempini := RegExReplace(tempini, needle, replacement,, 1)
|
[USpec]
|
||||||
tempini := RegExReplace(tempini, "\R+\R", "`r`n")
|
Email=LastnameFirstname@JohnDeere.com
|
||||||
WinWaitNotActive, GloVar.ini
|
Name=Firstname
|
||||||
FileAppend, %tempini%, tempini ; Append the fixed ini to a new file
|
DocFile=Select File
|
||||||
FileCopy, tempini, %location%, 1 ; Copy the file over, overwriting existing contents
|
[Main]
|
||||||
FileDelete, tempini ; Delete the fixed temporary ini
|
Mansol=1
|
||||||
}
|
MJDPaste=1
|
||||||
|
CaseFormatter=1
|
||||||
|
CFmail=0
|
||||||
|
[Replacement]
|
||||||
|
JDProductNames=1
|
||||||
|
GloVar=0
|
||||||
|
[Language]
|
||||||
|
German=0
|
||||||
|
)"
|
||||||
|
file.Write(writethis)
|
||||||
|
file.Close()
|
||||||
|
Run Settings.ahk ; Runs the GUI for changing the settings, accessible with Alt+Shift+\ (also easy way to restart this script)
|
||||||
|
}
|
||||||
|
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
; Read the sett_ini
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
; This is the part that reads the file to see what your settings are. Variables in the sett_ini file are in all CamelCase, variables here are lowercase for more distinction
|
||||||
|
|
||||||
|
settings := {}
|
||||||
|
settings := ini_load(sett_ini)
|
||||||
|
|
||||||
|
; User Specific things:
|
||||||
|
email := settings["USpec", "Email"]
|
||||||
|
name := settings["USpec", "Name"]
|
||||||
|
docfile := settings["USpec", "DocFile"]
|
||||||
|
|
||||||
|
; General Settings
|
||||||
|
mansol := settings["Main", "Mansol"]
|
||||||
|
supadmin := settings["Main", "Supadmin"]
|
||||||
|
mjdpaste := settings["Main", "MJDPaste"]
|
||||||
|
caseformatter := settings["Main", "CaseFormatter"]
|
||||||
|
cfmail := settings["Main", "CFmail"]
|
||||||
|
|
||||||
|
; Replacement
|
||||||
|
jdpn := settings["Replacement", "JDProductNames"]
|
||||||
|
glovar := settings["Replacement", "GloVar"]
|
||||||
|
|
||||||
|
; Language
|
||||||
|
ger := settings["Language", "German"]
|
16
glovarsource
16
glovarsource
@ -1,16 +1,6 @@
|
|||||||
[Serial Numbers]
|
[Serial Numbers]
|
||||||
1=
|
1=
|
||||||
ch=
|
cm=
|
||||||
2=
|
v=
|
||||||
MTG=
|
|
||||||
VIN=
|
|
||||||
[Operations Center]
|
|
||||||
usr=
|
|
||||||
org=
|
|
||||||
dorg=
|
|
||||||
[Info]
|
[Info]
|
||||||
case=
|
case=
|
||||||
dus=
|
|
||||||
dnm=
|
|
||||||
dem=
|
|
||||||
xID=
|
|
63
msmv.ahk
Normal file
63
msmv.ahk
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
#SingleInstance, force
|
||||||
|
CoordMode, Mouse, Screen
|
||||||
|
|
||||||
|
waittime := 120000
|
||||||
|
|
||||||
|
Switch A_Args[1]
|
||||||
|
{
|
||||||
|
Case "on":
|
||||||
|
Menu, Tray, NoIcon
|
||||||
|
Goto, Start
|
||||||
|
Case "off":
|
||||||
|
ExitApp
|
||||||
|
}
|
||||||
|
|
||||||
|
Menu, Tray, Add, Hide GUI, GuiToggle ; Adds a button to toggle the gui
|
||||||
|
Menu, Tray, Add, Exit, GuiClose ; Exit button
|
||||||
|
Menu, Tray, NoStandard ; None of the standard tray buttons
|
||||||
|
Gui, +AlwaysOnTop +ToolWindow
|
||||||
|
Gui, Add, Button, x3 y3 w55 h20 gStart +Center, Start
|
||||||
|
Gui, Add, Button, x3 y3 w55 h20 gStop +Center, Stop
|
||||||
|
Gui, Show, h28 w60, msmv
|
||||||
|
GuiControl, Hide, Stop ; Since we want the Start button to show first
|
||||||
|
Return
|
||||||
|
|
||||||
|
Start:
|
||||||
|
GuiControl, Hide, Start
|
||||||
|
SetTimer, Msmv, %waittime% ; Checks if the has been input in the last 2 minutes every 30 secs, easier to stop a loop with SetTimer
|
||||||
|
GuiControl, Show, Stop
|
||||||
|
Return
|
||||||
|
|
||||||
|
Stop:
|
||||||
|
GuiControl, Hide, Stop
|
||||||
|
SetTimer, Msmv, off
|
||||||
|
GuiControl, Show, Start
|
||||||
|
Return
|
||||||
|
|
||||||
|
Msmv:
|
||||||
|
If (A_TimeIdle > waittime) ; https://www.autohotkey.com/docs/Variables.htm#User_Idle_Time
|
||||||
|
{
|
||||||
|
Random, x,, %A_ScreenWidth%
|
||||||
|
Random, y,, %A_ScreenHeight%
|
||||||
|
MouseMove %x%, %y%
|
||||||
|
}
|
||||||
|
Return
|
||||||
|
|
||||||
|
GuiToggle:
|
||||||
|
If !nogui
|
||||||
|
{
|
||||||
|
Gui, Hide
|
||||||
|
Menu, Tray, Check, Hide GUI
|
||||||
|
nogui := True
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
Menu, Tray, uncheck, Hide GUI
|
||||||
|
nogui := False
|
||||||
|
Gui, Show
|
||||||
|
}
|
||||||
|
Return
|
||||||
|
|
||||||
|
GuiClose:
|
||||||
|
GuiEscape:
|
||||||
|
ExitApp ; Closes the app when escape or the exit button is pressed
|
306
old_versions/Break (broken, not being fixed).ahk
Normal file
306
old_versions/Break (broken, not being fixed).ahk
Normal file
@ -0,0 +1,306 @@
|
|||||||
|
#SingleInstance force ; We only want one of these running at a time...
|
||||||
|
FileEncoding, UTF-8
|
||||||
|
Menu, Tray, Icon, %A_MyDocuments%\D3K\icons\coffeecup.ico
|
||||||
|
DetectHiddenWindows, On ; This is so that it can identIfy that the window exists since we have it not show up in the taskbar
|
||||||
|
|
||||||
|
Total := 60 ; Total break time in minutes
|
||||||
|
KeepThis := 1 ; Just a variable to save things
|
||||||
|
winx := 1 ; When these two are set to 1, it puts the window at the center
|
||||||
|
winy := 1
|
||||||
|
ugly := False
|
||||||
|
|
||||||
|
If FileExist("T_Msg.ahk")
|
||||||
|
{
|
||||||
|
#Include T_Msg.ahk
|
||||||
|
}
|
||||||
|
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
; Main GUI creation
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
ShowGUI: ; Easy way to recreate the window for the pretty color
|
||||||
|
Gui, main:+AlwaysOnTop
|
||||||
|
Gui, main:+ToolWindow ; Removes the minimize and maximize buttons, removes it from the taskbar
|
||||||
|
|
||||||
|
Gui, main:Add, Progress, x2 y1 w110 h14 Range0-60 -Smooth vProgress, %Total% ; Slider at the top, a nice visual
|
||||||
|
Gui, main:Add, Text, x43 y23 w27 h20 vTotal +Center, %Total% ; The total time left
|
||||||
|
Gui, main:Add, Edit, x72 y20 w30 h20 +Number vInput +Center, ; Input box for the length of your break
|
||||||
|
Gui, main:Add, Button, x2 y20 w40 h20 gLock, Lock ; Button to lock PC
|
||||||
|
Gui, main:Add, Text, x2 y23 w40 h20 vLocked, Locked ; Text that confirmes that your PC is locked
|
||||||
|
Gui, main:Add, Button, x2 y20 w40 h20 gBreakButton vBrek, Break ; Button to start break
|
||||||
|
Gui, main:Add, Button, x2 y20 w40 h20 gEnd, End ; Button to end break
|
||||||
|
Gui, main:Add, Button, x21 y83 w70 h30 Default gLength, Length ; Button that is default so that when you press enter on the input field it puts you on that long of a break and also locks the PC
|
||||||
|
|
||||||
|
; Hide the things we don't want to see when it starts up
|
||||||
|
GuiControl, Hide, Subtract
|
||||||
|
GuiControl, Hide, Lock
|
||||||
|
GuiControl, Hide, Locked
|
||||||
|
GuiControl, Hide, End
|
||||||
|
|
||||||
|
If (ugly = True){
|
||||||
|
GuiControl, -cGreen, Progress
|
||||||
|
}
|
||||||
|
|
||||||
|
; AI to make it show the window where it was before (explained later)
|
||||||
|
If (winx="1" And winy="1"){ ; The default values assigned at the beginning of the script
|
||||||
|
WinLoc := "Center" ; Shows the window in the center of the screen (basically only on startup)
|
||||||
|
}
|
||||||
|
Else{
|
||||||
|
WinLoc = x%winx% y%winy% ; Saved further down in the script when clicking on End
|
||||||
|
}
|
||||||
|
|
||||||
|
Gui, main:Show, h45 w115 %WinLoc%, Break time ; Show the GUI
|
||||||
|
Return
|
||||||
|
|
||||||
|
GuiClose:
|
||||||
|
ExitApp ; Make sure that it doesn't keep running when the close button is clicked
|
||||||
|
Return
|
||||||
|
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
; Main GUI buttons
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Length:
|
||||||
|
LWD := True
|
||||||
|
Goto, GuiContextMenu
|
||||||
|
Return
|
||||||
|
|
||||||
|
BreakButton: ; Starts your break for the length you entered in the field
|
||||||
|
GuiControl, Hide, Brek ; Hide the Break button
|
||||||
|
Send, #+B ; Hotkey for default Break Time (10 mins)
|
||||||
|
Gui, main:submit, NoHide
|
||||||
|
GuiControl, Show, Lock ; Show the Lock button
|
||||||
|
uploop := True ; Set this to true so that it doesn't exit after one run
|
||||||
|
BreakLength = 10 ; Default break length
|
||||||
|
BegWarned = False
|
||||||
|
HalfBreakLength := BreakLength // 2
|
||||||
|
HBWarned = False
|
||||||
|
WarnLength := BreakLength - 2
|
||||||
|
EBWarned = False
|
||||||
|
SetTimer, UpTimer, 1000 ; Function for updating the graphics
|
||||||
|
StartTime := A_TickCount ; Saves the time that we started at in Milliseconds
|
||||||
|
KeepThis := Total ; Saves the current total to a dIfferent variable so that If there are errors while it is updating, it doesn't mess with anything else
|
||||||
|
GuiControl, +cRed, Progress ; Changes the color of the progress bar to red. It is the entire reason that the GUI needs to be destroyed and then recreated
|
||||||
|
Sleep, 3000 ; Show the lock button for 2 seconds
|
||||||
|
GuiControl, Hide, Lock ; Remove the lock button
|
||||||
|
GuiControl, Show, End ; Show the end button
|
||||||
|
Return
|
||||||
|
|
||||||
|
Lock: ; Locks the PC
|
||||||
|
Gui, main:submit, NoHide
|
||||||
|
GuiControl, Hide, Lock ; If you can't figure this one out by now, you might need to RTFM
|
||||||
|
GuiControl, Show, Locked
|
||||||
|
Run rundll32.exe user32.dll`,LockWorkStation ; Locks PC by calling the DLL. just sending Win+L sadly doesn't work
|
||||||
|
Sleep, 1000
|
||||||
|
GuiControl, Hide, Locked
|
||||||
|
GuiControl, Show, End
|
||||||
|
uploop := True ; No real reason to do this, but it can't hurt
|
||||||
|
Return
|
||||||
|
|
||||||
|
End: ; Ends your break
|
||||||
|
Send, #+B ; Break hotkey
|
||||||
|
GuiControl, Hide, End
|
||||||
|
SetTimer, UpTimer, Off ; Stop the live updating loop
|
||||||
|
ElapsedTime := A_TickCount - StartTime ; grabs the current time in MS, and subtracts it from the TickCount that we recorded earlier
|
||||||
|
ELSeconds := ElapsedTime/1000 ; Convert to seconds
|
||||||
|
ELMins := ELSeconds/60 ; Convert to minutes
|
||||||
|
ELMins := Round(ELMins, 2) ; Round it off to 2 places
|
||||||
|
Total := (KeepThis-ELMins) ; Subtract the elapsed minutes (in ##.##0000) from the total
|
||||||
|
Total := SubStr(Total, 1, 2) ; Trim off the total cause it now has a bunch of useless zeros at the end, and we don't want to see those
|
||||||
|
WinGetActiveStats, Title, Width, Height, winx, winy ; Save the current position to variables, first three are there cause it is required
|
||||||
|
SetTimer, UpTimer, Off ; Make sure the dang thing turns off
|
||||||
|
Gui, main:Destroy ; I couldn't find a way to get the default Win10 green with the flashing part back, so we're just gonna destroy it and make a new one at the exact same place
|
||||||
|
Goto, ShowGUI ; Just goes to the top to create the GUI again, but this time at the locations saved from earlier.
|
||||||
|
GuiControl,, Total, %Total% ; ModIfy the time at the bottom and progress bar to be accurate
|
||||||
|
GuiControl,, Progress, %Total%
|
||||||
|
If (ugly = True)
|
||||||
|
{
|
||||||
|
GuiControl, -cGreen, Progress
|
||||||
|
}
|
||||||
|
Sleep, 1000 ; A little bit of break time so that you don't immediatley go back into break accidentially
|
||||||
|
GuiControl, Show, Brek
|
||||||
|
uploop := False ; Make sure the dang thing turns off
|
||||||
|
; Delete previous message
|
||||||
|
Return
|
||||||
|
|
||||||
|
GuiContextMenu:
|
||||||
|
mousegetpos,,,, name
|
||||||
|
If InStr(name, "Button")
|
||||||
|
{
|
||||||
|
Return
|
||||||
|
}
|
||||||
|
|
||||||
|
;Since there isn't a return here, right clicking anywhere other than the button will show the second GUI, as well as pressing Escape
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
; Second GUI
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
GuiEscape:
|
||||||
|
Gui, 2: Destroy ; Just in case there is one open already
|
||||||
|
WinGetActiveStats, Title, Width, Height, winx, winy ; Save the current position to variables, other ones are there cause it was required
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Gui, 2: +AlwaysOnTop
|
||||||
|
Gui, 2: +ToolWindow
|
||||||
|
|
||||||
|
Gui, 2: Add, Edit, x2 y2 w40 h20 +Number vSubInput +Center, ; Input box for when you manually do a break
|
||||||
|
Gui, 2: Add, Button, x21 y83 w70 h30 Default gSubtract, Subtract
|
||||||
|
|
||||||
|
|
||||||
|
winy += 75
|
||||||
|
winx += 35
|
||||||
|
Win2Loc = x%winx% y%winy% ; Makes the little popup show up centered below the break window
|
||||||
|
|
||||||
|
|
||||||
|
Gui, 2: Show, w45 h25 %Win2Loc%, Subtract from Total time ; Show the GUI
|
||||||
|
Return
|
||||||
|
|
||||||
|
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
; Second GUI buttons
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Subtract: ; The default button, subtracts the time you entered into the field from the total
|
||||||
|
gui, 2:submit, Hide ; Makes sure the GUI doesn't dissapear when you submit it
|
||||||
|
Total := (Total - SubInput) ; Subtracts what you entered from the total time
|
||||||
|
GuiControl,, Total, %Total% ; ModIfy the time at the bottom and progress bar to be accurate
|
||||||
|
GuiControl,, Progress, %Total%
|
||||||
|
Gui, 2:Destroy
|
||||||
|
WinActivate, Break Time
|
||||||
|
WinGetActiveStats, Title, Width, Height, winx, winy ; Save the current position to variables, first three are there cause it is required
|
||||||
|
Gui, main:Destroy
|
||||||
|
Goto, ShowGUI ; Just goes to the top to create the GUI again, but this time at the locations saved from earlier.
|
||||||
|
Return
|
||||||
|
|
||||||
|
2GuiClose: ; From the close button
|
||||||
|
2GuiEscape: ; From pressing escape
|
||||||
|
Gui, 2: Destroy
|
||||||
|
Return
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
; GUI to remove green color
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
2GuiContextMenu: ; Because one nested GUI isn't enough
|
||||||
|
MsgBox, 4148, Color Change, Remove the flashing green?
|
||||||
|
|
||||||
|
IfMsgBox, Yes
|
||||||
|
{
|
||||||
|
GuiControl, -cGreen, Progress
|
||||||
|
ugly := True
|
||||||
|
}
|
||||||
|
Return
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
UpTimer:
|
||||||
|
ElapsedTime := A_TickCount - StartTime ; grabs the current time in MS, and subtracts it from the time that we recorded earlier
|
||||||
|
ELSeconds := ElapsedTime // 1000 ; Convert to seconds
|
||||||
|
ELMins := ELSeconds // 60 ; Convert to minutes
|
||||||
|
ELMins := Round(ELMins) ; Round it off to nearest Intreger
|
||||||
|
Update := (Total-ELMins) ; Subtract the elapsed minutes from the total
|
||||||
|
GuiControl,, Progress, %Update% ; Update the time left at the bottom and progress bar
|
||||||
|
GuiControl,, Total, %Update%
|
||||||
|
|
||||||
|
If FileExist("T_Msg.ahk")
|
||||||
|
{
|
||||||
|
If (BegWarned = "False")
|
||||||
|
{
|
||||||
|
If (HalfBreakLength >= WarnLength)
|
||||||
|
{
|
||||||
|
BegWarned = True
|
||||||
|
HBWarned = True
|
||||||
|
T_SendMsg("info",1,BreakLength " Minute break started, will warn on " HalfBreakLength " mins left.`n<code>" Total " mins of break time left</code>")
|
||||||
|
}
|
||||||
|
|
||||||
|
If (HalfBreakLength < WarnLength)
|
||||||
|
{
|
||||||
|
BegWarned = True
|
||||||
|
T_SendMsg("info",1,BreakLength " Minute break started, will warn on " HalfBreakLength " mins and " WarnLength " mins elapsed.`n<code>" Total " mins of break time left</code>")
|
||||||
|
}
|
||||||
|
|
||||||
|
Temp := Update
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
If FileExist("T_Msg.ahk")
|
||||||
|
{
|
||||||
|
If !(Temp > Update)
|
||||||
|
{
|
||||||
|
Temp := Update
|
||||||
|
If (HBWarned = "False")
|
||||||
|
{
|
||||||
|
If (ELMins = HalfBreakLength)
|
||||||
|
{
|
||||||
|
; Delete previous message
|
||||||
|
T_SendMsg("alert", 1, "Break is half over, " HalfBreakLength " mins left.`n<code>" Update " mins of break time left</code>")
|
||||||
|
HBWarned = True
|
||||||
|
}
|
||||||
|
|
||||||
|
If (HalfBreakLength >= WarnLength)
|
||||||
|
{
|
||||||
|
T_Edit("info",1,BreakLength " Minute break started, will warn on " HalfBreakLength " mins left.`n<code>" Update " mins of total break time left</code>")
|
||||||
|
}
|
||||||
|
|
||||||
|
If (HalfBreakLength < WarnLength)
|
||||||
|
{
|
||||||
|
T_Edit("info",1,BreakLength " Minute break started, will warn on " HalfBreakLength " mins and " WarnLength " mins elapsed.`n<code>" Update " mins of total break time left</code>")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
If (HBWarned = "True")
|
||||||
|
{
|
||||||
|
If (HalfBreakLength >= WarnLength)
|
||||||
|
{
|
||||||
|
T_Edit("info",1,BreakLength " Minute break started, warned on " HalfBreakLength " mins left.`n<code>" Update " mins of total break time left</code>")
|
||||||
|
}
|
||||||
|
|
||||||
|
If (HalfBreakLength < WarnLength)
|
||||||
|
{
|
||||||
|
T_Edit("info",1,BreakLength " Minute break started, warned on " HalfBreakLength " mins, will warn again on " WarnLength " mins elapsed.`n<code>" Update " mins of total break time left</code>")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
If (EBWarned = "False")
|
||||||
|
{
|
||||||
|
If (ELMins = WarnLength)
|
||||||
|
{
|
||||||
|
T_SendMsg("hand", 3, "<b>Break is almost over, 2 mins left of your " BreakLength " minute break!</b>`n<code>" Update " mins of break time left</code>")
|
||||||
|
EBWarned = True
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
If (HalfBreakLength >= WarnLength)
|
||||||
|
{
|
||||||
|
T_Edit("info",1,BreakLength " Minute break started, will warn on " HalfBreakLength " mins left.`n<code>" Update " mins of total break time left</code>")
|
||||||
|
}
|
||||||
|
|
||||||
|
If (HalfBreakLength < WarnLength)
|
||||||
|
{
|
||||||
|
T_Edit("info",1,BreakLength " Minute break started, will warn on " HalfBreakLength " mins and " WarnLength " mins elapsed.`n<code>" Update " mins of total break time left</code>")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
If (EBWarned = "True")
|
||||||
|
{
|
||||||
|
If (HalfBreakLength >= WarnLength)
|
||||||
|
{
|
||||||
|
T_Edit("hand", 3, "<b>Break is almost over, 2 mins left of your " BreakLength " minute break!</b>`n<code>" Update " mins of total break time left</code>")
|
||||||
|
}
|
||||||
|
|
||||||
|
If (HalfBreakLength < WarnLength)
|
||||||
|
{
|
||||||
|
T_Edit("hand", 3, "<b>Break is almost over, 2 mins left of your " BreakLength " minute break!</b>`n<code>" Update " mins of total break time left</code>")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Return
|
145
old_versions/T_Msg.ahk
Normal file
145
old_versions/T_Msg.ahk
Normal file
@ -0,0 +1,145 @@
|
|||||||
|
; Sauce: https://www.autohotkey.com/boards/viewtopic.php?t=24919
|
||||||
|
|
||||||
|
T_SendMsg(Option,EmojiPosition,Text)
|
||||||
|
{
|
||||||
|
ini = %A_MyDocuments%\D3Ksettings.ini ; Where the ini is
|
||||||
|
|
||||||
|
IniRead, TelegramBotToken, %ini%, Info, TBToken, 0
|
||||||
|
IniRead, TelegramBotChatID, %ini%, Info, TBChatID, 0
|
||||||
|
|
||||||
|
if !(TelegramBotToken)
|
||||||
|
{
|
||||||
|
Return
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Option = "hand")
|
||||||
|
{
|
||||||
|
TelegramIconString := "%E2%9D%8C"
|
||||||
|
}
|
||||||
|
if (Option = "question")
|
||||||
|
{
|
||||||
|
TelegramIconString := "%E2%9D%94"
|
||||||
|
}
|
||||||
|
if (Option = "alert")
|
||||||
|
{
|
||||||
|
TelegramIconString := "%E2%9A%A0%EF%B8%8F"
|
||||||
|
}
|
||||||
|
if (Option = "info")
|
||||||
|
{
|
||||||
|
TelegramIconString := "%E2%84%B9%EF%B8%8F"
|
||||||
|
}
|
||||||
|
|
||||||
|
IfInString, Option, `%
|
||||||
|
TelegramIconString := Option
|
||||||
|
|
||||||
|
Text := StrReplace(Text, "`n", "%0A")
|
||||||
|
|
||||||
|
If (EmojiPosition = 1)
|
||||||
|
{
|
||||||
|
Text = %TelegramIconString% %Text%
|
||||||
|
}
|
||||||
|
|
||||||
|
If (EmojiPosition = 2)
|
||||||
|
{
|
||||||
|
Text = %Text% %TelegramIconString%
|
||||||
|
}
|
||||||
|
|
||||||
|
If (EmojiPosition = 3)
|
||||||
|
{
|
||||||
|
Text = %TelegramIconString% %Text% %TelegramIconString%
|
||||||
|
}
|
||||||
|
|
||||||
|
loop 3
|
||||||
|
{
|
||||||
|
UrlDownloadToFile https://api.telegram.org/bot%TelegramBotToken%/sendmessage?chat_id=%TelegramBotChatID%&parse_mode=HTML&text=%Text%, %A_ScriptDir%\Tlog
|
||||||
|
sleep 1000
|
||||||
|
ifexist %A_ScriptDir%\Tlog
|
||||||
|
{
|
||||||
|
break
|
||||||
|
}
|
||||||
|
if A_index = 3
|
||||||
|
{
|
||||||
|
MsgBox, 16,, Something went wrong with sending the Telegram message.
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
T_Edit(Option,EmojiPosition,Text)
|
||||||
|
{
|
||||||
|
ini = %A_MyDocuments%\D3Ksettings.ini ; Where the ini is
|
||||||
|
|
||||||
|
IniRead, TelegramBotToken, %ini%, Info, TBToken, 0
|
||||||
|
IniRead, TelegramBotChatID, %ini%, Info, TBChatID, 0
|
||||||
|
|
||||||
|
if !(TelegramBotToken)
|
||||||
|
{
|
||||||
|
Return
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Option = "hand")
|
||||||
|
{
|
||||||
|
TelegramIconString := "%E2%9D%8C"
|
||||||
|
}
|
||||||
|
if (Option = "question")
|
||||||
|
{
|
||||||
|
TelegramIconString := "%E2%9D%94"
|
||||||
|
}
|
||||||
|
if (Option = "alert")
|
||||||
|
{
|
||||||
|
TelegramIconString := "%E2%9A%A0%EF%B8%8F"
|
||||||
|
}
|
||||||
|
if (Option = "info")
|
||||||
|
{
|
||||||
|
TelegramIconString := "%E2%84%B9%EF%B8%8F"
|
||||||
|
}
|
||||||
|
|
||||||
|
IfInString, Option, `%
|
||||||
|
TelegramIconString := Option
|
||||||
|
|
||||||
|
Text := StrReplace(Text, "`n", "%0A")
|
||||||
|
|
||||||
|
If (EmojiPosition = 1)
|
||||||
|
{
|
||||||
|
Text = %TelegramIconString% %Text%
|
||||||
|
}
|
||||||
|
|
||||||
|
If (EmojiPosition = 2)
|
||||||
|
{
|
||||||
|
Text = %Text% %TelegramIconString%
|
||||||
|
}
|
||||||
|
|
||||||
|
If (EmojiPosition = 3)
|
||||||
|
{
|
||||||
|
Text = %TelegramIconString% %Text% %TelegramIconString%
|
||||||
|
}
|
||||||
|
|
||||||
|
FileRead, Tlog, %A_ScriptDir%/Tlog
|
||||||
|
|
||||||
|
RegExMatch(Tlog, "(?<=""ok"":).", success)
|
||||||
|
|
||||||
|
If (success = "t") ; Check to see if message editing succeeded
|
||||||
|
{
|
||||||
|
RegExMatch(Tlog, "(?<=""message_id"":)...", message_id)
|
||||||
|
}
|
||||||
|
|
||||||
|
If (success = "f") ; Check to see if message editing succeeded
|
||||||
|
{
|
||||||
|
RegExMatch(Tlog, "(?<=""description"":"").+(?="")", error_msg)
|
||||||
|
MsgBox, %error_msg%
|
||||||
|
Return
|
||||||
|
}
|
||||||
|
|
||||||
|
loop 3
|
||||||
|
{
|
||||||
|
UrlDownloadToFile https://api.telegram.org/bot%TelegramBotToken%/editMessageText?chat_id=%TelegramBotChatID%&message_id=%message_id%&parse_mode=HTML&text=%Text%, %A_ScriptDir%\Tlog
|
||||||
|
sleep 1000
|
||||||
|
ifexist %A_ScriptDir%\Tlog
|
||||||
|
{
|
||||||
|
break
|
||||||
|
}
|
||||||
|
if A_index = 3
|
||||||
|
{
|
||||||
|
MsgBox, 16,, Something went wrong with updating the Telegram message.
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
@ -30,11 +30,11 @@ Return
|
|||||||
|
|
||||||
|
|
||||||
Help:
|
Help:
|
||||||
MsgBox, 262176, Manual & Solution opener, Press Alt+Shift+S to open the window.`nInput the TM/OM SKU (easily found on TechPubs) or the DTAC solution number to open it in your default browser.`nTMs & OMs open in Service Advisor.
|
Run, https://daviddaily.dev/david/d3k/wiki/ManSol
|
||||||
Return
|
Return
|
||||||
|
|
||||||
GuiClose:
|
GuiClose:
|
||||||
GuiEscape:
|
GuiEscape:
|
||||||
Gui, Destroy
|
Gui, Destroy
|
||||||
Return
|
Return
|
||||||
}
|
}
|
||||||
|
6
standalones/README.md
Normal file
6
standalones/README.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# Standalone ManSol Opener
|
||||||
|
|
||||||
|
This is a standalone version, the help guide can be found [here](https://daviddaily.dev/david/d3k/wiki/ManSol)
|
||||||
|
|
||||||
|
## [Download the executable here](https://files.daviddaily.dev/.d3k/ManSol%20Opener.exe)
|
||||||
|
I would recommend putting it in your startup folder (`%appdata%\Microsoft\Windows\Start Menu\Programs\Startup`) so that it starts automagically when you start your computer.
|
Reference in New Issue
Block a user