Search found 160 matches
- 29 Apr 2020, 00:53
- Forum: Ask For Help
- Topic: How can I copy a text from notepad? Topic is solved
- Replies: 25
- Views: 1742
Re: How can I copy a text from notepad? Topic is solved
Well, we'll have a duplicate if every part is exactly the same. In your 2nd sample, the 'header' (C#1, D#2) of those sections are the same, but not the number of lines, therefore it isn't a duplicate, and for that reason :arrow: Sort won't skip one of it. In your previous sample, the header was the...
- 28 Apr 2020, 23:49
- Forum: Ask For Help
- Topic: How can I copy a text from notepad? Topic is solved
- Replies: 25
- Views: 1742
Re: How can I copy a text from notepad? Topic is solved
I guess you can, but, you haven't answered the question about your datas consistency in the first place, and how you wanna deal with it? Hi BNOLI, I can explain with instructions, please let me know If I have answer the question. If the content as below. Field_A, C#1, D#2 Field_B Item1 Item2 Item3 ...
- 28 Apr 2020, 19:39
- Forum: Ask For Help
- Topic: How can I copy a text from notepad? Topic is solved
- Replies: 25
- Views: 1742
Re: How can I copy a text from notepad? Topic is solved
You're able to eliminate duplicate identical sections using AHK's Sort command (preferably done at the clipboard's content). Unfortunately, those returned two sections aren't identical (I had to be advised myself by my fellow German @haichen to spot the difference! And yes, it's about an error). :m...
- 27 Apr 2020, 15:29
- Forum: Ask For Help
- Topic: How can I copy a text from notepad? Topic is solved
- Replies: 25
- Views: 1742
Re: How can I copy a text from notepad? Topic is solved
Was it said in your initial post that you will have duplicate sections within your source?? :wtf: Well, you can use AHK's :arrow: Sort command 'to sort this out' ;) # Hi BNOLI, Sorry....... I didn't think would happen. I tried to add sort, A_LoopField, r to the code but failed in execution......
- 27 Apr 2020, 08:34
- Forum: Ask For Help
- Topic: How can I copy a text from notepad? Topic is solved
- Replies: 25
- Views: 1742
Re: How can I copy a text from notepad? Topic is solved
Hi BNOLI, I found if that text is repeated, it will be read repeatedly. When I select C#2 and D#4 in cIndex and then press start. Field_A, C#1, D#2 Field_B Item1 Item2 Item3 Item4 Item5 Item6 Item7 300.1 1000 A 1500 1800 Coni AKFJ 300.2 2000 A 2500 2800 Coni FJRO 300.3 3000 A 3500 3800 Coni EI 300.4...
- 24 Apr 2020, 19:58
- Forum: Ask For Help
- Topic: How can I copy a text from notepad? Topic is solved
- Replies: 25
- Views: 1742
Re: How can I copy a text from notepad? Topic is solved
Enabled Test (Test := 1). Processing data from within the script. https://drive.google.com/uc?export=view&id=1IPLkEbG00msGeg7SbuQkuRnawzVE4QGF Worked fine from the beginning. Disabled Test (Test := 0). Working with external data. https://drive.google.com/uc?export=view&id=1fkYIJDqo6D7y0OL1V-UO5K8Cm...
- 24 Apr 2020, 08:01
- Forum: Ask For Help
- Topic: How can I copy a text from notepad? Topic is solved
- Replies: 25
- Views: 1742
Re: How can I copy a text from notepad? Topic is solved
Have you ever used my script posted above? :? It creates the output file (oFile) right after parsing the clipboard content directly based on the selection made in the GUI. It won't create an output file if the GUI-selected options are not existing in the clipboard's content. Everything you've reque...
- 24 Apr 2020, 07:34
- Forum: Ask For Help
- Topic: How can I copy a text from notepad? Topic is solved
- Replies: 25
- Views: 1742
Re: How can I copy a text from notepad? Topic is solved
Hi BNOLI, Follow this code below and I didn't get anything.... I will organize my steps and let you know, we can confirm which step is wrong. Start: Clipboard := "" ; <<<<<<<<<<<< Clear Clipboard If (test != 1) ; <<<<<< Start the program ; not really. It was meant to toogle a 'test-scenario' (using ...
- 24 Apr 2020, 02:36
- Forum: Ask For Help
- Topic: How can I copy a text from notepad? Topic is solved
- Replies: 25
- Views: 1742
Re: How can I copy a text from notepad? Topic is solved
Have you ever used my script posted above? :? It creates the output file (oFile) right after parsing the clipboard content directly based on the selection made in the GUI. It won't create an output file if the GUI-selected options are not existing in the clipboard's content. Everything you've reque...
- 24 Apr 2020, 00:54
- Forum: Ask For Help
- Topic: How can I copy a text from notepad? Topic is solved
- Replies: 25
- Views: 1742
Re: How can I copy a text from notepad? Topic is solved
Hi everyone, Since ClipBoard is a variable, I want to copy the current data then parse the array to identify the correct sections based on the conditions. So I change Code_A to Code_B, if I choose C # 2 in cIndex and C # 4 in dIndex, I will get Field_A, C#1, D#2Field_A, C#2, D#4Field_A, C#3, D#3Fiel...
- 23 Apr 2020, 02:20
- Forum: Ask For Help
- Topic: How can I copy a text from notepad? Topic is solved
- Replies: 25
- Views: 1742
Re: How can I copy a text from notepad? Topic is solved
Hi BNOLI, First, thanks for your support. You are right, I want to achieve the following four steps. Step1, copy some text Step2, drop it to A.txt Step3, filter A.text (filter criteria/conditions taken from your Gui) Step4, write/append filtered outcome to B.txt I hope the copy content to the clipbo...
- 20 Apr 2020, 17:05
- Forum: Ask For Help
- Topic: How can I copy a text from notepad? Topic is solved
- Replies: 25
- Views: 1742
Re: How can I copy a text from notepad? Topic is solved
Without diving deeper into your code ... parameter settings within function(call)s are written in expression-style ... wrong : InStr(C:\Users\User\Desktop\A_file.txt, %card1%) right : InStr("C:\Users\User\Desktop\A_file.txt", card1) https://www.autohotkey.com/docs/Variables.htm#Expressions Hi BNOLI...
- 20 Apr 2020, 14:20
- Forum: Ask For Help
- Topic: How can I copy a text from notepad? Topic is solved
- Replies: 25
- Views: 1742
Re: How can I copy a text from notepad? Topic is solved
Hi everyone, I still don't understand how to write this program. Can you help me ? cIndex := "C#1|C#2|C#3|C#4|C#5|C#6" dIndex := "D#1|D#2|D#3|D#4|D#5|D#6" Gui +AlwaysOnTop Gui, Color, White Gui, Font, Norm S10 W500 cBlack , Tahoma Gui, Add, Button, x165 y173 w60 h25 , START Gui, Add, Text, x10 y33 ,...
- 15 Apr 2020, 03:46
- Forum: Ask For Help
- Topic: How can I copy a text from notepad? Topic is solved
- Replies: 25
- Views: 1742
Re: How can I copy a text from notepad? Topic is solved
a) :arrow: FileRead to copy content of file A into a variable b) push all sections of file A into an array c) parse the array to identify the correct sections based on the conditions. d) write found sections into file B PS. check out GUIs wp/xp/hp (and its smart palls xp+<offset>/...) parameters! c...
- 15 Apr 2020, 02:46
- Forum: Ask For Help
- Topic: How can I copy a text from notepad? Topic is solved
- Replies: 25
- Views: 1742
How can I copy a text from notepad? Topic is solved
Hi Everyone, This script can copy all text from A_file to B_file when A_file is opened, but I want to add some conditions and copy the text to B_file. The text will be stored in B_file, when the condition is like A.PNG. Thanks in advance for your help^^ Gui +AlwaysOnTop Gui, Color, white Gui, Show, ...
- 14 Apr 2020, 23:31
- Forum: 请求帮助
- Topic: 中文字符串赋值给剪切板会变乱码【需要对应的Windows设定?】
- Replies: 3
- Views: 6355
Re: 中文字符串赋值给剪切板会变乱码【需要对应的Windows设定?】
我自己是在黏貼資料的來源後面加上了("*P65001 utf8-without-bom.txt")這段,原本非中文會產生亂碼的部分就消失了,提供給你做為參考。
- 06 Dec 2019, 08:25
- Forum: Ask For Help
- Topic: About FileGetTime
- Replies: 2
- Views: 754
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 . ...
- 04 Dec 2019, 01:06
- Forum: Ask For Help
- Topic: About FileGetTime
- Replies: 2
- Views: 754
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...
- 01 Dec 2019, 08:05
- Forum: Ask For Help
- Topic: About WinExist Topic is solved
- Replies: 4
- Views: 487
Re: About WinExist Topic is solved
Thanks for your reply.swagfag wrote: ↑01 Dec 2019, 08:02Code: Select all
SetTitleMatchMode RegEx if WinExist("^Paper level_\[\d\d\.\d\d\.\d\d\d\d\]$")
- 01 Dec 2019, 08:03
- Forum: Ask For Help
- Topic: About WinExist Topic is solved
- Replies: 4
- Views: 487
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...