I have two files in my WIN-7 computer (C:\a.log , C:\b.txt). When I press START, I want to get the data from a.log and b.txt like the picture as below.
I have tried many methods but it still doesn't work, so I need your help.
Have a nice day.
Code: Select all
vvv=0
Gui +AlwaysOnTop
Gui, Color, dcdcdc
Gui, Show, x131 y91 h280 w260,Text
Gui, Font, Norm S10 cred , Tahoma
Gui, Add, GroupBox, x60 y5 w80 h210 , Group_A
Gui, Add, Text, x10 y35, BTF3 04
Gui, Add, Text, x10 y65, BTF3 05
Gui, Add, Text, x10 y95, BTF3 08
Gui, Add, Text, x10 y125, BTF3 09
Gui, Add, Text, x10 y155, BTF3 34
Gui, Add, Text, x10 y185, BTF3 35
Gui, Add, Edit, x75 y30 w50 h24 vcard1,
Gui, Add, Edit, x75 y60 w50 h24 vcard2,
Gui, Add, Edit, x75 y90 w50 h24 vcard3,
Gui, Add, Edit, x75 y120 w50 h24 vcard4,
Gui, Add, Edit, x75 y150 w50 h24 vcard5,
Gui, Add, Edit, x75 y180 w50 h24 vcard6,
Gui, Add, GroupBox, x150 y5 w80 h210 , Group_B
Gui, Add, Edit, x165 y30 w50 h24 vcard7,
Gui, Add, Edit, x165 y60 w50 h24 vcard8,
Gui, Add, Edit, x165 y90 w50 h24 vcard9,
Gui, Add, Edit, x165 y120 w50 h24 vcard10,
Gui, Add, Edit, x165 y150 w50 h24 vcard11,
Gui, Add, Edit, x165 y180 w50 h24 vcard12,
Gui, Add, Button, x162 y240 w60 h25 ,START
#Persistent
WinGet, a_ID, ID, A
SetTimer, aa, 500
return
aa:
WinGet, a1_ID, ID, A
If ( a_ID != a1_ID )
k_ID = %a1_ID%
Return
/*
ButtonSTART:
*/
GuiClose:
ExitApp