d3k/addemail.ahk

33 lines
749 B
AutoHotkey
Raw Normal View History

2019-12-17 10:57:15 -06:00
#Include, func.ahk
2020-01-14 09:14:48 -06:00
2020-02-07 03:31:25 -06:00
csv = %A_MyDocuments%\emails.csv ; Where the email CSV is
2019-12-17 10:57:15 -06:00
glovarini := A_MyDocuments "\GloVar.ini"
2020-02-03 02:54:31 -06:00
Xid := ini_get(glovarini, "Info", "xID")
2019-12-17 10:57:15 -06:00
Gui, +AlwaysOnTop +ToolWindow
Gui, Add, Text, x2 y2 w60 h17 +Center, xID
Gui, Add, Text, x65 y2 w120 h17 +Center, Email
Gui, Add, Text, x190 y2 w100 h17 +Center, Name
2019-12-17 10:57:15 -06:00
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
2019-12-17 10:57:15 -06:00
Gui, Add, Button, x172 y89 w70 h30 Default, OK
Gui, Show, h39 w292, Add dealer to CSV
Return
ButtonOK:
Gui, Submit
writethis := Xid . "," . Email . "," . Name
FileAppend, % "`n" writethis, %csv%
2020-02-03 02:54:31 -06:00
ini_write(A_MyDocuments "\GloVar.ini", "dem", Email)
2019-12-17 10:57:15 -06:00
Return
GuiEscape:
GuiClose:
2020-02-07 03:31:25 -06:00
ExitApp