Search found 435 matches

by safetycar
08 Sep 2023, 05:39
Forum: Suggestions on Documentation Improvements
Topic: [V2:] & and => should not be an operator but a keyword instead
Replies: 4
Views: 1478

Re: [V2:] & and => should not be an operator but a keyword instead

Wouldn't those things you have in mind be explained by the details in the ":=" documentation?
by safetycar
30 Aug 2023, 09:53
Forum: Ask for Help (v2)
Topic: Bug: MouseGetPos(,,,&hCtrl,2) Does not show correct handle. Naaasty ;) Topic is solved
Replies: 8
Views: 825

Re: Bug: MouseGetPos(,,,&hCtrl,2) Does not show correct handle. Naaasty ;) Topic is solved

I don't know the source of your problem, but some of the options in G_oTab are a bit misleading (mixing R and H).
https://www.autohotkey.com/docs/v2/lib/Gui.htm#Add wrote:If both the R and H options are present, R will take precedence.
by safetycar
15 Jul 2023, 23:21
Forum: Ask for Help (v2)
Topic: Nothing happening sorry I'm new
Replies: 7
Views: 504

Re: Nothing happening sorry I'm new

Eatgg wrote:
15 Jul 2023, 22:28
if (WinExist("ahk_class WindowName"))
Just in case, make sure that you are not confusing window title and window class. You can write the title at the start without ahk_* prefixes like WinExist("Calculator")
Related link: https://www.autohotkey.com/docs/v2/misc/WinTitle.htm
by safetycar
15 Jul 2023, 13:49
Forum: Bug Reports
Topic: [v2.0.4] IniRead fails to read UTF-8-BOM files. Topic is solved
Replies: 5
Views: 827

Re: [v2.0.4] IniRead fails to read UTF-8-BOM files. Topic is solved

I've observed that Initializing it as utf-8 and then filling it with IniWrite works, but contains an empty line at the beginning (the BOM is alone in it's own line).
Adding the new line at the start of your example makes it work, but I don't know about the underlying issues that can be causing this.
by safetycar
09 Feb 2023, 09:51
Forum: Bug Reports
Topic: Hotkeys stop working after some time with 32-bit AHK on 64bit OS
Replies: 21
Views: 4418

Re: Hotkeys stop working after some time with 32-bit AHK on 64bit OS

I seem to remember reading somewhere that #If calls should be designed to be fast. But I couldn't find where I took that from. But trying to find that I saw this quote: Microsoft's documentation is unclear about the details of this timeout, but research indicates the following for Windows 7 and late...
by safetycar
07 Feb 2023, 10:20
Forum: AutoHotkey Development
Topic: Could the changes to __Delete be explained?
Replies: 2
Views: 1268

Re: Could the changes to __Delete be explained?

Regarding __Delete there was a post here that might interest you: viewtopic.php?f=13&t=112007
by safetycar
31 Jan 2023, 11:14
Forum: Ask for Help (v1)
Topic: RegEx - Error placement. Multi-line and single-line queries consisting only of groups ()
Replies: 7
Views: 1012

Re: RegEx - Error placement. Multi-line and single-line queries consisting only of groups ()

If you notice, what swagfag was saying about empty string still applies. Part of your fixes consist in avoiding matching an empty string at the end.
A different approach is usually anchoring on both sides.
by safetycar
24 Jan 2023, 12:19
Forum: Suggestions on Documentation Improvements
Topic: RegExReplace backreferences cannot be manipulated
Replies: 21
Views: 3665

Re: RegExReplace backreferences cannot be manipulated

I find it quite understandable as it is but maybe a different possibility:
The string that represents the substitutions of each match (before it is actually made).
by safetycar
15 Jan 2023, 07:12
Forum: Ask for Help (v1)
Topic: how to get the a.b.c------3th "c" Topic is solved
Replies: 5
Views: 555

Re: how to get the a.b.c------3th "c" Topic is solved

class abc { last := "" __Get(aName, params) { this.last := aName return this } finish() { return this.last } } a := abc() Msgbox a.b.c.d.e.finish() That would be the most direct translation, but I recommend you to try to read and learn more from the docs: https://www.autohotkey.com/docs/v2/Objects....
by safetycar
20 Dec 2022, 13:43
Forum: AutoHotkey Development
Topic: congrats
Replies: 13
Views: 3105

Re: congrats

Same, thanks for v2 and a lot of other things around it.
by safetycar
19 Dec 2022, 11:35
Forum: Suggestions on Documentation Improvements
Topic: Broken links from v1 to v2 docs & broken redirects Topic is solved
Replies: 20
Views: 3578

Re: Broken links from v1 to v2 docs & broken redirects Topic is solved

ThePeter wrote:
19 Dec 2022, 05:01
There is absolutely no point redirecting invalid links to Google. If the invalid link cannot be redirected to a correct location, the user should be informed of the link's invalidity
+1
by safetycar
09 Dec 2022, 07:34
Forum: Scripts and Functions (v1)
Topic: v1 -> v2 Script Converter
Replies: 123
Views: 70220

Re: v1 -> v2 Script Converter

For the main devs, I'll submit a PR about that later.
by safetycar
06 Dec 2022, 02:35
Forum: Ask for Help (v2)
Topic: v2.0-rc.1 Baffling issue with hotkeys
Replies: 5
Views: 638

Re: v2.0-rc.1 Baffling issue with hotkeys

If I recall correctly I tried something a bit similar in the past but the problem I saw was that typing fast can make you press a new key before releasing the previous one. I don't remember going on after noticing that.
by safetycar
26 Nov 2022, 12:22
Forum: Ask for Help (v2)
Topic: error with use get
Replies: 6
Views: 685

Re: error with use get

It is special in ahk, but it is also especial relating some regional configurations. For example, let's say Spanish, typing directly with no ahk involved, a single key press on the backtick won't display anything until the second key press. It will wait until the next key press to know how it has to...
by safetycar
21 Nov 2022, 09:37
Forum: Ask for Help (v2)
Topic: Doubts about OnExit's callback parameter, ExitCode
Replies: 5
Views: 673

Re: Doubts about OnExit's callback parameter, ExitCode

I tried Exit because ExitApp wasn't letting it reach the 2nd function.
I guess the ExitCode can't be changed during the exit.
by safetycar
20 Nov 2022, 13:54
Forum: Ask for Help (v2)
Topic: Doubts about OnExit's callback parameter, ExitCode
Replies: 5
Views: 673

Re: Doubts about OnExit's callback parameter, ExitCode

The reason why I wasn't able to see any change was because I was trying to modify it from inside. Calling an exit from outside shows new values. But doesn't allow passing a different value than the original. The docs mention returning 1 and I tried that but it must be about something else: If the On...
by safetycar
20 Nov 2022, 12:25
Forum: Ask for Help (v2)
Topic: Doubts about OnExit's callback parameter, ExitCode
Replies: 5
Views: 673

Re: Doubts about OnExit's callback parameter, ExitCode

I don't find sense in that way either. What exit code would receive?

Edit: I've tried propagating the exit code value with the help of Exit(ExitCode) but I could be doing something wrong because I didn't achieve anything with that either.
by safetycar
20 Nov 2022, 09:48
Forum: Ask for Help (v2)
Topic: Doubts about OnExit's callback parameter, ExitCode
Replies: 5
Views: 673

Doubts about OnExit's callback parameter, ExitCode

Looking at OnExit docs: https://lexikos.github.io/v2/docs/commands/OnExit.htm The docs show this structure for the definition of the callback: FunctionName(ExitReason, ExitCode) And the explaination for ExitCode says: An integer between -2147483648 and 2147483647 that is returned to its caller when ...
by safetycar
17 Nov 2022, 09:49
Forum: Wish List
Topic: [v2] Mute Popups / Gaming Mode
Replies: 5
Views: 722

Re: [v2] Mute Popups / Gaming Mode

Take care, what you have there is not a closure.
One way to know if if a function is a closure is using "type(...)", in case you need it.
A closure will return "Closure" instead of just "Func".

Go to advanced search