Search found 2471 matches

by Helgef
Today, 06:58
Forum: Scripts and Functions
Topic: [Function] Min/Max including with Associative Arrays
Replies: 4
Views: 174

Re: [Function] Min/Max including with Associative Arrays

Hello FanaticGuru . I have a few comments. I realised, that there is less than ideal behaviour of the Min(X:="?", List*) if you pass Min([]*) :(. The Max version is ok. Also, I haven't really used the feature of variadic calls in other cases than with linear arrays, that is...
by Helgef
Today, 06:41
Forum: Offtopic
Topic: Code Puzzle Thread
Replies: 73
Views: 8556

Re: Code Puzzle Thread

If anything, your honesty would award you an additional point just me , the puzzle rules didn't demand an explaination, you have been added to the scoreboard. You will get one more if you supply the next puzzle :). Also, you have an good point about the additional enumerator, it is a wasteful, it is...
by Helgef
Yesterday, 14:17
Forum: Offtopic
Topic: Code Puzzle Thread
Replies: 73
Views: 8556

Re: Code Puzzle Thread

Very good just me :clap:. That is a point for you. Thank you FanaticGuru for the explaination and sharing your function :thumbup:. Although it is implied by your explaination, I would like to emphasise that the huge compairsion also comes with the burden of making one huge string copy, which takes t...
by Helgef
Yesterday, 08:24
Forum: Offtopic
Topic: Code Puzzle Thread
Replies: 73
Views: 8556

Re: Code Puzzle Thread

Hello just me, I'm happy to see you participate :wave:
I'm on the phone so I can't test, but it looks like it will achieve the goal, but it doesn't follow the rules, specifically pop will modify the object refered to by the variable list.

Cheers.
by Helgef
10 Dec 2017, 07:00
Forum: Ask For Help
Topic: objects: pointer to string
Replies: 3
Views: 47

Re: objects: pointer to string

I just poured my coffee, and checked in :wave: The closeness of the addresses is likely due to the closeness of their allocation. The addresses of the keys are not accessible via built-in methods. The address of the object points to a memory location in which relevant data for the object is stored. ...
by Helgef
10 Dec 2017, 05:54
Forum: Ask For Help
Topic: objects: pointer to string
Replies: 3
Views: 47

Re: objects: pointer to string

by Helgef
09 Dec 2017, 15:32
Forum: AutoHotkey v2 Development
Topic: scrap commands?
Replies: 13
Views: 592

Re: scrap commands?

Hello :wave: This argument does not support your position very well. That was not an argument for my position , which I have neither decided nor stated, it was highligting a fact. The problem would obviously arise when the function is actually called, not when you get notified of a load time error p...
by Helgef
09 Dec 2017, 14:00
Forum: Ask For Help
Topic: ToASCIIEx
Replies: 11
Views: 201

Re: ToASCIIEx

Great, thanks for sharing, I would (probably) have needed to investigate this further at some point. :thumbup: Minor comments, I recommend you remove the % in, hkl := % DllCall("GetKeyboardLayout", "uint", thread, "ptr") and regarding, VarSetCapacity(pwszBuff,cchBuff:=3...
by Helgef
08 Dec 2017, 20:45
Forum: Offtopic
Topic: AHKathon! [AHK Hackathon] 12/17
Replies: 74
Views: 3715

Re: AHKathon! [AHK Hackathon] 12/17

AntiClick This program protects against injected mouse events. How to Select the events you want to block in the settings dialog, optionally, allow AHK generated events. Settings can be accessed via the tray menu. Script can be exited via esc or tray menu. Limitations ⋅  Doesn't block mes...
by Helgef
08 Dec 2017, 18:12
Forum: Ask For Help
Topic: ToASCIIEx
Replies: 11
Views: 201

Re: ToASCIIEx

I don't know anything about that. Your toascii function above seems to work fine in simple test case, ` + a = à, ` + space = `. ~ + o = õ where I produce ~ with AltGr + ¨ (¨ = VK: 0xba SC: 0x1b).

Good luck, please get back if you find something useful.
by Helgef
08 Dec 2017, 06:49
Forum: Ask For Help
Topic: ToASCIIEx
Replies: 11
Views: 201

Re: ToASCIIEx

Hello. I have no examples showing the difference between the functions. When I wrote these functions, I think I decided I would only use the unicode version, I'm not sure though. I used them to translate keypresse s(hotkeys) to text, in real time . As a consequence, the functions depend on the actua...
by Helgef
07 Dec 2017, 18:51
Forum: Offtopic
Topic: Code Puzzle Thread
Replies: 73
Views: 8556

Re: Code Puzzle Thread

These methods break the function. Regarding,

Code: [Select all]GeSHi © Codebox Plus

for , l in list

it probably doesn't do what you think.

Cheers.
by Helgef
07 Dec 2017, 18:37
Forum: Ask For Help
Topic: ToASCIIEx
Replies: 11
Views: 201

Re: list of dll functions with parameter types for DllCall

Yes it is the wrong place, maybe someone moves it. I had these functions, with example, toascii(uVirtKey,uScanCode,uFlags:=0) { ; Url: ; - https://msdn.microsoft.com/en-us/library/windows/desktop/ms646316(v=vs.85).aspx ; params: ; - uVirtKey, The virtual-key code to be translated. ; - uScanCode, The...
by Helgef
07 Dec 2017, 13:20
Forum: Offtopic
Topic: Code Puzzle Thread
Replies: 73
Views: 8556

Re: Code Puzzle Thread

Hello rommmcek :wave: . Your second try is good, but not quite there, you should think about why that improves the performance, then you will find a way to improve it further.

Cheers.
by Helgef
06 Dec 2017, 12:33
Forum: Ask For Help
Topic: objects: VarSetCapacity equivalent for array values Topic is solved
Replies: 9
Views: 165

Re: objects: VarSetCapacity equivalent for array values Topic is solved

You should use setbatchlines when benchmarking, this is a good example showing why. Also, your second measure includes the time it takes to free the first 10 million element array. Still, since this obj[key] := value doubles the capacity every time it needs to expand, the benefit of setCapacity is n...
by Helgef
05 Dec 2017, 15:34
Forum: Scripts and Functions
Topic: ToolTipAll
Replies: 15
Views: 489

Re: ToolTipAll

It only stuck for the applications it applied to ofc. It will go away when the applications restart. It is stuck on my browser still, I could restart it but I'm starting to like it :lol:

Cheers.
by Helgef
05 Dec 2017, 13:50
Forum: Ask For Help
Topic: DllCall to SetupDiEnumDeviceInfo throws "ERROR_INVALID_USER_BUFFER"
Replies: 10
Views: 266

Re: DllCall to SetupDiEnumDeviceInfo throws "ERROR_INVALID_USER_BUFFER"

Hello chao-samu and welcome to the forum, hello qwerty12 :wave:
Minor comment, :arrow: DIGCF_DEFAULT := 0x00000001 // only valid with DIGCF_DEVICEINTERFACE

Cheers.
by Helgef
05 Dec 2017, 13:44
Forum: Ask For Help
Topic: Error: function cannot contain a function
Replies: 11
Views: 131

Re: Error: function cannot contain a function

I do not know anything about this, I wasn't suggesting you should use one or the other. This, ; ... was supposed to mean this, DisplayPosition_Get("\\.\DISPLAY2", x2, y2) DisplayPosition_Get("\\.\DISPLAY3", x3, y3) DisplayPosition_Get("\\.\DISPLAY4", x4, y4) DisplayPosi...
by Helgef
05 Dec 2017, 12:07
Forum: Ask For Help
Topic: Error: function cannot contain a function
Replies: 11
Views: 131

Re: Error: function cannot contain a function

You should only include the functions once. The other code, that is the function calls, DisplayPosition_Get("\\.\DISPLAY1", x1, x1) ; ... should be put where it needs to be executed, I recommend you remove them from setDisplayPosition.ahk . And remove the pause and listvars unless you know...
by Helgef
05 Dec 2017, 10:40
Forum: Ask For Help
Topic: Error: function cannot contain a function
Replies: 11
Views: 131

Re: Error: function cannot contain a function

You should probably only include setDisplayPosition.ahk once, at the top of the script. Do you need the pause ? Also for the LongHotkeys , you can do loop 7 new LongHotkey("# & M & " A_Index, "monXfunction", A_Index) ; Key-combo, function, params ... monXfunction(X){ Run ...

Go to advanced search