Search found 42 matches

by Lem2001
Yesterday, 23:37
Forum: Ask For Help
Topic: Edit text within an .ini file Topic is solved
Replies: 9
Views: 321

Re: Edit text within an .ini file Topic is solved

Odlanir wrote:
20 Oct 2019, 11:56
This should work:
This is amazing!

It covers every possible instance while keeping the next section heading (and the rest of the ini content) safe.

Thank you so much for your help.
by Lem2001
Yesterday, 23:36
Forum: Ask For Help
Topic: Edit text within an .ini file Topic is solved
Replies: 9
Views: 321

Re: Edit text within an .ini file Topic is solved

AHKStudent wrote:
20 Oct 2019, 12:17
sorry OP for my long code
Not at all.

I am grateful to you for taking the time to reply to try to help me.
by Lem2001
20 Oct 2019, 10:27
Forum: Ask For Help
Topic: Edit text within an .ini file Topic is solved
Replies: 9
Views: 321

Re: Edit text within an .ini file Topic is solved

Thank you both for your replies. Odlanir , your first example was the one I ended up using. It is very clean and elegant (and works well). I could not have figured this out for myself (Regex is not my strong point). There is just one problem with it; the method that you've used for detecting the nex...
by Lem2001
18 Oct 2019, 16:00
Forum: Ask For Help
Topic: Edit text within an .ini file Topic is solved
Replies: 9
Views: 321

Edit text within an .ini file Topic is solved

How would I go about editing and ini file to partially remove some of its contents (between two section headers)? For example, if I had a file called settings.ini and within this file was sections (each one enclosed in square brackets) something like this: [Preferences] color=#ff00ee size=34 etc. [R...
by Lem2001
17 Oct 2019, 20:33
Forum: Ask For Help
Topic: Prevent repeat triggering while using KeyWait command Topic is solved
Replies: 6
Views: 186

Re: Prevent repeat triggering while using KeyWait command Topic is solved

Thank you Hellbent.

Your last code sample works absolutely perfectly!
It behaves exactly as I wanted.
by Lem2001
17 Oct 2019, 18:38
Forum: Ask For Help
Topic: Prevent repeat triggering while using KeyWait command Topic is solved
Replies: 6
Views: 186

Re: Prevent repeat triggering while using KeyWait command Topic is solved

Thank you very much for your reply.

It's almost what I require, but not quite. I would like the action to trigger on key down, not on key up.

At the moment nothing happens while they key is held down. It's only when key is released is the action is triggered.
by Lem2001
17 Oct 2019, 17:42
Forum: Ask For Help
Topic: Prevent repeat triggering while using KeyWait command Topic is solved
Replies: 6
Views: 186

Prevent repeat triggering while using KeyWait command Topic is solved

I'm using the following command to trigger an action on a long key press of F12. F12:: KeyWait, F12, T0.6 if A_TimeSinceThisHotkey >= 500 ; in milliseconds However, I want the F12 key to fire off only once per key press (even if it's held down) instead of it repeatedly triggering while the key is be...
by Lem2001
23 Jun 2019, 17:37
Forum: Ask For Help
Topic: Problem using Timers Topic is solved
Replies: 2
Views: 246

Re: Problem using Timers Topic is solved

Thank you.

That fixed it. They both work at the same time now.
by Lem2001
23 Jun 2019, 16:08
Forum: Ask For Help
Topic: Problem using Timers Topic is solved
Replies: 2
Views: 246

Problem using Timers Topic is solved

I have a script with the following code in it (see below). It contains only 2 timers, and one hotkey. However, only one of the timers will work at a time (whichever one is written first in the script). I may have been a bit over-enthusiastic with my 'returns', but I just can't seem to find the probl...
by Lem2001
18 Jun 2019, 00:38
Forum: Ask For Help
Topic: Making Windows Explorer script also work in File Dialogs
Replies: 5
Views: 431

Re: Making Windows Explorer script also work in File Dialogs

Thank you very much for the updated code (and helpful comments). I do appreciate it. Your code example works really well, but seeing as the icon sizes don't fit the views that I'm using, then the outcome is a bit of a case of one step forwards, two steps back. I guess I'll have to further trawl the ...
by Lem2001
17 Jun 2019, 05:38
Forum: Ask For Help
Topic: Making Windows Explorer script also work in File Dialogs
Replies: 5
Views: 431

Re: Making Windows Explorer script also work in File Dialogs

Thank you very much for this! I didn't realise that it would involve such significant changes to the code in order to get it to work. I'm a very basic beginner-level AHK user, so I was unaware of the limitations of Shell.Application object with respect to dialogs. I have tested out your second examp...
by Lem2001
15 Jun 2019, 11:44
Forum: Ask For Help
Topic: Making Windows Explorer script also work in File Dialogs
Replies: 5
Views: 431

Making Windows Explorer script also work in File Dialogs

I have been happily using the code below for many months (the source is credited in my comment) and it works wonderfully. However, I would like it to also work in File Dialogs. I changed the directive part of the code so that the hotkey is also detected in file dialogs (that was easy) but I don't un...
by Lem2001
14 Jun 2019, 05:28
Forum: Ask For Help
Topic: WinHide wihout Hotkey Topic is solved
Replies: 8
Views: 495

Re: WinHide wihout Hotkey Topic is solved

That was easier than I thought.

It works great on the currently assigned name, so it should obviously be fine for any alternative.

Thank you!
by Lem2001
13 Jun 2019, 04:53
Forum: Ask For Help
Topic: WinHide wihout Hotkey Topic is solved
Replies: 8
Views: 495

Re: WinHide wihout Hotkey Topic is solved

Hi, I've just discovered another issue. Today I started using my computer and the Listary object was back on all of my file dialogs. I had previously tested my script very thoroughly, and it had been working perfectly, so I had no idea what the problem could be. I then checked the object using Windo...
by Lem2001
11 Jun 2019, 16:25
Forum: Ask For Help
Topic: WinHide wihout Hotkey Topic is solved
Replies: 8
Views: 495

Re: WinHide wihout Hotkey Topic is solved

unfortunately not, see: https://www.autohotkey.com/docs/Language.htm#not-control-flow #IfWinExist can't trigger anything. Wow, thanks for this! I don't know how I have not seen this before. I have spent so much time in the past trying to get this to work, and I assumed that it was my bad code writi...
by Lem2001
11 Jun 2019, 08:13
Forum: Ask For Help
Topic: WinHide wihout Hotkey Topic is solved
Replies: 8
Views: 495

Re: WinHide wihout Hotkey Topic is solved

Thanks! It works, but there's a bit of an issue that I'm trying to deal with: The object appears briefly on the dialog before it disappears. I can get rid of this by reducing the duration of the timer, but I have to put it as low as 10ms before there is no visible 'flash' on the dialog. I really don...
by Lem2001
11 Jun 2019, 06:40
Forum: Ask For Help
Topic: WinHide wihout Hotkey Topic is solved
Replies: 8
Views: 495

WinHide wihout Hotkey Topic is solved

I'm trying to hide an object that gets added to File Open / Save As dialogs. If I use the following, it works fine when the hotkey is pressed (the added object disappears). #IfWinExist ahk_class #32770 ^F2:: WinHide ahk_class Listary_WidgetWin_1 return #If However, I am trying to make the object hid...
by Lem2001
10 Jun 2019, 10:57
Forum: Ask For Help
Topic: Over-riding (or switching) Title Match Modes
Replies: 2
Views: 174

Re: Over-riding (or switching) Title Match Modes

Thank you. I'll take a look at the code you provided. Does it over-ride global declarations though? As I said in my original post, I already tried to switch mode within the required code block, but it wouldn't over-ride the global match mode. Would I have to remove the match mode at the start of my ...
by Lem2001
10 Jun 2019, 10:16
Forum: Ask For Help
Topic: Over-riding (or switching) Title Match Modes
Replies: 2
Views: 174

Over-riding (or switching) Title Match Modes

I have TitleMatchMode set to 2 at the beginning of my main script (which has quite a few commands in it). However, for one particular directive I need to use TitleMatchMode 1 (or at least get the same effect as if that were the mode were being used). What's the best way to do this? I tried putting a...
by Lem2001
10 Jun 2019, 06:02
Forum: Ask For Help
Topic: Hotkey to hold modifier while repeatedly pressing another key Topic is solved
Replies: 7
Views: 384

Re: Hotkey to hold modifier while repeatedly pressing another key Topic is solved

I am also using Windows 7, and yes, Magnify can sometimes be a nuisance, but I still use it a lot for quick "in-place" access when doing pixel accurate editing (without having to constantly mess up my zoom levels in the application itself).

Thanks for looking into it anyway.

Go to advanced search