Search found 90 matches

by Wigi
28 May 2019, 19:48
Forum: Ask For Help
Topic: Remove blank lines from text file Topic is solved
Replies: 23
Views: 703

Re: Remove blank lines from text file Topic is solved

Hello Joe,

Jep, bingo ! Thanks.

Wim
by Wigi
28 May 2019, 18:49
Forum: Ask For Help
Topic: Remove blank lines from text file Topic is solved
Replies: 23
Views: 703

Re: Remove blank lines from text file Topic is solved

Hello Joe,

I have an update for you. I simplified the input file that we start from (left hand side), right hand side is the result. You'll notice that empty lines still remain in the output unfortunately. I show the end of line characters in case it helps.
01.png
01.png (119.03 KiB) Viewed 143 times
Thanks,

Wim
by Wigi
26 May 2019, 20:16
Forum: Ask For Help
Topic: Remove blank lines from text file Topic is solved
Replies: 23
Views: 703

Re: Remove blank lines from text file Topic is solved

Hello

Busy Sunday, I’ll catch up on Monday.
by Wigi
26 May 2019, 00:50
Forum: Ask For Help
Topic: Remove blank lines from text file Topic is solved
Replies: 23
Views: 703

Re: Remove blank lines from text file Topic is solved

I can't get it to work. I also changed in the original file the CRLF by CR. Does not work. Changed CRLF by LF, no joy either. Could it be due to the IF test: If ((tmp!="#" ) and (tmp!="")) whereby: Loop, Read, %c01% splits the text in a different way ? Such that the lines are not really empty ? I lo...
by Wigi
26 May 2019, 00:29
Forum: Ask For Help
Topic: Remove blank lines from text file Topic is solved
Replies: 23
Views: 703

Re: Remove blank lines from text file Topic is solved

No luck Joe, the same output is produced.
by Wigi
25 May 2019, 18:31
Forum: Ask For Help
Topic: Remove blank lines from text file Topic is solved
Replies: 23
Views: 703

Re: Remove blank lines from text file Topic is solved

Thanks, that’s for tomorrow. 1.30 AM here 😉
by Wigi
25 May 2019, 18:11
Forum: Ask For Help
Topic: Remove blank lines from text file Topic is solved
Replies: 23
Views: 703

Re: Remove blank lines from text file Topic is solved

If you would like to see my full code, here it is. The idea is to create or manipulate the TM1s.cfg configuration file for the IBM Cognos TM1 software. The user can interact to select folders, which are then set in the file. If the cfg file does not exist, it is created. Next to creating / updating ...
by Wigi
25 May 2019, 18:05
Forum: Ask For Help
Topic: Remove blank lines from text file Topic is solved
Replies: 23
Views: 703

Re: Remove blank lines from text file Topic is solved

Hello Joe, Sorry but it does not work. I have this code: ; 16. delete unnecessary lines Msgbox, 4, Confirm, Do you want to delete all lines in the tm1s.cfg file that start with an # or are blank/empty? IfMsgBox Yes { all = Loop, Read, %c01% { StringLeft, tmp, A_LoopReadLine, 1 If ((tmp!="#" ) and (t...
by Wigi
25 May 2019, 15:05
Forum: Ask For Help
Topic: Remove blank lines from text file Topic is solved
Replies: 23
Views: 703

Re: Remove blank lines from text file Topic is solved

Thank you Joe. I will come back to this later today.
by Wigi
25 May 2019, 14:00
Forum: Ask For Help
Topic: Remove blank lines from text file Topic is solved
Replies: 23
Views: 703

Re: Remove blank lines from text file Topic is solved

Sure Joe. I believe you, it might be something here in the file or a mistake when testing, we'll find out. This is the current code: ; 16. delete unnecessary lines Msgbox, 4, Confirm, Do you want to delete all lines in the tm1s.cfg file that start with an # or are blank/empty? IfMsgBox Yes { all = L...
by Wigi
25 May 2019, 13:17
Forum: Ask For Help
Topic: Remove blank lines from text file Topic is solved
Replies: 23
Views: 703

Re: Remove blank lines from text file Topic is solved

Thank you garry, it works.

Thank you joe too, but it does not seem to work.
If you would like to investigate more, I can send the file and/or a screenshot of both the code and the cfg file I am working on.
by Wigi
25 May 2019, 12:25
Forum: Ask For Help
Topic: Remove blank lines from text file Topic is solved
Replies: 23
Views: 703

Remove blank lines from text file Topic is solved

Hello all, I have the following code, which works: Msgbox, 4, Confirm, Do you want to delete all lines in the tm1s.cfg file that start with an # ? IfMsgBox Yes { all = Loop, Read, %c01% { ; If( %A_LoopReadLine% != "" ) ; { StringLeft, tmp, A_LoopReadLine, 1 If( tmp != "#" ) ;If this line isn't start...
by Wigi
14 Jan 2019, 15:17
Forum: Ask For Help
Topic: Does a file belong to/originate from a folder
Replies: 4
Views: 359

Re: Does a file belong to/originate from a folder

Thank you I will experiment with it.
by Wigi
13 Jan 2019, 16:50
Forum: Ask For Help
Topic: Does a file belong to/originate from a folder
Replies: 4
Views: 359

Re: Does a file belong to/originate from a folder

Thanks. What about upper case / lowercase: do I first bring both paths to either of the two, to be able to compare in an alphanumeric way ? Also, if one of them starts with D:\Temp\... and the other with \\servername\D$\Temp\... which is essentially the same, could we bring both to the same format i...
by Wigi
13 Jan 2019, 13:17
Forum: Ask For Help
Topic: Does a file belong to/originate from a folder
Replies: 4
Views: 359

Does a file belong to/originate from a folder

Hi all, Happy belated New Year ! :dance: I was wondering if this is possible. Considering the 2 inputs: - I have a filename including path and extension - I have a folder name, including path Can we determine whether the file is part of the folder, meaning either: - be in the folder - be in any fold...
by Wigi
04 Jan 2019, 20:30
Forum: Scripts and Functions
Topic: Hotkey Help - Display Active AHK Hotkeys and Hotstrings
Replies: 67
Views: 22377

Re: Hotkey Help - Display Active AHK Hotkeys and Hotstrings

Many thanks, this last update (2019 01 03) indeed identifies the square key and Shift-square key, that I use in 4 hotkeys:
01.png
01.png (62.92 KiB) Viewed 1316 times
by Wigi
25 Dec 2018, 08:43
Forum: Ask For Help
Topic: Windows Explorer - filter out files on a column
Replies: 2
Views: 295

Re: Windows Explorer - filter out files on a column

Many thanks. This will work. I was hoping to let AHK use the column header in Windows Explorer, like we can do it manually, and filter there. This will also hide the files we don't want. This functionality exists in a couple of Windows versions but not that long. Did someone do this before please ? ...
by Wigi
24 Dec 2018, 21:34
Forum: Ask For Help
Topic: Windows Explorer - filter out files on a column
Replies: 2
Views: 295

Windows Explorer - filter out files on a column

Hello all, I would like to automate filtering on a column in Windows Explorer. Specifically, I want to select .XLSX file types. Has this been done before ? I found this topic and very nice code by Jeeswg: https://autohotkey.com/boards/viewtopic.php?f=6&t=33129 I used the sorting capability here :thu...
by Wigi
24 Dec 2018, 18:22
Forum: Ask For Help
Topic: Launch hotkey from within another hotkey Topic is solved
Replies: 3
Views: 303

Re: Launch hotkey from within another hotkey Topic is solved

Thanks, I got it to work !

Except for SC029 (the square key) but I read on the SendLevel page that this is expected behavior.

Go to advanced search