Search found 3898 matches

by Helgef
20 Sep 2019, 11:06
Forum: Ask For Help
Topic: #IfWinActive with %var% in name
Replies: 9
Views: 253

Re: #IfWinActive with %var% in name

You need to use correct expression syntax, please see expressions and language/expressions.

Cheers.
by Helgef
20 Sep 2019, 10:41
Forum: Ask For Help
Topic: #IfWinActive with %var% in name
Replies: 9
Views: 253

Re: #IfWinActive with %var% in name

gregster is right,
#ifwin wrote:Variable references such as %Var% are not currently supported
by Helgef
20 Sep 2019, 10:38
Forum: Ask For Help
Topic: Enumerating fonts crashes (silently) on windows 10? not on windows 7
Replies: 17
Views: 552

Re: Enumerating fonts crashes (silently) on windows 10? not on windows 7

not sure why it didn't fail in win7 or on swagfag's win10 setup...
Not handling all parameters is undefined behaviour, which means anything can happen, including nothing at all or seemingly working.

On 32 bit, uint and uptr are equivalent, but not on 64 bit.
by Helgef
20 Sep 2019, 05:50
Forum: Ask For Help
Topic: Enumerating fonts crashes (silently) on windows 10? not on windows 7
Replies: 17
Views: 552

Re: Enumerating fonts crashes (silently) on windows 10? not on windows 7

Code: Select all

int CALLBACK EnumFontFamProc(
  _In_ ENUMLOGFONT   *lpelf,
  _In_ NEWTEXTMETRIC *lpntm,
  _In_ DWORD         FontType,
  _In_ LPARAM        lParam
);
Also, your callback doesn't accept all required parameters.
by Helgef
19 Sep 2019, 05:58
Forum: AutoHotkey v2 Development
Topic: Objects - preview of upcoming changes
Replies: 34
Views: 5725

Re: Objects - preview of upcoming changes

obj[n] is not only for linear numeric array elements. n can be anything depending on how __item is implemented.
Why use obj.%n% instead obj[n]
To separate data and interface. Perhaps you suggest to switch the roles of obj.%x% and obj[x]?

Cheers.
by Helgef
19 Sep 2019, 05:53
Forum: General Discussion
Topic: Notepad and UTF-8
Replies: 13
Views: 861

Re: Notepad and UTF-8

An AHK gui with an edit field from which you can save your script with the correct encoding would suffice.

Cheers.
by Helgef
18 Sep 2019, 04:23
Forum: AutoHotkey v2 Help
Topic: Problem in rewriting of VarSetCapacity to BufferAlloc
Replies: 8
Views: 404

Re: Problem in rewriting of VarSetCapacity to BufferAlloc

I will most likely add a FillByte parameter, the same as VarSetCapacity.
:thumbup:
by Helgef
17 Sep 2019, 07:14
Forum: Scripts and Functions
Topic: [class][v1/v2] hashTable - an associative array
Replies: 4
Views: 734

Re: [class][v1/v2] hashTable - an associative array

Thanks joedf :beer: . The v2 version was made for a100 I believe, it will not work on a104. This project was mainly for experimental purposes, so I'm not sure I'll update it for a104. The code will be much better with the new object model though. The c source also needs some fixes if I recall correc...
by Helgef
12 Sep 2019, 09:02
Forum: Bug Reports
Topic: [v2-a101|a103] ComObjConnect not working
Replies: 5
Views: 443

Re: [v2-a101|a103] ComObjConnect not working

Did you test with a104? If I recall correctly your example worked (perhaps with some modification) "between" 103 and 104 when I compiled ahk myself. That commit is not supposed to address this.
by Helgef
10 Sep 2019, 12:49
Forum: AutoHotkey v2 Help
Topic: Problem in rewriting of VarSetCapacity to BufferAlloc
Replies: 8
Views: 404

Re: Problem in rewriting of VarSetCapacity to BufferAlloc

When bufferalloc was added it didn't zero initialise, I don't know if this was fixed, if not, that could cause issues.
by Helgef
10 Sep 2019, 08:34
Forum: Ask For Help
Topic: Unsupport assigning initial values to function optional parameters via a function? Topic is solved
Replies: 5
Views: 287

Re: Unsupport assigning initial values to function optional parameters via a function? Topic is solved

optional parameters wrote:must be one of the following: true, false, a literal integer, a literal floating point number, or a quoted/literal string such as "fox" or ""
by Helgef
10 Sep 2019, 00:15
Forum: Ask For Help
Topic: Any way to make #warn only check the current script (without #include file)?
Replies: 3
Views: 411

Re: Any way to make #warn only check the current script (without #include file)?

@kkleinfelter,
#warn wrote: the location in the script is not significant (and, like other # directives, #Warn cannot be executed conditionally).

However, the ordering of multiple #Warn directives is significant: the last occurrence that sets a given warning determines the mode for that warning
by Helgef
09 Sep 2019, 23:18
Forum: Ask For Help
Topic: operators: unary/binary/ternary
Replies: 3
Views: 168

Re: operators: unary/binary/ternary

Code: Select all

note: regarding *:
AHK v1:
p/2	*
AHK v2:
2	*
* wrote:Other uses: The asterisk (*) symbol is also used in variadic function calls.
by Helgef
09 Sep 2019, 11:03
Forum: Tips and Tricks
Topic: Run your script under specific UI languages
Replies: 10
Views: 516

Re: Run your script under specific UI languages

Works, thanks for sharing :thumbup:. Cheers. jeeswg , hi :wave:. I found :arrow: EnumUILanguages , I tried it, EnumUILanguages(fn, flags := 0x8) { /* #define MUI_LANGUAGE_ID 0x4 // Use traditional language ID convention #define MUI_LANGUAGE_NAME 0x8 // Use ISO language (culture) name convention */ /...
by Helgef
08 Sep 2019, 02:47
Forum: Ask For Help
Topic: All [predefined] base classes 'unknown'
Replies: 1
Views: 207

Re: All [predefined] base classes 'unknown'

You need ahk v2 a104+ for that
by Helgef
07 Sep 2019, 10:17
Forum: AutoHotkey v2 Help
Topic: objects: properties (static/dynamic)
Replies: 7
Views: 621

Re: objects: properties (static/dynamic)

- You will not find a good (current) documentation quote explaining a static property. (A lot of the time you can find good documentation quotes for things, but not this time.) But there is, I guess you just don't want to put in any effort in finding it yourself. - Why did you post the Key quote? I...
by Helgef
07 Sep 2019, 09:17
Forum: Ask For Help
Topic: Getting '0xC0000005' = 'Access Violation' when trying to use 'CanViewMoveDesktops' from 'IVirtualDesktopManagerInternal'
Replies: 6
Views: 465

Re: Getting '0xC0000005' = 'Access Violation' when trying to use 'CanViewMoveDesktops' from 'IVirtualDesktopManagerInter

Cool, it works both with the gui and notepad on Microsoft Windows 10 Pro Version 10.0.17134 Build 17134.

Thanks for sharing :thumbup:.
by Helgef
07 Sep 2019, 09:03
Forum: Ask For Help
Topic: Zoom Function for FPS (Scripts Provided)
Replies: 15
Views: 885

Re: Zoom Function for FPS (Scripts Provided)

Is there anyway to have the magnifier not detect the magnified window? Preventing the magnifier inside magnifier
I made a zoom script, see :arrow: [UCR Plugins] Zoom.ahk, it cannot zoom itself. I didn't read all the requirements in this thread so I don't know if it is relevant.

Cheers.
by Helgef
07 Sep 2019, 09:00
Forum: AutoHotkey v2 Help
Topic: objects: properties (static/dynamic)
Replies: 7
Views: 621

Re: objects: properties (static/dynamic)

Does the documentation actually explain what it means by a static property?
yes.
we can omit the Key parameter in AHK v2, but for script clarity it may be better to always use it.

Go to advanced search