Add dealer org, fix ini updating
This commit is contained in:
parent
ace6f712cd
commit
fef7d1e376
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
|
||||||
|
Loading…
Reference in New Issue
Block a user