Search found 140 matches

by Wigi
25 May 2019, 13:17
Forum: Ask for Help (v1)
Topic: Remove blank lines from text file Topic is solved
Replies: 23
Views: 5581

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 (v1)
Topic: Remove blank lines from text file Topic is solved
Replies: 23
Views: 5581

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 (v1)
Topic: Does a file belong to/originate from a folder
Replies: 4
Views: 888

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 (v1)
Topic: Does a file belong to/originate from a folder
Replies: 4
Views: 888

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 (v1)
Topic: Does a file belong to/originate from a folder
Replies: 4
Views: 888

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 (v1)
Topic: Hotkey Help - Display Active AHK Hotkeys and Hotstrings
Replies: 88
Views: 60778

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 7002 times
by Wigi
25 Dec 2018, 08:43
Forum: Ask for Help (v1)
Topic: Windows Explorer - filter out files on a column
Replies: 3
Views: 1020

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 (v1)
Topic: Windows Explorer - filter out files on a column
Replies: 3
Views: 1020

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 (v1)
Topic: Launch hotkey from within another hotkey Topic is solved
Replies: 3
Views: 873

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.
by Wigi
24 Dec 2018, 09:25
Forum: Ask for Help (v1)
Topic: Launch hotkey from within another hotkey Topic is solved
Replies: 3
Views: 873

Launch hotkey from within another hotkey Topic is solved

Hello all, I can't seem to find the answer to my question, or I am searching with wrong keywords. Simply put, in an AHK script I have a tool to empty the recycle bin: #Del:: ; <-- empty the recycle bin { FileRecycleEmpty Return } Within a different script, I would like to execute the first script. S...
by Wigi
23 Dec 2018, 21:48
Forum: Scripts and Functions (v1)
Topic: Hotkey Help - Display Active AHK Hotkeys and Hotstrings
Replies: 88
Views: 60778

Re: Hotkey Help - Display Active AHK Hotkeys and Hotstrings

Hello FanaticGuru, This is indeed a very nice script ! Many thanks ! I have 1 remark. The script fails to record a hotkey like SC029. In fact, at least in Belgium, we have on the keyboard a key just above the Tab key. It is the square key. You get a superscript 2 if you press it. If Shift is pressed...
by Wigi
22 Dec 2018, 13:14
Forum: Ask for Help (v1)
Topic: Organise downloaded content from Gmail Topic is solved
Replies: 0
Views: 491

Organise downloaded content from Gmail Topic is solved

Hi all, A short introduction. As a consultant, customers can send me files every day, for inspection/testing/output/... Emails are sent to Gmail. I need to download and organize these incoming files properly. I download the files from Gmail to my Downloads folder. I created a working script to: - cl...
by Wigi
04 Dec 2018, 22:05
Forum: Ask for Help (v1)
Topic: InputBox : detect cancel Topic is solved
Replies: 5
Views: 2283

Re: InputBox : detect cancel Topic is solved

You are right, but I cannot reproduce anymore what I did to come up with my (erroneous) conclusion.
Maybe I changed code and did not reload the script ? Not important, it works as it should now. Thank you.
by Wigi
04 Dec 2018, 21:26
Forum: Ask for Help (v1)
Topic: InputBox : detect cancel Topic is solved
Replies: 5
Views: 2283

Re: InputBox : detect cancel Topic is solved

Thanks !
Indeed I did something wrong. I had:

Code: Select all

If ErrorLevel
instead of:

Code: Select all

If ErrorLevel = 1
Now it works fine, many thanks joe.
by Wigi
04 Dec 2018, 21:00
Forum: Ask for Help (v1)
Topic: InputBox : detect cancel Topic is solved
Replies: 5
Views: 2283

InputBox : detect cancel Topic is solved

Hello all, I have an Inputbox with a default value set. It is possible that the user presses 'Cancel'. How can I detect this choice ? I read about ErrorLevel but this still fills the outputvar, if my tests are correct. Also, ErrorLevel does not get activated since the outputvar is not empty, as per ...
by Wigi
14 Oct 2018, 18:32
Forum: Ask for Help (v1)
Topic: What do YOU use AHK for?
Replies: 30
Views: 8553

Re: What do YOU use AHK for?

I use it for a things like: - launching calculator, snipping tool, empty the recycle bin, ... - a listview containing all shortcuts, which is built straight from the AHK files using a consistent naming convention - Win-PrintScreen launches snipping tool. Then when the snip is taken, Win-q saves the ...
by Wigi
10 Oct 2018, 19:56
Forum: Ask for Help (v1)
Topic: Is year a leap year
Replies: 15
Views: 5328

Re: Is year a leap year

Okay thanks SKAN
by Wigi
10 Oct 2018, 19:30
Forum: Ask for Help (v1)
Topic: Is year a leap year
Replies: 15
Views: 5328

Re: Is year a leap year

Then I prefer this version of the function rather than all the MOD manipulations ! :dance:
by Wigi
10 Oct 2018, 19:03
Forum: Ask for Help (v1)
Topic: Is year a leap year
Replies: 15
Views: 5328

Re: Is year a leap year

Another idea that you might want to try. If you take the first of March of the year and you subtract 1, is it then day 28 or 29 ? If 29 then it’s a leap year.
Or take February 28 and add 1. Is it then March or still February?

Go to advanced search