From e89b64463f224e7ba9ac76d2f149a63793c4185c Mon Sep 17 00:00:00 2001 From: David Daily Date: Fri, 24 Jan 2020 09:26:29 -0600 Subject: [PATCH] Get xID from ini, write to the ini so that it updates with the entered info automagically --- addemail.ahk | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/addemail.ahk b/addemail.ahk index f6d5f6d..a0cdc55 100644 --- a/addemail.ahk +++ b/addemail.ahk @@ -1,17 +1,20 @@ #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 +glovarini := A_MyDocuments "\GloVar.ini" +Xid := ini_getValue(glovarini, "Info", "xID") +StringUpper, Xid, Xid + Gui, +AlwaysOnTop +ToolWindow Gui, Add, Text, x2 y2 w60 h17 +Center, xID -Gui, Add, Text, x65 y2 w120 h17 +Center, Name -Gui, Add, Text, x190 y2 w100 h17 +Center, Email +Gui, Add, Text, x65 y2 w120 h17 +Center, Email +Gui, Add, Text, x190 y2 w100 h17 +Center, Name -Gui, Add, Edit, x2 y17 w60 h20 vXid -Gui, Add, Edit, x65 y17 w120 h20 vName -Gui, Add, Edit, x190 y17 w100 h20 vEmail +Gui, Add, Edit, x2 y17 w60 h20 vXid, %Xid% +Gui, Add, Edit, x65 y17 w120 h20 vEmail +Gui, Add, Edit, x190 y17 w100 h20 vName Gui, Add, Button, x172 y89 w70 h30 Default, OK @@ -22,7 +25,7 @@ ButtonOK: Gui, Submit writethis := Xid . "," . Email . "," . Name FileAppend, % "`n" writethis, %csv% - Clipboard := Xid + ini_writeValue(A_MyDocuments "\GloVar.ini", "dem", Email) Return