Search found 1648 matches
- 26 Mar 2023, 14:02
- Forum: Ask for Help (v2)
- Topic: SetTimer inside a method to launch another method.
- Replies: 12
- Views: 1184
Re: SetTimer inside a method to launch another method.
That’s what I was getting at in my earlier reply. So in cases such as this would there need to be some kind of cleanup method to remove the circular reference? Or can you just unset this.hookProcAdr (after calling CallbackFree, of course) in __delete?
- 24 Mar 2023, 21:21
- Forum: Ask for Help (v2)
- Topic: SetTimer inside a method to launch another method.
- Replies: 12
- Views: 1184
Re: SetTimer inside a method to launch another method.
I think in this case you must bind this to the callback that you pass to CallbackCreate. Or you could maybe pass an arrow function that then calls your method.
- 24 Mar 2023, 11:27
- Forum: Forum Issues
- Topic: why is the forum so slow Topic is solved
- Replies: 19
- Views: 3125
Re: why is the forum so slow Topic is solved
Honestly, the forum is much more usable in attack mode…. The cloudlfare thing is a minor nuisance to endure for a performant and snappy experience while navigating the forum. I’m sure it’s possible that others have different experiences but just thought I’d share my opinion on the matter.
- 22 Mar 2023, 11:33
- Forum: Ask for Help (v2)
- Topic: Using Node.js for stdout, how to listen stdin in AHKv2?
- Replies: 7
- Views: 743
- 22 Mar 2023, 10:51
- Forum: Ask for Help (v2)
- Topic: Using Node.js for stdout, how to listen stdin in AHKv2?
- Replies: 7
- Views: 743
Re: Using Node.js for stdout, how to listen stdin in AHKv2?
I’m sure it’s just an oversight but the second arg to FileOpen should be a string
- 21 Mar 2023, 19:23
- Forum: Ask for Help (v2)
- Topic: ComObject("HTMLfile") for extracting HTML Source from clipboard Topic is solved
- Replies: 23
- Views: 3477
Re: ComObject("HTMLfile") for extracting HTML Source from clipboard Topic is solved
Ah, got it, thanks. However, if your goal is creating formatted text, you are unlikely to need plain or unicode text. Far from true. Many applications specifically even support using Carl + Shift + V to paste plain/in formatted text. If you’re putting HTML on the clipboard then you should also put ...
- 17 Mar 2023, 10:53
- Forum: Forum Issues
- Topic: why is the forum so slow Topic is solved
- Replies: 19
- Views: 3125
Re: why is the forum so slow Topic is solved
Is it typical for the submission of replies or posts to take a few seconds?
- 17 Mar 2023, 10:50
- Forum: Forum Issues
- Topic: why is the forum so slow Topic is solved
- Replies: 19
- Views: 3125
Re: why is the forum so slow Topic is solved
yes, now everything opens instantaneously which means if the delays were truly caused by ddosing, then some mini-ddosing must have been going on for at least the past month or so(maybe even longer), because the forums have been slow for a good while now. its just a random coincidence that i was ann...
- 17 Mar 2023, 09:04
- Forum: Forum Issues
- Topic: why is the forum so slow Topic is solved
- Replies: 19
- Views: 3125
Re: why is the forum so slow Topic is solved
Feels very snappy now
- 13 Mar 2023, 07:45
- Forum: Ask for Help (v2)
- Topic: Retreiving the only item in a single-item Map
- Replies: 15
- Views: 1082
Re: Retreiving the only item in a single-item Map
:gasp: awesome. I need to try and retain that helpful bit of info
- 13 Mar 2023, 05:54
- Forum: Ask for Help (v2)
- Topic: Retreiving the only item in a single-item Map
- Replies: 15
- Views: 1082
Re: Retreiving the only item in a single-item Map
Is that documented anywhere? I’ve never seen the asterisk used like that. Didn’t even realize it was possible to use with Maps.
- 10 Mar 2023, 20:01
- Forum: Ask for Help (v1)
- Topic: Is It Possible to Create a Toggle/Switch Interface?
- Replies: 11
- Views: 954
Re: Is It Possible to Create a Toggle/Switch Interface?
A simple checkbox works just perfect for this. Slide toggles are just fancy versions of a checkbox…
- 10 Mar 2023, 13:17
- Forum: Ask for Help (v2)
- Topic: Retreiving the only item in a single-item Map
- Replies: 15
- Views: 1082
Re: Retreiving the only item in a single-item Map
I don't think it is likely that utility methods like indexOf and others will be built-in to AHK's native Array. But we can hope!
- 10 Mar 2023, 11:17
- Forum: Ask for Help (v2)
- Topic: Retreiving the only item in a single-item Map
- Replies: 15
- Views: 1082
Re: Retreiving the only item in a single-item Map
Ideally, the Map object would provide a keys() method so you could get an array of the keys and then reference the first (and only) one then.
- 10 Mar 2023, 10:15
- Forum: Ask for Help (v2)
- Topic: Retreiving the only item in a single-item Map
- Replies: 15
- Views: 1082
Re: Retreiving the only item in a single-item Map
Maps really aren't meant to be enumerated like that honestly. Obviously, I don't know you're full use-case and scenario but it seems like an Array would be better.
- 07 Mar 2023, 16:07
- Forum: Ask for Help (v2)
- Topic: Is it possible to have ListView items with a complex layout?
- Replies: 7
- Views: 653
Re: Is it possible to have ListView items with a complex layout?
Hacked up version of some code I found years ago that mimics what you're asking for. Would need a ton of work. #Requires AutoHotkey v2 LVS_OWNERDRAWFIXED := 0x0400 LVS_EX_DOUBLEBUFFER := 0x00010000 WM_DRAWITEM := 0x002B WM_MEASUREITEM := 0x002C ItemHeight := 100 ; critical, you have to set the heigh...
- 07 Mar 2023, 12:35
- Forum: Ask for Help (v2)
- Topic: Can the popup menu support dark mode? Topic is solved
- Replies: 10
- Views: 1394
Re: Can the popup menu support dark mode? Topic is solved
viewtopic.php?f=13&t=94661&hilit=dark#p426437
The problem is that none of these are documented functions of the WinAPI
The problem is that none of these are documented functions of the WinAPI
- 03 Mar 2023, 18:30
- Forum: Forum Issues
- Topic: Forum Web Search hyperlink
- Replies: 6
- Views: 1111
- 03 Mar 2023, 10:44
- Forum: Ask for Help (v2)
- Topic: How to access variables of Gui callback event in AHK v2? Topic is solved
- Replies: 11
- Views: 1595
Re: How to access variables of Gui callback event in AHK v2? Topic is solved
There are numerous ways to do this. One would be:
Code: Select all
myGui:=Gui()
myGui.addEdit("vInput")
myGui.addButton(,"Submit").onEvent("Click", submit_handler)
myGui.show()
submit_handler(ctrl, *) {
output := ctrl.gui.submit()
msgbox(output.Input)
}
- 02 Mar 2023, 09:35
- Forum: Forum Issues
- Topic: Forum Web Search hyperlink
- Replies: 6
- Views: 1111
Forum Web Search hyperlink
There is a button hyperlink to the docs for Getting Started after navigating to the Web Search page from the forum. The hyperlink here is https://www.autohotkey.com/docs/Tutorial.htm#s1 but the redirect takes it to the v1 version. Wasn't sure if that was correct as I thought all things were being po...