Search found 2477 matches

by Helgef
Yesterday, 14:14
Forum: Gaming
Topic: Mouse to keyboard / virtual joystick
Replies: 40
Views: 13204

Re: Mouse to keyboard / virtual joystick

Someone took this and modified it to work with different programs
:lol: Thanks for sharing, I'm not sure it contains much of original work, I will put a note one the main page when I have had time to look in to it.

Cheers.
by Helgef
Yesterday, 06:37
Forum: Ask For Help
Topic: LoadPicture to use it as icon
Replies: 6
Views: 91

Re: LoadPicture to use it as icon

You can load a bmp as hIcon with LoadPicture , but not png it seems. hIcon := LoadPicture("icon.bmp", "Icon1", io) Note that the documentation says Iconn: Indicates which icon to load from a file with multiple icons (generally an EXE or DLL file). If n is non-zero, the file must ...
by Helgef
13 Dec 2017, 10:22
Forum: Tutorials
Topic: OOP with AHK
Replies: 9
Views: 215

Re: OOP with AHK

Nice write up, thanks for sharing, I look forward to the continuation :thumbup: if you pass the wrong count of parameters to an object method AutoHotkey will say nothing. v2 throws on too few parameters, not surplus :thumbup: Loop, Files, % fileName, F ;since the fileName refers to a single file thi...
by Helgef
13 Dec 2017, 06:46
Forum: Offtopic
Topic: AHKathon! [AHK Hackathon] 12/17
Replies: 76
Views: 3902

Re: AHKathon! [AHK Hackathon] 12/17

By popular demand ( n=1 ), I will make a brief comment on what I mean with injected mouse events . It simply means mouse events not generated by actual use of a mouse, specifically mouse events generated by windows function such as sendInput or mouse_event . Typical use cases would be when you run c...
by Helgef
13 Dec 2017, 06:21
Forum: Scripts and Functions
Topic: [Function] Min/Max including with Associative Arrays
Replies: 6
Views: 223

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

I am thinking in my library I will have: It seems like this is what one has to do :think: . Who would have thought a versatile and quick Min function would be so complicated. Not me, thank you for bringing it up :ugeek: . Note, Byref doesn't do anything with variadic parameters as far as I know. Ch...
by Helgef
13 Dec 2017, 06:06
Forum: Ask For Help
Topic: Compare binaryfiles with AHK
Replies: 4
Views: 91

Re: Compare binaryfiles with AHK

For comparing two files, jeeswg's function is the best suggestion here imo. There is no point in calculating hashes in this case. In case of very big files I'd avoid reading the entire file unconditionally. You could loop chunks of 50-500 mb perhaps. One could even start at a small size and then inc...
by Helgef
12 Dec 2017, 06:58
Forum: Scripts and Functions
Topic: [Function] Min/Max including with Associative Arrays
Replies: 6
Views: 223

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
12 Dec 2017, 06:41
Forum: Offtopic
Topic: Code Puzzle Thread
Replies: 74
Views: 8599

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
11 Dec 2017, 14:17
Forum: Offtopic
Topic: Code Puzzle Thread
Replies: 74
Views: 8599

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
11 Dec 2017, 08:24
Forum: Offtopic
Topic: Code Puzzle Thread
Replies: 74
Views: 8599

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: 613

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: 76
Views: 3902

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: 74
Views: 8599

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: 74
Views: 8599

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.

Go to advanced search