Search found 1038 matches

by kczx3
05 Apr 2020, 16:55
Forum: Scripts and Functions
Topic: Retrieving large amount of data from Excel using Safearrays
Replies: 4
Views: 260

Re: Retrieving large amount of data from Excel using Safearrays

I’d think adosql would be at least as fast also
by kczx3
31 Mar 2020, 20:13
Forum: Ask For Help
Topic: Using variable inside function
Replies: 3
Views: 167

Re: Using variable inside function

Also, querySelector can look up an element more simply by prefixing the id with a #.

Code: Select all

Document.querySelector(“#option123-field”)
by kczx3
31 Mar 2020, 20:09
Forum: Ask For Help
Topic: how can I specify >= in a switch case? Topic is solved
Replies: 18
Views: 452

Re: how can I specify >= in a switch case? Topic is solved

There’s a fine line between ugly code and unreadable code. Remember that when you start using ternaries all over and then come back to your code later and have to figure out what you were thinking again.
by kczx3
31 Mar 2020, 19:54
Forum: Wish List
Topic: 1.1() should return 2
Replies: 2
Views: 192

Re: 1.1() should return 2

Agreed. Especially with the diversification of types in v2...
by kczx3
31 Mar 2020, 19:52
Forum: AutoHotkey v2 Scripts and Functions
Topic: CallTipsForAll v2 - 2020/04/09
Replies: 4
Views: 503

Re: CallTipsForAll v1 - 2020/03/14

For Scintilla, why not use WordStartPosition and WordEndPosition?
by kczx3
30 Mar 2020, 19:30
Forum: Scripts and Functions
Topic: xStr() : for general text extraction and parsing XML / HTML
Replies: 13
Views: 787

Re: xStr() : for general text extraction and parsing XML / HTML

Gotcha. The code is obviously difficult to read but I assume all of those static variables are reassigned in every call of the function then?
by kczx3
30 Mar 2020, 19:01
Forum: Scripts and Functions
Topic: xStr() : for general text extraction and parsing XML / HTML
Replies: 13
Views: 787

Re: xStr() : for general text extraction and parsing XML / HTML

Why are all those variables static in the function?
by kczx3
19 Mar 2020, 19:06
Forum: AutoHotkey v2 Development
Topic: V2 Switch error
Replies: 3
Views: 254

Re: V2 Switch error

First, I’d recommend using the latest version to report possible bugs. Second, does it work if you first assign A_ThisHotkey to another variable and use that in the Switch?
by kczx3
19 Mar 2020, 12:10
Forum: AutoHotkey v2 Help
Topic: [v2.0-a108] “get GuiCtrl ref” help
Replies: 1
Views: 179

Re: [v2.0-a108] “get GuiCtrl ref” help

You just need to store line 13 into a variable and then use that to call .focus() and .value on it.
by kczx3
18 Mar 2020, 18:47
Forum: AutoHotkey v2 Help
Topic: basic class example for AHKv2 - methods and properties
Replies: 25
Views: 1136

Re: basic class example for AHKv2 - methods and properties

Helgef wrote:
18 Mar 2020, 06:39
No need to apologize, ask for help is for when we do not understand. Keep up the good work.
Bravo. It’s obvious that you’re making an honest and legitimate effort to learn these concepts. We’re all lucky to have someone like Helgef around to teach us!
by kczx3
17 Mar 2020, 12:42
Forum: Forum Issues
Topic: Slow forum
Replies: 88
Views: 6796

Re: Slow forum

Not noticeably to me
by kczx3
17 Mar 2020, 08:50
Forum: AutoHotkey v2 Help
Topic: basic class example for AHKv2 - methods and properties
Replies: 25
Views: 1136

Re: basic class example for AHKv2 - methods and properties

This is why I hate property getters/setters in AHK. The fact that what you store actually must store into something completely different is super annoying to me. I'd prefer that this.whatever in a setter would just bypass the setter and avoid the infinite recursion altogether. I tend to just stick w...
by kczx3
11 Mar 2020, 14:54
Forum: AutoHotkey v2 Help
Topic: WM_MENUGETOBJECT help
Replies: 13
Views: 1150

Re: WM_MENUGETOBJECT help

Helgef well actually it IS required. The drop callback never gets called if you don't have MNS_MODELESS :(. Testing the issue some more I can see that if you make sure to click a menu item after dropping text/files onto it that it works as expected. If you drop text/files and then click away, the m...
by kczx3
11 Mar 2020, 14:46
Forum: AutoHotkey v2 Help
Topic: WM_MENUGETOBJECT help
Replies: 13
Views: 1150

Re: WM_MENUGETOBJECT help

Hahahahaha. I assumed it had to be so that the menu would stay open if you clicked away from it. However, it seems that style doesn't have an effect on that. You have to be dragging the items/text prior to opening the menu regardless.
by kczx3
11 Mar 2020, 13:42
Forum: AutoHotkey v2 Help
Topic: WM_MENUGETOBJECT help
Replies: 13
Views: 1150

Re: WM_MENUGETOBJECT help

Good call. Looks like it is the MNS_MODELESS style that is messing it up. I took my original code and removed both style and the menu worked fine. Then I added back in the MNS_MODELESS and the issue presented itself.

I wonder if that style is even necessary...
by kczx3
11 Mar 2020, 13:09
Forum: AutoHotkey v2 Help
Topic: WM_MENUGETOBJECT help
Replies: 13
Views: 1150

Re: WM_MENUGETOBJECT help

Ok, I misinterpreted that on the docs then. For me, these steps cause an issue. 1. Start script 2. Highlight text, then click and begin dragging without releasing mouse button. 3. Hit hotkey to display menu. 4. Drag mouse over first menu item and release to "drop" the text. 5. Select other text in s...
by kczx3
10 Mar 2020, 19:48
Forum: AutoHotkey v2 Help
Topic: WM_MENUGETOBJECT help
Replies: 13
Views: 1150

Re: WM_MENUGETOBJECT help

Helgef wrote:
10 Mar 2020, 04:04
Example, on :arrow: github.

Cheers.
Also, there's some crazy voodoo going on in that iDropTarget static new method!
by kczx3
10 Mar 2020, 19:03
Forum: AutoHotkey v2 Help
Topic: WM_MENUGETOBJECT help
Replies: 13
Views: 1150

Re: WM_MENUGETOBJECT help

Example, on :arrow: github . Cheers. Fantastic! I must say that this was much more implementation than I was expecting. There were obviously intricacies of iDropTarget that I was missing. A few notes: Are you sure the your Menu styles are being applied? I believe the offsets for fMask and dwStyle a...
by kczx3
08 Mar 2020, 20:11
Forum: Ask For Help
Topic: Custom Tray menu
Replies: 3
Views: 357

Re: Custom Tray menu

To color it just like Discord’s you probably would need to owner draw the menu which is not simple by any means.
by kczx3
07 Mar 2020, 16:16
Forum: AutoHotkey v2 Help
Topic: WM_MENUGETOBJECT help
Replies: 13
Views: 1150

Re: WM_MENUGETOBJECT help

Interesting. I wouldn’t have come to that same conclusion myself. I was looking at the implementations by @just me that hopefully I can make work. Please do share what you come up with but I’ll also see if I can tinker this weekend on it.

Go to advanced search