Compare commits
14 Commits
Author | SHA1 | Date | |
---|---|---|---|
545bdeb506 | |||
330f7f63e7 | |||
0dd3dc2353 | |||
ea4ddc9f42 | |||
fef7d1e376 | |||
ace6f712cd | |||
64d7d9dc0a | |||
0a25a0262a | |||
f182bc2bf2 | |||
6a803b887a | |||
4d848c4613 | |||
da3ddfc759 | |||
65d0427f53 | |||
49138d3bea |
@ -2,13 +2,11 @@
|
|||||||
|
|
||||||
SetTitleMatchMode, 2
|
SetTitleMatchMode, 2
|
||||||
|
|
||||||
ini = %A_MyDocuments%\D3Ksettings.ini
|
|
||||||
|
|
||||||
; 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
|
; 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,+AlwaysOnTop
|
||||||
Gui, +ToolWindow
|
Gui, +ToolWindow
|
||||||
|
|
||||||
IniRead, docfile, %ini%, USpec, DocFile, 0
|
docfile := ini_getValue(ini, "USpec", "DocFile")
|
||||||
|
|
||||||
CurrTimeEN := GetDateTime("en")
|
CurrTimeEN := GetDateTime("en")
|
||||||
CurrTimeDE := GetDateTime("de")
|
CurrTimeDE := GetDateTime("de")
|
||||||
@ -131,7 +129,7 @@ Write:
|
|||||||
FileAppend, Call received %CurrTimeEN%.`n`n, %docfile%
|
FileAppend, Call received %CurrTimeEN%.`n`n, %docfile%
|
||||||
If (Act = "0") ; Not an activation
|
If (Act = "0") ; Not an activation
|
||||||
{
|
{
|
||||||
FileAppend,Dealer called for, %docfile%
|
FileAppend,Dealer called for , %docfile%
|
||||||
}
|
}
|
||||||
|
|
||||||
Else If (Act = "1") ; Warrant
|
Else If (Act = "1") ; Warrant
|
||||||
@ -151,7 +149,7 @@ Write:
|
|||||||
|
|
||||||
If (Act = "0") ; Not an activation
|
If (Act = "0") ; Not an activation
|
||||||
{
|
{
|
||||||
FileAppend,Händler rief an mit, %docfile%
|
FileAppend,Händler rief an mit , %docfile%
|
||||||
}
|
}
|
||||||
|
|
||||||
Else If (Act = "1") ; Warrant
|
Else If (Act = "1") ; Warrant
|
||||||
|
14
D3K.ahk
14
D3K.ahk
@ -2,11 +2,7 @@
|
|||||||
|
|
||||||
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
|
||||||
|
|
||||||
SetWorkingDir, %A_MyDocuments%\D3K ; Make sure we can find the .ahks linked below
|
ini_writeValue(ini, "Version", d3k_version)
|
||||||
|
|
||||||
ini = %A_MyDocuments%\D3Ksettings.ini ; Where the settings ini is
|
|
||||||
|
|
||||||
ini_writeValue(ini, "Version", "2.6")
|
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; Make sure the settings file exists, if not, create it
|
; Make sure the settings file exists, if not, create it
|
||||||
@ -31,7 +27,7 @@ GloVar=0
|
|||||||
[Language]
|
[Language]
|
||||||
German=0
|
German=0
|
||||||
[Info]
|
[Info]
|
||||||
Version=2.6
|
Version=0
|
||||||
), %ini%
|
), %ini%
|
||||||
Run Settings.ahk ; Runs the GUI for changing the settings, also accessible with Alt+Shift+\ (also easy way to restart this script)
|
Run Settings.ahk ; Runs the GUI for changing the settings, also accessible with Alt+Shift+\ (also easy way to restart this script)
|
||||||
}
|
}
|
||||||
@ -142,15 +138,16 @@ If (glovar = 1)
|
|||||||
if !(REValue = dealinfo.xid)
|
if !(REValue = dealinfo.xid)
|
||||||
{
|
{
|
||||||
run addemail.ahk
|
run addemail.ahk
|
||||||
Break
|
Continue
|
||||||
}
|
}
|
||||||
|
|
||||||
; Replace the data in glovar.ahk with the data from the ini
|
; Replace the data in glovar.ahk with the data from the ini
|
||||||
FileRead, tempglovar, glovar.ahk
|
FileRead, tempglovar, glovar.ahk
|
||||||
|
tempglovar := RegExReplace(tempglovar, "(?<=\$xid::).*", dealinfo.xid)
|
||||||
tempglovar := RegExReplace(tempglovar, "(?<=\$dem::).*", dealinfo.email)
|
tempglovar := RegExReplace(tempglovar, "(?<=\$dem::).*", dealinfo.email)
|
||||||
tempglovar := RegExReplace(tempglovar, "(?<=\$dnm::).*", dealinfo.name)
|
tempglovar := RegExReplace(tempglovar, "(?<=\$dnm::).*", dealinfo.name)
|
||||||
tempglovar := RegExReplace(tempglovar, "(?<=\$dus::).*", dealinfo.user)
|
tempglovar := RegExReplace(tempglovar, "(?<=\$dus::).*", dealinfo.user)
|
||||||
tempglovar := RegExReplace(tempglovar, "(?<=\$xid::).*", dealinfo.xid)
|
tempglovar := RegExReplace(tempglovar, "(?<=\$dorg::).*", dealinfo.org)
|
||||||
FileAppend, %tempglovar%, tempglovar
|
FileAppend, %tempglovar%, tempglovar
|
||||||
FileCopy, tempglovar, glovar.ahk,1
|
FileCopy, tempglovar, glovar.ahk,1
|
||||||
FileDelete, tempglovar
|
FileDelete, tempglovar
|
||||||
@ -569,6 +566,7 @@ SetTitleMatchMode, 2
|
|||||||
::pmcalc::PMCalc
|
::pmcalc::PMCalc
|
||||||
::vat::VAT
|
::vat::VAT
|
||||||
:*:racf::RACF
|
:*:racf::RACF
|
||||||
|
::igrade::iGrade
|
||||||
|
|
||||||
|
|
||||||
; German
|
; German
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Welcome To David3000
|
# Welcome To David3000
|
||||||
This was made By David Daily to replace text and do text correction for John Deere GSC Employees. All Credit for the name goes to William Cross (RIP).
|
This was by me to replace text and do text correction at work. All Credit for the name goes to William Cross (RIP).
|
||||||
|
|
||||||
**`Alt+Shift+\` to open a settings window to easily change your settings**
|
## **`Alt+Shift+\` to open a settings window to easily change your settings**
|
||||||
|
|
||||||
You can find the rest of the info in [the wiki tab up there](https://daviddaily.dev/david/d3k/wiki)
|
### You can find the rest of the info in [the wiki tab up there](https://daviddaily.dev/david/d3k/wiki)
|
11
Settings.ahk
11
Settings.ahk
@ -1,13 +1,9 @@
|
|||||||
#SingleInstance force ; Only one instance at a time
|
|
||||||
SendMode, Input
|
|
||||||
FileEncoding, UTF-8 ; Makes sure the special characters don't break stuff
|
|
||||||
#Include, func.ahk
|
#Include, func.ahk
|
||||||
Menu, Tray, Icon, shell32.dll, 283
|
Menu, Tray, Icon, shell32.dll, 283
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; Read ini
|
; Read ini
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
ini = %A_MyDocuments%\D3Ksettings.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
|
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
|
||||||
*/
|
*/
|
||||||
@ -52,10 +48,9 @@ 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, GroupBox, x128 y83 w157 h105, Text Replacement
|
Gui, Add, GroupBox, x128 y83 w157 h75, Text Replacement
|
||||||
Gui, Add, CheckBox, x132 y95 w150 h30 vformSymb Checked%symb% gSymb, Symbols
|
Gui, Add, CheckBox, x132 y95 w150 h30 vformJdpn Checked%jdpn% gJdpn, JD Product Names
|
||||||
Gui, Add, CheckBox, x132 y125 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 y155 w150 h30 vformGlovar Checked%glovar% gGlovar, Global Variables
|
|
||||||
|
|
||||||
Gui, Add, CheckBox, x12 y187 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, Button, x132 y190 w150 h23 gHelp, Click here for help (v%d3k_version%)
|
Gui, Add, Button, x132 y190 w150 h23 gHelp, Click here for help (v%d3k_version%)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#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
|
||||||
SetWorkingDir, %A_MyDocuments%\D3K ; Make sure we can find the .ahks linked below
|
|
||||||
csv = %A_MyDocuments%\Work_Docs\emails.csv ; Where the email CSV is
|
csv = %A_MyDocuments%\Work_Docs\emails.csv ; Where the email CSV is
|
||||||
|
|
||||||
Gui, +AlwaysOnTop +ToolWindow
|
Gui, +AlwaysOnTop +ToolWindow
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
xID,Email,Name,Demo Username
|
xID,Email,Name,Demo Username,Dealer Org
|
||||||
X1,test1@example.com,Person 1,User 1
|
X1,test1@example.com,Person 1,User 1,554866
|
||||||
X2,test2@example.com,Person 2,User 2
|
X2,test2@example.com,Person 2,User 2,69983
|
||||||
X3,test3@example.com,Person 3
|
X3,test3@example.com,Person 3,,4832
|
|
7
func.ahk
7
func.ahk
@ -3,9 +3,9 @@ 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
|
||||||
|
|
||||||
d3k_version = 2.5 ; The current version
|
d3k_version = 2.7 ; The current version
|
||||||
|
|
||||||
settini = %A_MyDocuments%\D3Ksettings.ini ; Where the settings ini is
|
ini = %A_MyDocuments%\D3Ksettings.ini ; Where the settings ini is
|
||||||
|
|
||||||
GetDateTime(lang)
|
GetDateTime(lang)
|
||||||
{
|
{
|
||||||
@ -35,7 +35,7 @@ GetInfo(xID) ; Accept what is passed here as the variable "xID" in the script
|
|||||||
if InStr(Array[1],xID) ; if at the specified element (1) the specified content (dealers xID) has been found,
|
if InStr(Array[1],xID) ; if at the specified element (1) the specified content (dealers xID) has been found,
|
||||||
Break ; stop searching
|
Break ; stop searching
|
||||||
}
|
}
|
||||||
Test:= {xid: Array[1], email: Array[2], name: Array[3], user: Array[4]} ; Return the array so we can do {variable}.email and so on
|
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
|
||||||
Return Test
|
Return Test
|
||||||
}
|
}
|
||||||
if !(xID)
|
if !(xID)
|
||||||
@ -90,6 +90,7 @@ ini_writeValue(location, inKey, inValue)
|
|||||||
needle := inKey . "=.*"
|
needle := inKey . "=.*"
|
||||||
replacement := inKey . "=" . inValue
|
replacement := inKey . "=" . inValue
|
||||||
tempini := RegExReplace(tempini, needle, replacement,, 1)
|
tempini := RegExReplace(tempini, needle, replacement,, 1)
|
||||||
|
tempini := RegExReplace(tempini, "\R+\R", "`r`n")
|
||||||
WinWaitNotActive, GloVar.ini
|
WinWaitNotActive, GloVar.ini
|
||||||
FileAppend, %tempini%, tempini ; Append the fixed ini to a new file
|
FileAppend, %tempini%, tempini ; Append the fixed ini to a new file
|
||||||
FileCopy, tempini, %location%, 1 ; Copy the file over, overwriting existing contents
|
FileCopy, tempini, %location%, 1 ; Copy the file over, overwriting existing contents
|
||||||
|
29
glovarsource
29
glovarsource
@ -1,15 +1,16 @@
|
|||||||
[Serial Numbers]
|
[Serial Numbers]
|
||||||
1=
|
1=
|
||||||
ch=
|
ch=
|
||||||
2=
|
2=
|
||||||
MTG=
|
MTG=
|
||||||
VIN=
|
VIN=
|
||||||
[Operations Center]
|
[Operations Center]
|
||||||
usr=
|
usr=
|
||||||
org=
|
org=
|
||||||
[Info]
|
dorg=
|
||||||
case=
|
[Info]
|
||||||
dus=
|
case=
|
||||||
dnm=
|
dus=
|
||||||
dem=
|
dnm=
|
||||||
|
dem=
|
||||||
xID=
|
xID=
|
Reference in New Issue
Block a user