Search found 52 matches

by JoeSchmoe
08 Jan 2021, 13:01
Forum: AutoHotkey v2 Help
Topic: New object model diagram?
Replies: 3
Views: 152

Re: New object model diagram?

Thanks so much, HotKeyIt. I'm a bit overwhelmed with other work now, but will carefully study this later. For anyone else, what I suspect HotKeyIt has pointed out is that we can explore AHK2's object model by using the .base and .__Class properties. This will give definitive answers without needing ...
by JoeSchmoe
28 Dec 2020, 12:51
Forum: AutoHotkey v2 Help
Topic: New object model diagram?
Replies: 3
Views: 152

Re: New object model diagram?

Hey sirksel,

Did you ever make any progress on this? If so, could you post the answer here?

I'm trying to update my object model knowledge from v1 to v2 and I was thinking of pasting my findings in here. I won't if you've already figured it out, though.
by JoeSchmoe
27 Dec 2020, 19:13
Forum: Forum Issues
Topic: When I log in to forum, CSS disappears Topic is solved
Replies: 42
Views: 2559

Re: When I log in to forum, CSS disappears Topic is solved

I switched back to the simplicity theme and everything's been fine for me.
by JoeSchmoe
17 Dec 2020, 13:47
Forum: Ask For Help
Topic: Faster horizontal scroll
Replies: 13
Views: 1993

Re: Faster horizontal scroll

Thanks, Rommmcek. I found your code on Google to find a way to scroll left and right with OneNote. It's a perfect solution for OneNote because OneNote doesn't have a way to horizontally scroll from the keyboard. Try this: <+WheelDown:: ; Scroll right. <+WheelUp:: ; Scroll left. (A_ThisHotkey!=A_Prio...
by JoeSchmoe
30 Nov 2020, 17:28
Forum: Forum Issues
Topic: When I log in to forum, CSS disappears Topic is solved
Replies: 42
Views: 2559

Re: When I log in to forum, CSS disappears Topic is solved

PuzzledGreatly wrote:
30 Nov 2020, 15:53
It happens without me changing any preferences or settings. I'm using the prosilver theme.
That was my experience, also. Interesting that it happens for people using the prosilver theme. I wonder if there's an issue with it.
by JoeSchmoe
21 Nov 2020, 09:15
Forum: Forum Issues
Topic: When I log in to forum, CSS disappears Topic is solved
Replies: 42
Views: 2559

When I log in to forum, CSS disappears Topic is solved

Hi all, When I log into this forum, everything appears as CSS-free HTML instead of the nicely formatted theme I usually see. It looks like a 1996 website (pre-CSS). Using Chrome's developer tools, I've noticed that when I log in, my theme switches from the default "Simplicity" to the "Prosilver" sty...
by JoeSchmoe
20 Nov 2020, 22:32
Forum: AutoHotkey v2 Help
Topic: Load graphic into clipboard Topic is solved
Replies: 1
Views: 76

Load graphic into clipboard Topic is solved

Hey everyone,

Is there a simple way to load an image into the clipboard in v2?

I keep trying to figure it out, but no luck...
by JoeSchmoe
31 Oct 2020, 22:50
Forum: AutoHotkey v2 Help
Topic: base64 <---> buffer object
Replies: 1
Views: 202

base64 <---> buffer object

Hi, is there a way to convert a small buffer object to base64 so I can store it in my AHK source code easily? I'm making a clipboard manager style program and would like to have many small clipboards available long term. I'd like to store them as text strings in my source code and then convert them ...
by JoeSchmoe
31 Oct 2020, 22:40
Forum: AutoHotkey v2 Help
Topic: Getting a function reference to a method in a class you are writing Topic is solved
Replies: 6
Views: 443

Re: Getting a function reference to a method in a class you are writing Topic is solved

Thanks, Fred, that's perfect. I actually like your solution more, so have marked it as the solution. I'm currently using your version rather than Cloakersmokers. Both actually work. Are they equivalent? this.MyEdit.OnEvent("Change", this.GetMethod('mycallback').Bind(this)) ; Cloakersmoker this.MyEdi...
by JoeSchmoe
31 Oct 2020, 21:17
Forum: AutoHotkey v2 Scripts and Functions
Topic: JSON - load and dump arrays to/from JSON - AHK v1/2 - 2020/10/10 - a122
Replies: 25
Views: 5542

Re: JSON - load and dump arrays to/from JSON - AHK v1/2 - 2020/10/10 - a122

Hey, man, I just wanted to thank you for updating this. Good stuff, and much needed. :bravo:
by JoeSchmoe
28 Oct 2020, 21:34
Forum: Scripts and Functions
Topic: WinClip - AHKv2 Compatibility
Replies: 24
Views: 6531

Re: WinClip - AHKv2 Compatibility

Has anyone been able to update this to a more recent version of v2? I'm dying to use it, but moving it forward is a bit beyond me. I started attempting to upgrade the code, but I got stumped by how to upgrade things like ObjSetCapacity, ObjGetAdress, and VarSetCapacity for V2, particularly when they...
by JoeSchmoe
26 Sep 2020, 21:59
Forum: AutoHotkey v2 Help
Topic: Getting a function reference to a method in a class you are writing Topic is solved
Replies: 6
Views: 443

Re: Getting a function reference to a method in a class you are writing Topic is solved

I'm curious, why does your code work when the following code doesn't? class MyGUIClass { __new() { this.MyGui := Gui.New() this.MyEdit := this.MyGui.Add("Edit") this.MyEdit.OnEvent('Change', 'mycallback') } mycallback(GuiCtrlObj, Info){ } } It was misleading to call the class MyGUIClass. It's more o...
by JoeSchmoe
25 Sep 2020, 20:20
Forum: AutoHotkey v2 Help
Topic: Getting a function reference to a method in a class you are writing Topic is solved
Replies: 6
Views: 443

Re: Getting a function reference to a method in a class you are writing Topic is solved

Hey everyone, Cloakersmoker helped me with this. Here is the solution: global MyGuiObj := MyGUIClass.new() class MyGUIClass { __new() { this.MyGui := Gui.New() this.MyEdit := this.MyGui.Add("Edit") this.MyEdit.OnEvent("Change", this.GetMethod('mycallback').Bind(this)) } mycallback(GuiCtrlObj, Info){...
by JoeSchmoe
25 Sep 2020, 19:32
Forum: AutoHotkey v2 Help
Topic: Getting a function reference to a method in a class you are writing Topic is solved
Replies: 6
Views: 443

Getting a function reference to a method in a class you are writing Topic is solved

How do I get a function reference to a method in a class I am writing? For example, I need a reference to "mycallback" to send to "OnEvent" in "__New," below. How do I get it? global MyGuiObj := MyGUIClass.new() class MyGUIClass { __new() { this.MyGui := Gui.New() this.MyEdit := this.MyGui.Add("Edit...
by JoeSchmoe
17 Feb 2019, 12:03
Forum: Ask For Help
Topic: Array Concatenation
Replies: 12
Views: 3003

Re: Array Concatenation

For the benefit of fellow archive searchers, here is a simple function I use: FirstArray := ["1.1", "1.2", "1.3"] SecondArray := ["2.1", "2.2", "2.3"] ArrayPush(FirstArray, SecondArray) For, key, val in FirstArray MsgBox, % key " is " val ArrayPush(ByRef Array1, Array2) { loop % Array2.length() ; it...
by JoeSchmoe
04 Dec 2018, 17:28
Forum: Ask For Help
Topic: Why are HWNDs converted to decimal?
Replies: 1
Views: 500

Why are HWNDs converted to decimal?

I use a lot of HWNDs to compare windows (ahk_id type stuff). Sometimes when I display the HWND via a tooltip it comes out in decimal and sometimes as Hex. For example, when I use Winget with the "List" command, I get hex. However, when I store the HWNDs in an object, they are converted to decimals. ...
by JoeSchmoe
04 Dec 2018, 14:56
Forum: Ask For Help
Topic: Check if a WinID is in a WinGroup Topic is solved
Replies: 2
Views: 693

Re: Check if a WinID is in a WinGroup Topic is solved

Thanks, jeeswg, I modified your code and it's working now! :dance:
by JoeSchmoe
03 Dec 2018, 16:47
Forum: Ask For Help
Topic: Check if a WinID is in a WinGroup Topic is solved
Replies: 2
Views: 693

Check if a WinID is in a WinGroup Topic is solved

Hello, folks...

I know the ahk_id of a window and I want to know if that window is in a specific ahk_group.

Is there a clever way to check?

Should "IfWinExist, ahk_ID %MyWinID% ahk_group %MyWinGroup%" work? It's not working for me. Wondering if I'm just missing something.

:?:
by JoeSchmoe
15 Mar 2018, 10:02
Forum: Ask For Help
Topic: Access Parent Instance Variables from a Nested Class
Replies: 5
Views: 1077

Re: Access Parent Instance Variables from a Nested Class

The important point is that instantiating either of the two classes, doesn't imply an instance of the other. Hence, as hinted by nnnik , if the child needs a parent, the child needs to create it (the parent doesn't need to know :shh: ), or the parent needs to create a child and tell it (and then th...

Go to advanced search