Search found 129 matches

by JoeSchmoe
17 Dec 2020, 13:47
Forum: Ask for Help (v1)
Topic: Faster horizontal scroll
Replies: 13
Views: 3519

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: 44
Views: 7954

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: 44
Views: 7954

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: Ask for Help (v2)
Topic: Load graphic into clipboard Topic is solved
Replies: 1
Views: 329

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: Ask for Help (v2)
Topic: base64 <---> buffer object
Replies: 1
Views: 590

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: Ask for Help (v2)
Topic: Getting a function reference to a method in a class you are writing Topic is solved
Replies: 6
Views: 1118

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: Scripts and Functions (v2)
Topic: JSON Serializer - 2022/09/07 - beta.8
Replies: 43
Views: 19315

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 (v1)
Topic: WinClip - AHKv2 Compatibility
Replies: 35
Views: 15929

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: Ask for Help (v2)
Topic: Getting a function reference to a method in a class you are writing Topic is solved
Replies: 6
Views: 1118

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: Ask for Help (v2)
Topic: Getting a function reference to a method in a class you are writing Topic is solved
Replies: 6
Views: 1118

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: Ask for Help (v2)
Topic: Getting a function reference to a method in a class you are writing Topic is solved
Replies: 6
Views: 1118

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 (v1)
Topic: Array Concatenation
Replies: 14
Views: 5079

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 (v1)
Topic: Why are HWNDs converted to decimal?
Replies: 1
Views: 840

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 (v1)
Topic: Check if a WinID is in a WinGroup Topic is solved
Replies: 2
Views: 920

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 (v1)
Topic: Check if a WinID is in a WinGroup Topic is solved
Replies: 2
Views: 920

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 (v1)
Topic: Access Parent Instance Variables from a Nested Class
Replies: 5
Views: 1362

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...
by JoeSchmoe
16 Feb 2018, 15:50
Forum: Ask for Help (v1)
Topic: Access Parent Instance Variables from a Nested Class
Replies: 5
Views: 1362

Access Parent Instance Variables from a Nested Class

Hello,

Is there a recommended way for a method in a nested class to access the properties of the parent object?

For example:

Code: Select all

class ClassName 
{
    InstanceVar := Expression
    class NestedClass
    {
    	Method()
    	{
        	; How do I access InstanceVar from here?
    	}
     }
}
by JoeSchmoe
11 Feb 2018, 23:11
Forum: Ask for Help (v1)
Topic: Running AHK via Task Scheduler with upgraded privileges
Replies: 2
Views: 1345

Re: Running AHK via Task Scheduler with upgraded privileges

Thank you very much, Lexikos. It's nice to have such a clear answer. It looks like it is therefore impossible to get Autohotkey to run interactively with admin privileges form a non-admin account. I say this because the following post suggests to get admin privileges from a non-admin account, you ha...
by JoeSchmoe
09 Feb 2018, 13:09
Forum: Ask for Help (v1)
Topic: Running AHK via Task Scheduler with upgraded privileges
Replies: 2
Views: 1345

Running AHK via Task Scheduler with upgraded privileges

Heya, folks. I've been running my "AlwaysRunning" script for years using Task Scheduler, but I've noticed that sometimes the icon doesn't appear in the task bar and sometimes other scripts can't find the AlwaysRunning window with WinExist. Has anyone else run AHK using Task Scheduler? If so, what se...

Go to advanced search