Search found 5109 matches

by lexikos
Today, 21:30
Forum: AutoHotkey v2 Development
Topic: Type(object)
Replies: 11
Views: 272

Re: Type(object)

It would be semantically incorrect to report the GUI control types as "GuiControl", when different control types have different methods available. They are effectively different classes. I'm fine with Type() returning just the fundamental type (Integer, String, Float or Object), or returni...
by lexikos
Today, 02:01
Forum: AutoHotkey v2 Development
Topic: Proposed New GUI API for AutoHotkey v2
Replies: 248
Views: 26642

Re: Proposed New GUI API for AutoHotkey v2

Gui.OnEvent("Close Escape", "Gui_Close") (I seem to have missed your post.) I'd thought of that, but was getting tired of thinking about the GUI code. I was focused on making the API consistent, and was less concerned about convenience. There's room to add this and other "f...
by lexikos
Today, 01:21
Forum: AutoHotkey v2 Development
Topic: #MustDeclare
Replies: 10
Views: 2120

Re: #MustDeclare

joedf: Do I take that as "I won't use #MustDeclare"? Also, I fail to see why it should matter whether older scripts are broken. I will be surprised if there are any scripts which will work as-is in the next v2 alpha. Also, it should be obvious, given what I said in the first post, that I w...
by lexikos
Today, 00:54
Forum: Ask For Help
Topic: RCtrl long press
Replies: 4
Views: 64

Re: RCtrl long press

There must be something wrong on all of the machines you tested on (such as common hardware or drivers, or software other than this one script). For example, if the RCtrl key appears to be artificial, either because it is intercepted by other software or because of some quirk of the drivers, KeyWait...
by lexikos
Today, 00:52
Forum: Bug Reports
Topic: RCtrl does not work with KeyWait timeout
Replies: 2
Views: 58

Re: RCtrl does not work with KeyWait timeout

I can almost guarantee that it's not a bug. In future, please stick to a single topic until you get confirmation from another user.

At least wait longer than 12 minutes (much longer) before double-posting.
by lexikos
Yesterday, 06:15
Forum: Ask For Help
Topic: Progress bar bug or just me being silly?
Replies: 2
Views: 67

Re: Progress bar bug or just me being silly?

I have my display scaling set to 200% so I thought that might be the reason That is the reason. Did you sign out or restart after changing the display scaling? Probably not. Progress and Gui are scaled by the system DPI setting (A_ScreenDPI). There is only one system DPI setting, and it cannot chan...
by lexikos
Yesterday, 06:03
Forum: Ask For Help
Topic: Apparent inconsistency between WinGetClass and #ifWinActive ?
Replies: 2
Views: 64

Re: Apparent inconsistency between WinGetClass and #ifWinActive ?

Change = to == and maybe you will then see what the problem is...
by lexikos
Yesterday, 05:51
Forum: AutoHotkey v2 Development
Topic: Removal of command syntax
Replies: 28
Views: 816

Re: Removal of command syntax

nnnik: Your "if function" made absolutely no sense to me, so I could be mistaken, but I'm fairly certain that your suggestion would be totally redundant if the things that I mentioned were implemented. I suggest that you read up on them, and then explain how your suggestion is different.
by lexikos
Yesterday, 01:53
Forum: AutoHotkey v2 Development
Topic: Removal of command syntax
Replies: 28
Views: 816

Re: Removal of command syntax

What are you talking about?
by lexikos
Yesterday, 00:05
Forum: Ask For Help
Topic: SendInput has problem with A_Index Topic is solved
Replies: 11
Views: 205

Re: SendInput has problem with A_Index Topic is solved

The bug is in your script. Both Send and SendInput produce the wrong result. If there are any differences, it is only because of timing. When you press Numpad2, the loop starts. If Send or SendInput takes x ms, you must release Numpad2 less than x ms after pressing it, otherwise the loop will iterat...
by lexikos
26 May 2017, 23:13
Forum: AutoHotkey v2 Development
Topic: Removal of command syntax
Replies: 28
Views: 816

Re: Removal of command syntax

HotKeyIt: It's been brought up before, and I still don't like it. I think the first instance of this suggestion was by Frankie in Oct 2011 . My response was first "I don't think an implicit output variable for the return is a good idea. I certainly wouldn't want to use A_LastReturn any more tha...
by lexikos
26 May 2017, 21:52
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 229
Views: 43451

Re: Suggestions on documentation improvements

It is because you searched for " ahk hotkey command ", and these search engines try to be clever. The Hotkey page source code does not even contain the word "AutoHotkey". Including "ahk" and "command" as search keywords skews the results. Use "site:autoho...
by lexikos
26 May 2017, 21:46
Forum: AutoHotkey v2 Development
Topic: #MustDeclare
Replies: 10
Views: 2120

Re: #MustDeclare

Bump. I'm interested in getting more data (votes) on this topic.
by lexikos
25 May 2017, 22:37
Forum: Bug Reports
Topic: Excessive page faults with Process,Exist
Replies: 15
Views: 204

Re: Excessive page faults with Process,Exist

I would still have to be looping through my entire game .exe list checking each and every one in a very small amount of time to see if it matches the newly detected process I think your concern is misplaced. A single call to Process Exist takes roughly 1000 times longer than if var in MatchList wit...
by lexikos
25 May 2017, 04:28
Forum: Ask For Help
Topic: Please Help!!! Array.GetCapacity() Returns Strange values when trying to create an array in loop
Replies: 6
Views: 77

Re: Please Help!!! Array.GetCapacity() Returns Strange values when trying to create an array in loop

Why aren't you using .Length()? It seems that two of you lack an understanding of the word "capacity". capacity kəˈpasɪti/ noun 1. the maximum amount that something can contain. There is further (more specific) explanation under SetCapacity. The maximum number of key-value pairs the object...
by lexikos
25 May 2017, 04:15
Forum: Bug Reports
Topic: Excessive page faults with Process,Exist
Replies: 15
Views: 204

Re: Excessive page faults with Process,Exist

Someone on Stack Overflow wrote that the EnumProcesses method failed in cases like the one I mentioned, and between 32-bit and 64-bit processes. After posting, I remembered fixing similar issues with WinGet ProcessName/ProcessPath: 1.1.02.01 ... Fixed process name/path retrieval in certain cases, in...
by lexikos
25 May 2017, 03:40
Forum: Bug Reports
Topic: Excessive page faults with Process,Exist
Replies: 15
Views: 204

Re: Excessive page faults with Process,Exist

This is not a bug. I don't see any evidence that it's even a problem. Process Exist uses CreateToolhelp32Snapshot , which most likely includes information in the snapshot which is not needed, accessing the memory space of each process to get it. Your solution fails to detect processes running at a h...
by lexikos
23 May 2017, 23:36
Forum: AutoHotkey v2 Development
Topic: Overwritte Class Variables | ExitApp, __Delete & Static Variables
Replies: 10
Views: 143

Re: Overwritte Classes -.-

I think, that if a class variable is overwritten into a function, when function return should be restored... No, it shouldn't. You seem to be describing local variables. It isn't a local variable. If you want a local variable, declare a local variable. A class variable is an ordinary super-global v...
by lexikos
23 May 2017, 21:33
Forum: Ask For Help
Topic: Can a pointer be used to identify a boundfunc object?
Replies: 6
Views: 106

Re: Can a pointer be used to identify a boundfunc object?

For fear of lose the possibility to retrieve a specific hotkey by means, at least, of its key
Wouldn't using an object's address in the "ID" defeat that just the same as a sequential number?

If you need to retrieve hotkeys by key, then store hotkeys by key.

Go to advanced search