Search found 144 matches

by Marcosa1020
Today, 08:25
Forum: Ask For Help
Topic: About FileGetTime
Replies: 2
Views: 146

Re: About FileGetTime

HI, I think you want this, SetBatchLines, -1 Searchpath := "G:\Download\", RefFile := "G:\Download\Paper_A.txt" LoadData_GroupA(Searchpath, RefFile) LoadData_GroupA(Folder, RFile) { objA := {} FileGetTime, DateTime, %RFile%, C ;<<<<<<<<<<<< this is the reference file right? Loop, Files, % Folder . ...
by Marcosa1020
04 Dec 2019, 01:06
Forum: Ask For Help
Topic: About FileGetTime
Replies: 2
Views: 146

About FileGetTime

Hello, I have a question need your help. Program_A can search all files in the the folder(G:\Download\). Due to search long time, I want to search for files in five months, so I added the code as below in program_B. Then as you can see, it is incomplete. How can I to control this search in five mont...
by Marcosa1020
01 Dec 2019, 08:05
Forum: Ask For Help
Topic: About WinExist Topic is solved
Replies: 4
Views: 130

Re: About WinExist Topic is solved

swagfag wrote:
01 Dec 2019, 08:02

Code: Select all

SetTitleMatchMode RegEx
if WinExist("^Paper level_\[\d\d\.\d\d\.\d\d\d\d\]$")
Thanks for your reply.
by Marcosa1020
01 Dec 2019, 08:03
Forum: Ask For Help
Topic: About WinExist Topic is solved
Replies: 4
Views: 130

Re: About WinExist Topic is solved

Just do If WinExist("Paper level_") Because SetTitleMatchMode is 1 by default 1: A window's title must start with the specified WinTitle to be a match. 2: A window's title can contain WinTitle anywhere inside it to be a match. 3: A window's title must exactly match WinTitle to be a match. Thanks fo...
by Marcosa1020
01 Dec 2019, 06:47
Forum: Ask For Help
Topic: About WinExist Topic is solved
Replies: 4
Views: 130

About WinExist Topic is solved

Hello, How can I replace code A with code B ? Thank you. Code A: if WinExist("Paper level_[10.24.2019]") Code B: if WinExist("Paper level_*") Because there are many duplicate names. Paper level_[09.24.2019] Paper level_[10.24.2019] Paper level_[11.07.2019] Paper level_[11.13.2019] Paper level_[11.25...
by Marcosa1020
28 Nov 2019, 01:22
Forum: Ask For Help
Topic: About ControlGetText Topic is solved
Replies: 3
Views: 187

Re: About ControlGetText Topic is solved

where is the content of C.txt? is it a notepad window? you need to use the Window Spy to get the control's ClassNN to use with ControlGetText Yes. C.txt is a notepad window. The content of C.txt is 123 . Where is wrong ? Window title, class and process: C.txt- Notepad ahk_class Notepad ahk_exe note...
by Marcosa1020
27 Nov 2019, 23:31
Forum: Ask For Help
Topic: About ControlGetText Topic is solved
Replies: 3
Views: 187

About ControlGetText Topic is solved

Hello, This is the working code. How can I use the "ControlGetText" code to replace as below and got the content of C.txt in d.txt ? ButtonStart: if WinExist("C.txt") { WinActivate WinWaitActive Sleep, 50 Send, ^a Sleep, 50 Clipboard := "" Send, ^c ClipWait FileAppend, %Clipboard%, C:\Users\User\Des...
by Marcosa1020
18 Nov 2019, 08:45
Forum: Ask For Help
Topic: How can I get the data from txt file? Topic is solved
Replies: 23
Views: 795

Re: How can I get the data from txt file? Topic is solved

Hello, I still have some questions that need your help. 1. About Group_A, a lot of CA_T beginning .TXT files in the G:\Download\ . When I press START, it will search for the last date of "Check ETF3" and return the value to card1~card6. 2. About Group_B, one csv file in the G:\Download\ . When I pre...
by Marcosa1020
14 Nov 2019, 00:57
Forum: Ask For Help
Topic: How can I get the data from txt file? Topic is solved
Replies: 23
Views: 795

Re: How can I get the data from txt file? Topic is solved

Hellbent wrote:
13 Nov 2019, 20:20
Try this.

Code: Select all

if(Abs(card1 - card7)<=10){
	Gui,Font,cBlack
	GuiControl,Font,card13
	GuiControl,,card13, % (card1 - card7)
}else	{
	Gui,Font,cRed
	GuiControl,Font,card13
	GuiControl,,card13, % (card1 - card7)
}
Thank you.
by Marcosa1020
13 Nov 2019, 20:05
Forum: Ask For Help
Topic: How can I get the data from txt file? Topic is solved
Replies: 23
Views: 795

Re: How can I get the data from txt file? Topic is solved

Hello, I want to calculate the difference between Card1 and Card7 then display to card13. So I have added the code "GuiControl,,card13, %card1 - card7" in Program A, but that useless. If this value is more than plus or minus 10, I want to use black value. Does anyone want to help me? Thank you. GuiC...
by Marcosa1020
13 Nov 2019, 09:55
Forum: Ask For Help
Topic: How can I get the data from txt file? Topic is solved
Replies: 23
Views: 795

Re: How can I get the data from txt file? Topic is solved

Hellbent wrote:
13 Nov 2019, 09:12
tmplinshi wrote:
13 Nov 2019, 08:55
Time to learn RegEx?
Never!!!!! :lol: (But seriously if I can go until I die without spending one second trying to figure out what the symbols mean, i'll die that much happier. Just doesn't interest me.)

Nice work. :bravo:
Hi Hellbent,

Thank you.
by Marcosa1020
13 Nov 2019, 09:54
Forum: Ask For Help
Topic: How can I get the data from txt file? Topic is solved
Replies: 23
Views: 795

Re: How can I get the data from txt file? Topic is solved

... gui, show LoadData("G:\Download\a.log", "G:\Download\b.txt") return LoadData(FileA, FileB) { FileRead, data, %FileA% objA := RegExMatchAll_Obj(data, "`s)Check BTF\d+ (\d+).*?\R+ ([\d.+-]+)") FileRead, data, %FileB% objB := RegExMatchAll_Obj(data, "\R(?:3AAAAA |3 *Bank ).*?\R+\d+ *\d+ *(\d+).*?(...
by Marcosa1020
13 Nov 2019, 09:08
Forum: Ask For Help
Topic: How can I get the data from txt file? Topic is solved
Replies: 23
Views: 795

Re: How can I get the data from txt file? Topic is solved

Yes, if it can get the value accurately. Well you're only testing 6 points (from what your gui suggests). So you only need to get the recommended / max / min / [w/e] from spec sheet for the 6 items and hard code them. Is that a true statement? No. For the a.log file, each time the value will be dif...
by Marcosa1020
13 Nov 2019, 08:31
Forum: Ask For Help
Topic: How can I get the data from txt file? Topic is solved
Replies: 23
Views: 795

Re: How can I get the data from txt file? Topic is solved

The text file looks like factory component specs. Do you really need to search through it? Seems to me to be the kind of thing that you could hard code and then compare to your log. 20191113082117.png Yes, if it can get the value accurately. Can you get the value from a.log and b.txt to Text AHK ?
by Marcosa1020
13 Nov 2019, 07:51
Forum: Ask For Help
Topic: How can I get the data from txt file? Topic is solved
Replies: 23
Views: 795

Re: How can I get the data from txt file? Topic is solved

Hellbent wrote:
13 Nov 2019, 07:44

Whatever you have posted above as a download. Post that as plain text (inside some code tags)

I have post the files as plain text on 1F. Thank you.
by Marcosa1020
13 Nov 2019, 07:41
Forum: Ask For Help
Topic: How can I get the data from txt file? Topic is solved
Replies: 23
Views: 795

Re: How can I get the data from txt file? Topic is solved

I don't know what is the "VAR", this is much more difficult than I could have imagined. Sorry, I normally think of myself as a novice and neglect the fact that I do have a fair bit of experience regardless of my novice status. I had seen that you have been around here longer than I have even known ...
by Marcosa1020
13 Nov 2019, 07:12
Forum: Ask For Help
Topic: How can I get the data from txt file? Topic is solved
Replies: 23
Views: 795

Re: How can I get the data from txt file? Topic is solved

Ok, then this should be a rather simple problem to solve. This is just off the top of my head, and likely could use some refinement. For the txt file. It seems to me that you could just load the txt file into a var, then split it by lines, then search for lines that start with a 3 and then a space....
by Marcosa1020
13 Nov 2019, 06:43
Forum: Ask For Help
Topic: How can I get the data from txt file? Topic is solved
Replies: 23
Views: 795

Re: How can I get the data from txt file? Topic is solved

is the structure of the data static and predicable? Yes, it has a fixed mode. 1. For the a.log file, I recommend searching for "Check BTF13 04" then getting the fourth line(+28.29). Next searching for "Check BTF13 05" then getting the fourth line(+28.39) 2. For the b.txt file, Unless you can search...
by Marcosa1020
13 Nov 2019, 02:34
Forum: Ask For Help
Topic: How can I get the data from txt file? Topic is solved
Replies: 23
Views: 795

How can I get the data from txt file? Topic is solved

Hello, 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. vvv=0 Gui +AlwaysOnTop Gui, Color, dcdcdc Gui, Sho...
by Marcosa1020
17 Mar 2019, 09:31
Forum: Ask For Help
Topic: How can I get the barcode ?
Replies: 6
Views: 720

Re: How can I get the barcode ?

Gui +AlwaysOnTop Gui, Font, S10 c000000 , Tahoma Gui, Add, text, x20 y25, A Gui, Add, Edit, x50 y20 w92 h28 gwritecardB vcardA Gui, Add, text, x20 y75, B Gui, Font, S24 c000000 , Free 3 of 9 Extended Gui, Add, Edit, x50 y70 w92 h28 vcardB Gui, Show, x131 y91 h155 w188,Barcode return writecardB: gui...

Go to advanced search