Update 'D3K.ahk'
Maybe it will stop erroring out constantly. Nothing was changed, but it keeps throwing errors
This commit is contained in:
parent
4e61455ff1
commit
c9303904bd
29
D3K.ahk
29
D3K.ahk
@ -74,6 +74,10 @@ If (glovar = 1)
|
|||||||
SetTimer, GloVar, 2000 ; Check every 2 seconds
|
SetTimer, GloVar, 2000 ; Check every 2 seconds
|
||||||
|
|
||||||
GloVar:
|
GloVar:
|
||||||
|
If FileExist("glovar.ahk")
|
||||||
|
{
|
||||||
|
Run glovar.ahk
|
||||||
|
}
|
||||||
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
|
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
|
||||||
{
|
{
|
||||||
fileread, newFileContent, %glovarini%
|
fileread, newFileContent, %glovarini%
|
||||||
@ -152,16 +156,10 @@ GloVar:
|
|||||||
ini_writeValue(glovarini, "dus", dealinfo.user) ; Writes demo account name (somewhat useful)
|
ini_writeValue(glovarini, "dus", dealinfo.user) ; Writes demo account name (somewhat useful)
|
||||||
ini_writeValue(glovarini, "xID", REValue) ; Writes the xID entered, but uppercase
|
ini_writeValue(glovarini, "xID", REValue) ; Writes the xID entered, but uppercase
|
||||||
}
|
}
|
||||||
If FileExist("glovar.ahk")
|
|
||||||
{
|
|
||||||
Run glovar.ahk
|
|
||||||
}
|
|
||||||
Goto, GloVar
|
|
||||||
}
|
}
|
||||||
fileread, lastFileContent, %glovarini% ; Make sure that this script knows what the ini was changed to so it doesn't constantly run through the above code
|
fileread, lastFileContent, %glovarini% ; Make sure that this script knows what the ini was changed to so it doesn't constantly run through the above code
|
||||||
}
|
}
|
||||||
|
If (RESection) ; If we have a section
|
||||||
If (RESection) ; If we have a secion
|
|
||||||
{
|
{
|
||||||
StoredSection := RESection
|
StoredSection := RESection
|
||||||
If InStr(RESection, "clear") ; Will clear the ini and save its and the documentation file's contents to a log
|
If InStr(RESection, "clear") ; Will clear the ini and save its and the documentation file's contents to a log
|
||||||
@ -174,20 +172,18 @@ GloVar:
|
|||||||
FileAppend, % "`n`n`n`n" writethis "`n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", %A_MyDocuments%/D3KLog.txt ; Write a few new lines , the content, and a line underneath
|
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
|
FileCopy, glovarsource, %glovarini%, 1 ; Copies and replaces any text in glovar.ini with the template
|
||||||
fileread, lastFileContent, %glovarini% ; Make sure that this script knows what the ini was changed to so it doesn't constantly run through the above code
|
fileread, lastFileContent, %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 ; A CLEAN SLATE
|
FileDelete, glovar.ahk ; THE CLEAN SLATE
|
||||||
FileAppend, #SingleInstance force`n`n, glovar.ahk
|
FileAppend, #SingleInstance force`n`n, glovar.ahk
|
||||||
Sleep, 500
|
Sleep, 500
|
||||||
Run glovar.ahk
|
|
||||||
Break ; Makes sure we're done with this loop and go to the right place
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Return
|
||||||
If FileExist("glovar.ahk")
|
If FileExist("glovar.ahk")
|
||||||
{
|
{
|
||||||
Run glovar.ahk
|
Run glovar.ahk
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Return
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Return
|
Return
|
||||||
}
|
}
|
||||||
@ -485,12 +481,19 @@ SetTitleMatchMode, 2
|
|||||||
return
|
return
|
||||||
#If
|
#If
|
||||||
|
|
||||||
#If, not(email = "LastnameFirstname@example.com") ; Same as above
|
#If, not(email = "LastnameFirstname@JohnDeere.com") ; Same as above
|
||||||
:*:@me::
|
:*:@me::
|
||||||
Send, %email%
|
Send, %email%
|
||||||
Return
|
Return
|
||||||
#If
|
#If
|
||||||
|
|
||||||
|
; R2 Shared Inbox
|
||||||
|
#If, ger = "1"
|
||||||
|
:*:@amse::
|
||||||
|
Send, %amse%
|
||||||
|
Return
|
||||||
|
#If
|
||||||
|
|
||||||
; JD Names
|
; JD Names
|
||||||
#If, jdpn = "1"
|
#If, jdpn = "1"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user