Search found 160 matches

by Marcosa1020
01 Dec 2019, 06:47
Forum: Ask For Help
Topic: About WinExist Topic is solved
Replies: 4
Views: 475

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: 341

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: 341

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: 1766

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: 1766

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: 1766

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: 1766

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: 1766

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: 1766

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: 1766

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: 1766

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: 1766

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: 1766

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: 1766

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

Hellbent wrote:
13 Nov 2019, 02:42
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)
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: 1766

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: 1272

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...
by Marcosa1020
17 Mar 2019, 08:42
Forum: Ask For Help
Topic: How can I get the barcode ?
Replies: 6
Views: 1272

Re: How can I get the barcode ?

How do I enter 12345 on cardA after, cardB also shows 12345 ???
by Marcosa1020
17 Mar 2019, 06:27
Forum: Ask For Help
Topic: How can I get the barcode ?
Replies: 6
Views: 1272

Re: How can I get the barcode ?

Hi Kobaltauge, Thank you for your reply. Yes, I have a font installed. Hi Ahk_fan, Thank you for your reply. I can only use AHK source code and no network. Can you tell me how to associate column A with column B when I enter text or number in column A. If A column is equal to B column, then I change...
by Marcosa1020
17 Mar 2019, 04:22
Forum: Ask For Help
Topic: How can I get the barcode ?
Replies: 6
Views: 1272

How can I get the barcode ?

Hello, When I into the number to column A, how can I get the barcode 12345 from column B ? If I don't have font "3 of 9 extended" in my computer. Can I also get the barcode? Thanks. Gui +AlwaysOnTop Gui, Font, S10 C000000 , Tahoma Gui, Show, x131 y91 h155 w188,Barcode Gui, Font, S10 c000000 , Tahoma...
by Marcosa1020
20 Jan 2019, 07:53
Forum: Ask For Help
Topic: Find keywords and fill in strings.... Topic is solved
Replies: 12
Views: 2232

Re: Find keywords and fill in strings.... Topic is solved

Hi, Thanks a lot for coffee and IMEime, they helped me to complete the script. :thumbup: #NoTrayIcon Gui +AlwaysOnTop Gui, Color, FFFFFF Gui, Font, S10 EEAA99, Tahoma Gui, Show, x131 y91 h250 w150,Test Gui, Add, Text, x5 y15 c000000, Item-A Gui, Font, S14 EEAA99, Tahoma Gui, Add, Edit, x50 y10 w50 h...

Go to advanced search